We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22fc643 commit 167863dCopy full SHA for 167863d
packages/markdown/src/template-integration.js
@@ -65,6 +65,6 @@ if (Package.ui) {
65
text = Blaze._toText(self.templateContentBlock, HTML.TEXTMODE.STRING);
66
}
67
68
- return HTML.Raw(DOMPurify.sanitize(Markdown.render(text), {ALLOW_UNKNOWN_PROTOCOLS: true}));
+ return HTML.Raw(DOMPurify.sanitize(Markdown.render(text).replace('<!--', '<!--').replace('-->', '-->'), {ALLOW_UNKNOWN_PROTOCOLS: true}));
69
}));
70
0 commit comments