We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The sanitization is a bit overzealous, which can remove real content. Example:
render('```sh\n$ gulp test\n```');
Yields
<pre><code class="lang-sh">$ gulp \n</code></pre>\n
The word "test" is removed because pre-sanitization it looks like...
<pre><code class="lang-sh">$ gulp <span class="hljs-built_in">test</span>\n</code></pre>\n
Note the underscore in the hljs-built_in class, which doesn't match the regexp in the sanitizer.
hljs-built_in
The text was updated successfully, but these errors were encountered:
Thanks a lot! Any other characters I missed for highlight-js?
I wish we'd have a highlighter ran after sanitizer, but it isn't currently possible. :(
Sorry, something went wrong.
Not sure, I haven't noticed anything else though. On Dec 21, 2014 11:48 AM, "Alex Kocharin" notifications@github.com wrote:
Thanks a lot! Any other characters I missed for highlight-js? I wish we'd have a highlighter ran after sanitizer, but it isn't currently possible. :( — Reply to this email directly or view it on GitHub #1 (comment).
— Reply to this email directly or view it on GitHub #1 (comment).
Successfully merging a pull request may close this issue.
The sanitization is a bit overzealous, which can remove real content. Example:
Yields
The word "test" is removed because pre-sanitization it looks like...
Note the underscore in the
hljs-built_in
class, which doesn't match the regexp in the sanitizer.The text was updated successfully, but these errors were encountered: