I came across this answer which appeared to have rendered incorrectly.
Editing it, the answer looked fine in preview so I suspected it just needed to be rerendered, but this was not the case. The answer did show one initial error in that solution was surrounded by two <h1>
tags. I fixed the closing tag, and still looked fine in preview:
But, on saving the edit, the published question was still improperly rendered, as before.
The solution was to remove the ------
Markdown underline from below the title. As the underline is supposed to render the preceding text as <h2>
, I assume there is some kind of conflict but, as you can see, this issue affects not only the title but the following paragraph.
My question is, why is this causing the published answer to not render correctly even when it is correct in preview, and can this be prevented?
# Solution
should be equivalent to<h1>Solution</h1>
.