Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 22, 2025
1 parent 5d2e27b commit 498713c
Show file tree
Hide file tree
Showing 4 changed files with 337 additions and 316 deletions.
6 changes: 5 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export default withMermaid(defineConfig({
},
codeTransformers: [
transformerMetaWordHighlight(),
transformerNotationWordHighlight(),
transformerNotationWordHighlight({
matchAlgorithm: 'v3',
}),
{
// Render custom themes with codeblocks
name: 'shiki:inline-theme',
Expand Down Expand Up @@ -140,6 +142,8 @@ export default withMermaid(defineConfig({
transformerRemoveNotationEscape(),
transformerColorizedBrackets({ explicitTrigger: true }),
],
// @ts-expect-error Waits for https://github.com/vuejs/vitepress/pull/4507
languages: ['js', 'jsx', 'ts', 'tsx'],
},

cleanUrls: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/packages/vitepress.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineConfig({
],
// [!code hl:2]
// Explicitly load these languages for types hightlighting
languages: ['js', 'jsx', 'ts', 'tsx',]
languages: ['js', 'jsx', 'ts', 'tsx']
}
})
```
Expand Down
Loading

0 comments on commit 498713c

Please sign in to comment.