Closed bouygues closed 4 years ago
OMG, I cannot type the markdown sample code here. So I attach it as a txt file. test.md.txt
Since html tags are allowed in markdown, if you want tags that appear in the text they should be escaped in the source.
Does using either \<html\>
or <html>
work?
So I had a quick look at this:
\<html\>\<head\>\<title\>
seems to work.<head>
tag is left as-is in the markdown output, I suppose firefox interprets it generously (that is, ignoring the missing /
) as the end of the document, which is why the page is cut off at that levelSo this is basically a case of invalid input (so I wouldn’t call this a bug). If we want to handle this more gracefully, we could use the markdown-it-sanitizer plugin, that should be more or less plug-and-play.
When "