nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
16.91k stars 1.72k forks source link

Why code from plugin code-syntax-highlight does not work for prism. #3190

Open snowdream opened 9 months ago

snowdream commented 9 months ago

Summary

A clear and concise description of what the question is. Why code from plugin [code-syntax-highlight](https://github.com/nhn/tui.editor/tree/master/plugins/code-syntax-highlight) does not work for prism.

from [code-syntax-highlight](https://github.com/nhn/tui.editor/tree/master/plugins/code-syntax-highlight)

<pre data-nodeid="411" class="lang-js"><code data-language="js"><span class="token keyword">const</span> editor <span class="token operator">=</span> editor
</code></pre>

for prism

<pre data-nodeid="411" class="language-js"><codeclass="language-js"><span class="token keyword">const</span> editor <span class="token operator">=</span> editor
</code></pre>

Screenshots

If applicable, add screenshots to help explain your question. image image

Version

Write the version of the Editor you are currently using. latest

Additional context

Add any other context about the problem here.