Skip to content

Commit

Permalink
docs: update highlight.preload config (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashour committed Oct 25, 2023
1 parent e5d0029 commit 5daba0b
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions docs/content/1.get-started/2.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,10 @@ export default defineNuxtConfig({
content: {
highlight: {
preload: [
{
id: 'gdscript',
scopeName: 'source.gdscript',
aliases: ['gdscript', 'gd'], // Use to mark code blocks in Markdown
grammar: JSON.parse(
readFileSync(
// Place the language grammar file somewhere in your project
'./shiki/languages/gdscript.tmLanguage.json'
).toString()
),
},
// Read more about shikiji languages: https://github.com/antfu/shikiji#fine-grained-bundle
JSON.parse(
readFileSync('./shiki/languages/gdscript.tmLanguage.json', 'utf-8'),
),
],
},
},
Expand Down

0 comments on commit 5daba0b

Please sign in to comment.