Markdown creates output like this:
<p>see this example:</p>
<pre><code>code</code></pre>
Is this correct or should it be:
<p>see this example
<pre><code>code</code></pre>
</p>
To me the second one seems correct, since the paragraph and the code example are one unit. What are your thoughts about this?
edit: actually I could argue the same about a list (eg "order any of the following:") but a list can't be placed withing a paragraph.
edit2: to clarify, technically both are correct, as a table based layout is technically possible. But what would you argue is the way that best expresses the intention of the tags given a paragraph like this? Or maybe it doesn't matter? Note that the pre element isn't very relevant here (but included because markdown outputs it too).
code
element, but then your examples are actually about code insidepre
blocks. There are two completely independent ways to produce those things, and by not showing us the original Markdown you're using or telling us your expectations, it's hard to see what the actual problem is(if there is one). Is it that you just don't know the Markdown for creating an in-linecode
snippet?code
outside some block element.)