Update: turns out it wasn't a bug (see the end of the post and the answer)

Original bug report:

Why does this edit comes out looking like this:

The code on the image is blod

Notice that the code on the image is bold despite the fact that it's outside of the ** section.

Looking at the page's elements (using Developer tools) shows that the code ended up inside an <h2> tag and I can't understand why.

I tried to reproduce this here, but no luck so far.


I tried copying the exact markdown here. Still can't reproduce anywhere except on the original page.


Managed to reproduce bug here https://meta.stackexchange.com/a/288690/308440


Managed to reproduce with this markdown:



Edit: turns out this wasn't a bug after all. https://stackoverflow.com/editing-help#headers. Sorry. Ready to get closed/deleted.

  • Edited because I was getting up votes I didn't deserve. Apparently saying "I discovered it's not a bug" at the end of the post wasn't enough. Dec 23, 2016 at 12:04

1 Answer 1


I don't think this is a . The Markdown Editing Help mentions that if you underline using dashes, the previous line is formatted as a header.

And that is exactly what happens here.

Apparently, it doesn't matter if you use one dash or multiple ones.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .