jonathantneal/posthtml-md

Parsing issue when using `foo <bar>`

cadorn opened this issue · 1 comments

When using:

<md>
This is inline `foo <bar>` code.
</md>

posthtml will parse <bar> as a HTML tag and thus break the intended markdown.

A workaround could be to add support for <script type="markdown"> to posthtml-md in hopes that posthtml will leave everything inside the script tag alone.

@cadorn I put together alternative plugin that doesn't even bother parsing tags inside markdown (because why should it? Inline html is part of markdown). You may want to try it out.