Skip to content

Adding a custom language with Shiki crashes #4755

Answered by brc-dd
TheOnlyTails asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TheOnlyTails
Comment options

@brc-dd
Comment options

@TheOnlyTails
Comment options

Answer selected by TheOnlyTails
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