Closed ghost closed 7 years ago
This code...
<div hljs hljs-language="javascript"> alert(1 < 2); </div>
...is displayed as...
alert(1 < 2);
Is there a way around this or is this a bug? Plunker demo: https://plnkr.co/edit/RYkDoHgSwt5lyqBXFRvj
Hi @JaredMathis
Use hljs-include and place your code in a separate file or script tag to prevent your code from parsing by browser.
hljs-include
For more information, see #59
Thanks a lot @pc035860!!
This code...
...is displayed as...
Is there a way around this or is this a bug? Plunker demo: https://plnkr.co/edit/RYkDoHgSwt5lyqBXFRvj