Skip to main content
English
Source Link
khelwood
  • 58.9k
  • 4
  • 21
  • 29

Stack Overflow prevents me from posting an answer, claiming markdown text using HTML tags, is unformatted code

Markdown formatting normally relies on indentations. However, I was having copy-pasting issues with the markdown text between Stack Overflow and Google Docs. I had to do it because Stack Overflow drafts auto-save was not reliable. So I decided to copy the HTML code of the rendered markdown from Stack Overflow instead. Because, because HTML is (ideally) completely supported in markdown and does not rely on indentations at all.

This went well until I was ready to post the answer on Stack Overflow, and then I got an error saying unformatted code. Unfortunately, I didn't take a screenshot at the time, but here's the same error text I found on other people's posts:

If your answer is gonna be "Don't use HTML", please also suggest alternatives to properly copying markdown text away from and into Stack Exchange, or properly storing drafts within Stack Exchange

Windows Notepad worked without causing issues (but has no rendering engine). AlsoI also tried Stack Edit, butbut that caused issues with copy-pasting too. WillI will probably have to hunt for a desktop editor

This further justifies my stance that this is a bug. It is not a behaviour that was intentionally enforcedintentional to force true markdown in place of HTML. It is just that the check system thinks I unintentionally missed outneglected to format what it thinks is a code block

Stack Overflow prevents me from posting an answer claiming markdown text using HTML tags, is unformatted code

Markdown formatting normally relies on indentations. However, I was having copy-pasting issues with the markdown text between Stack Overflow and Google Docs. I had to do it because Stack Overflow drafts auto-save was not reliable. So I decided to copy the HTML code of the rendered markdown from Stack Overflow instead. Because HTML is (ideally) completely supported in markdown and does not rely on indentations at all.

This went well until I was ready to post the answer on Stack Overflow and then I got an error saying unformatted code. Unfortunately, I didn't take a screenshot at the time but here's the same error text I found on other people's posts:

If your answer is gonna be "Don't use HTML", please also suggest alternatives to properly copying markdown text away from and into Stack Exchange, or properly storing drafts within Stack Exchange

Windows Notepad worked without causing issues (but has no rendering engine). Also tried Stack Edit, but that caused issues with copy-pasting too. Will probably have to hunt for a desktop editor

This further justifies my stance that this is a bug. It is not a behaviour that was intentionally enforced to force true markdown in place of HTML. It is just that the check system thinks I unintentionally missed out to format what it thinks is a code block

Stack Overflow prevents me from posting an answer, claiming markdown text using HTML tags is unformatted code

Markdown formatting normally relies on indentations. However, I was having copy-pasting issues with the markdown text between Stack Overflow and Google Docs. I had to do it because Stack Overflow drafts auto-save was not reliable. So I decided to copy the HTML code of the rendered markdown from Stack Overflow instead, because HTML is (ideally) completely supported in markdown and does not rely on indentations at all.

This went well until I was ready to post the answer on Stack Overflow, and then I got an error saying unformatted code. Unfortunately, I didn't take a screenshot at the time, but here's the same error text I found on other people's posts:

If your answer is "Don't use HTML", please also suggest alternatives to properly copying markdown text away from and into Stack Exchange, or properly storing drafts within Stack Exchange

Windows Notepad worked without causing issues (but has no rendering engine). I also tried Stack Edit, but that caused issues with copy-pasting too. I will probably have to hunt for a desktop editor

This further justifies my stance that this is a bug. It is not a behaviour that was intentional to force true markdown in place of HTML. It is just that the check system thinks I unintentionally neglected to format what it thinks is a code block

remove "edit" headings
Source Link
Thom A
  • 95.2k
  • 7
  • 114
  • 166

Edit:

Windows Notepad worked without causing issues (but has no rendering engine). Also tried Stack Edit, but that caused issues with copy-pasting too. Will probably have to hunt for a desktop editor

Edit 2:

Edit:

Windows Notepad worked without causing issues (but has no rendering engine). Also tried Stack Edit, but that caused issues with copy-pasting too. Will probably have to hunt for a desktop editor

Edit 2:

Windows Notepad worked without causing issues (but has no rendering engine). Also tried Stack Edit, but that caused issues with copy-pasting too. Will probably have to hunt for a desktop editor

site behaviour based justification on why this is a bug
Source Link

Edit 2:

The restriction seems to be enforced only on Stack Overflow. I was able to post the same code in Meta Stack Overflow without getting restricted

This further justifies my stance that this is a bug. It is not a behaviour that was intentionally enforced to force true markdown in place of HTML. It is just that the check system thinks I unintentionally missed out to format what it thinks is a code block

Edit 2:

The restriction seems to be enforced only on Stack Overflow. I was able to post the same code in Meta Stack Overflow without getting restricted

This further justifies my stance that this is a bug. It is not a behaviour that was intentionally enforced to force true markdown in place of HTML. It is just that the check system thinks I unintentionally missed out to format what it thinks is a code block

more testing
Source Link
Loading
Visually separate screenshots from the background.
Source Link
Cerbrus
  • 72.7k
  • 65
  • 370
  • 514
Loading
highlighted why "just don't do it" is not a solution
Source Link
Loading
evidence that the problem of copy pasting is real
Source Link
Loading
added 5 characters in body
Source Link
Cerbrus
  • 72.7k
  • 65
  • 370
  • 514
Loading
Correction on HTML support in markdown
Source Link
Loading
changed tag after migration
Link
Loading
clarified rendered markdown vs code block
Source Link
Loading
Post Migrated Here from stackoverflow.com (revisions)
Source Link
Loading