Skip to content

Commit

Permalink
feat: update shikiji, support twoslash (#3339)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 15, 2023
1 parent 0894896 commit 8800195
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -101,8 +101,8 @@
"mark.js": "8.11.1",
"minisearch": "^6.3.0",
"mrmime": "^1.0.1",
"shikiji": "^0.7.4",
"shikiji-transformers": "^0.7.4",
"shikiji": "^0.9.2",
"shikiji-transformers": "^0.9.2",
"vite": "^5.0.2",
"vue": "^3.3.8"
},
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/node/markdown/plugins/highlight.ts
Expand Up @@ -163,6 +163,9 @@ export async function highlight(
transformerCompactLineOptions(lineOptions),
...userTransformers
],
meta: {
__raw: attrs
},
...(typeof theme === 'string' || 'name' in theme
? { theme }
: {
Expand Down

0 comments on commit 8800195

Please sign in to comment.