mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
The fix makes HTML comment markers in rendered card text visible so nothing can be hidden from readers, but used String.replace with a string pattern, which replaces only the first occurrence - a second comment stayed hidden, and DOMPurify then dropped it unseen. Every occurrence is replaced now. The test applies the real replacement to text with two comments; the negative test fails on any first-only comment replacement. InvisibleBleed moves from the recorded gaps to guarded. Thanks to xet7 !
markdown
GitHub flavored markdown parser for Meteor based on marked.js newest version, updated by xet7.
GFM tables and linebreaks are enabled by default.
Usage
Anywhere inside your template add markdown block and write markdown inside.
Example:
{{#markdown}}
...markdown text here...
{{/markdown}}
That's it!
Thanks to:
-
Christopher Jeffrey for marked.js
-
Bozhao Yu for original meteor-markdown package (I just made this package compatible with Meteor 0.9+)
-
Bernhard Millauer - for contributions to this package
-
xet7 for updating to newest GFM package.
License
MIT