Skip to content

- why my html tags inside codeblock not being rendered properly, I'm using lib from npm #228

Closed Answered by nobkd
ArnavK-09 asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like you are using nuxt-glow on its own. Can you provide a small code example/reproduction?

Maybe you already pass an escaped version of HTML code to the highlighter?
(as the & and ; are highlighted differently than lt and gt)

&lt; == lower than == < and &gt; == greater than == >.
These characters are typically encoded for code blocks, to enforce, that the < or > is text and not part of HTML markup. ⇾ Prevent accidental rendering of code as HTML

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ArnavK-09
Comment options

Answer selected by ArnavK-09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants