Adding a custom language with Shiki crashes #4755
Answered
by
brc-dd
TheOnlyTails
asked this question in
Q&A
-
Adding a custom language to shiki, i'm getting this error:
This is the grammar file: https://gist.github.com/TheOnlyTails/ceadec4e194c5228e0fabad9fd7ae251 |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
May 21, 2025
Replies: 1 comment 3 replies
-
Override the language name to lowercase - https://stackblitz.com/edit/vite-3me9w4sq?file=docs/index.md,docs/.vitepress/config.ts Case used in fence block is ignored, so both |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
TheOnlyTails
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Override the language name to lowercase - https://stackblitz.com/edit/vite-3me9w4sq?file=docs/index.md,docs/.vitepress/config.ts
Case used in fence block is ignored, so both
```Nymph
and```nymph
will work fine as long as language.name is in lowercase.