Reputation: 2932
Is there a way to put an escape character from html inside a codeblock in markdown? Specifically, I was hoping to a no line-break space character,
, inside a code block to create a space separated number that wouldn't get cut into multiple lines. I don't think it affects anything, but this is for the stackedit flavor of markdown.
Currently, stackedit renders 1 000
exactly the same as Stack Overflow, with the html escape character being copied instead of rendered.
Upvotes: 1
Views: 3229
Reputation: 7803
No, code-blocks are generally rendered as verbatim blocks.
If you want to achieve the equivalent effect, you'll need to hand craft the html and embed your code sample as that instead. (shouldn't be too hard - just look at a rendered block of markdown code to get the layout).
For instance, stack simply strips the leading spaces then wraps it in a <pre><code>...</code></pre>
block.
Upvotes: 1