markdown-js
markdown-js copied to clipboard
code to html
··· test ··· to HTML is:
<code>
test
</code>
but ,This is right
<pre>
<code>
test
</code>
</pre>
I have try to revise the output of markdown.toHTML() function.
here the simple code:
html.replace(/<code><\/code>\`(?=[^<])/g,'<code>');
html.replace(/<code><\/code>\`(?=<)/g, '<\/code>');