evilstreak / markdown-js

A Markdown parser for javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code to html

mtsee opened this issue · comments

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