Need help ignoring shiki highlight hints in a copy button
In Nuxt content, you can use Shiki to highlight code blocks, and you can highlight these blocks with nice inlay hints, for example, if I have some javascript code, for example:
and I wanted to highlight the console.log line, I can do this:
but if I make a ProseCode component, and add a copy button that uses vue use to copy the string passed through the "code" prop, I get the inlay hint in the copied code. How can I avoid getting the inlay hints without either using regex or ignoring all coments?
1 Reply
this is my current hack:
rather than just doing
copy(props.code)
or copy(code)
in the template