Open WaterSibilantFalling opened 5 years ago
We do absolutely nothing to the HTML at the moment other than injecting the header and footers, even this is abstracted at the moment. While the docs say that, it's worth us checking what it actually does. Do you have a markdown example with the html inside, is that top one an example that causes the issue?
Showdown have a tool on their web page for testing the output so I can use that to check how this works. This really shouldn't be an issue in the mdpdf logic.
If someone has an HTML tag in their markdown, like
in the generated HTML the tag is weirdly and obviously incorrectly automatically closed !
and the correct is removed
In mdpdf, the showdown library is used to create the intermediate HTML. In the showdown library documentation https://github.com/showdownjs/showdown/wiki/Showdown's-Markdown-syntax#handling-html-in-markdown-documents it says
However, in the mdpdf output, tags have been moved and closed.
Note: tags are also closed if markdown=1 is added to the HTML tag in the markdown.
Why? Why oh why?