How to access shiki highlighter? #2224
Unanswered
remiconnesson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to access shiki highlighter because using the prose code component directly doesn't syntax highlight.
The code below is not passing the slot onto shiki despite being a ProseCode (and I need to add the pre, code and span.line tags myself to get the styling from nuxt typography to be applied)
I need to access the shiki highlighter so I can get the correct higlighting on my dynamic code
Alternatively,
I need to do this because I didn't find a way to call a MDC component inside a code block:
doesn't resolve the
content/DynamicText.vue
componentmaybe I missed the way to do it?
Beta Was this translation helpful? Give feedback.
All reactions