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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code sample inside code block get interpreted as HTML-tags while using codeSyntaxtHighlight + Prism without specifying a language
codeSyntaxtHighlight
Prism
Fiddle: https://jsfiddle.net/xv09fd76/
const { Editor } = toastui; const { codeSyntaxHighlight } = Editor.plugin; const viewer = new Editor.factory({ el: document.getElementById('viewer'), viewer: true, initialValue: `\`\`\` Image tag: <img src="example.com"> Div tag: <div data-foo="bar" style="color: red">Hello!</div> \`\`\``, plugins: [[codeSyntaxHighlight, { highlighter: Prism }]] });
Code samples aren't interpreted as HTML
not tested
HTML tags are correctly escaped when correct language is specified:
```html <div /> ```
HTML-tags are also correctly escaped without codeSyntaxHIghlight-plugin
codeSyntaxHIghlight
The text was updated successfully, but these errors were encountered:
Bug: escape XML-entities in codeSyntaxHighlight plugin when language …
3dc4ab7
…is unspecified (fix nhn#3220)
Successfully merging a pull request may close this issue.
Describe the bug
Code sample inside code block get interpreted as HTML-tags while using
codeSyntaxtHighlight
+Prism
without specifying a languageTo Reproduce
Fiddle: https://jsfiddle.net/xv09fd76/
Expected behavior
Code samples aren't interpreted as HTML
Desktop (please complete the following information):
Smartphone (please complete the following information):
not tested
Additional context
HTML tags are correctly escaped when correct language is specified:
HTML-tags are also correctly escaped without
codeSyntaxHIghlight
-pluginThe text was updated successfully, but these errors were encountered: