mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- client/lib/tests/renderLinksPlainText.tests.js: the 'render links as plain text' toggle and XSS hardening. Config assertions (stripLinks adds <a> to FORBID_TAGS, default does not, KEEP_CONTENT) plus real sanitizeHTML() behavior: <a> stripped to its text when stripLinks, kept by default, and javascript: hrefs / event handlers / <script> removed regardless. - client/lib/tests/alwaysShowCodeAsText.tests.js: escapeHtmlSource (exposed on the Markdown export) escapes <script>/comments/quotes/ampersand-first so code is shown not executed; leaves plain text and empty strings unchanged. - server/lib/tests/impersonationReportQuery.tests.js: the Impersonation report search selector (extracted to models/lib/impersonationReportQuery.js so it is testable without re-registering the publication) builds a case-insensitive $or across the identity fields, escapes regex metacharacters, and is empty for a blank term. The MimeBleed fix (fileValidationBypass.security.tests.js), SortBleed (boards.security.tests.js) and import/export anonymization (importExportSecurity.tests.js) already carry positive + negative tests.
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