nea / MarkdownViewerPlusPlus

A Notepad++ Plugin to view a Markdown file rendered on-the-fly
MIT License
1.19k stars 141 forks source link

Fenced code blocks #33

Open p11h opened 7 years ago

p11h commented 7 years ago

When exporting to HTML, the <pre> and <code> tags for fenced code blocks are separated, and the <code> tag indented on a new line.

    <pre>
        <code>aaa
...
</code>
    </pre>

Something like the above occurs, and as a result the first line of code is preceded by whitespace, and an extra line is included at the end:

        aaa
...

The HTML to Clipboard produces the expected HTML:

<pre><code>aaa
...
</code></pre>

And the desired result:

aaa
...
nea commented 7 years ago

Hey @stezmi

Uh, ok. Yeah, I do some pre-processing I probably shouldn't do if the clipboard output is correct ^^'

Will check on that.

Thanks

Pyroseza commented 6 years ago

What's the status on this one?