markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

code to html

Open mtsee opened this issue 8 years ago • 1 comments

··· test ··· to HTML is:

<code>
test
</code>

but ,This is right

<pre>
<code>
test
</code>
</pre>

mtsee avatar Sep 18 '17 07:09 mtsee

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>');

clChenLiang avatar Mar 28 '18 08:03 clChenLiang