Custom grammar does not load #4249
-
I'm trying to load my custom grammar in as such: import grammar from "../../syntax/nymph.tmLanguage.json" with { type: "json" };
export default defineConfig({
markdown: {
shikiSetup: async (shiki) => {
await shiki.loadLanguage(grammar);
}
}
}); I've tried using However, when opening the site, I get this message:
What's going on here? My grammar is available here. |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
Oct 4, 2024
Replies: 1 comment 1 reply
-
Set it's name to markdown: {
languageAlias: {
nym: 'Nymph'
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheOnlyTails
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set it's name to
nym
. Alternatively, add this: