vue-prism icon indicating copy to clipboard operation
vue-prism copied to clipboard

Won't run using <script type="text/plain" class="language-markup">

Open claide opened this issue 7 years ago • 0 comments

I tried using the basic prism highlighter using

<pre class="line-numbers language-markup">
	<code class="language-markup">
                 //some html here using &lt; and &gt;
        </code>
</pre>

and it works, but when using the script tag like

<script type="text/plain" class="language-markup">
        //some html here without using  &lt; and &gt;
</script>

it doesn't work as expected. Can you put an example how to achieve that? Thanks!

claide avatar Jan 22 '18 03:01 claide