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
const main = async () => { const shiki = require('shiki') const highlighter = await shiki.getHighlighter({ theme: 'monokai' }) const code = 'a & b > c' const lang = 'js' console.log(highlighter.codeToHtml(code, lang)) } main()
generates
<pre class="shiki" style="background-color: #272822"><code><span style="color: #F8F8F2">a </span><span style="color: #F92672">&</span><span style="color: #F8F8F2"> b </span><span style="color: #F92672">></span><span style="color: #F8F8F2"> c</span></code></pre>
instead of
<pre class="shiki" style="background-color: #272822"><code><span style="color: #F8F8F2">a </span><span style="color: #F92672">&</span><span style="color: #F8F8F2"> b </span><span style="color: #F92672">></span><span style="color: #F8F8F2"> c</span></code></pre>
The text was updated successfully, but these errors were encountered:
&
&
5715930
Merge pull request #59 from octref/html-escape
b090c3e
Fix #26
feat: support lang on the meta (#26)
f0e6bc0
fix: revert #26, fix #30
6f02959
No branches or pull requests
generates
instead of
The text was updated successfully, but these errors were encountered: