7

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.

Edit:

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

Edit:

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

Edit:

Managed to reproduce with this markdown:

`foo`bar
-

foobar

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

1
  • 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 '16 at 12:04
4

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.

2

You must log in to answer this question.

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