remarkable
remarkable copied to clipboard
Bad render when include html comments
If the content was:
<!-- comment -->
# bad title
It not renders right.
You can see it running:
"use strict";
var Remarkable = require("remarkable");
var md = new Remarkable("full",{html:true});
console.log(md.render("# title\n")); //ok
// bad:
console.log(md.render("<!-- comment -->\n# title\n"));
Yes. This appears to ignore inline Markdown on/near the comment when they would both render into the same block
Also been running into this issue.
Is there a rule hook that could be used to strip out the comment?