Skip to content

Commit

Permalink
update shiki to v0.12.1 (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Dec 24, 2022
1 parent c1867fd commit f35e724
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 44 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-experts-push.md
@@ -0,0 +1,5 @@
---
'nextra': patch
---

update shiki to v0.12.1
2 changes: 0 additions & 2 deletions docs/pages/docs/guide/syntax-highlighting.mdx
Expand Up @@ -141,8 +141,6 @@ Nextra uses CSS variables to define the colors for tokens. You can inject a [glo
--shiki-token-string-expression: #22863a;
--shiki-token-punctuation: #212121;
--shiki-token-link: #22863a;
--nextra-shiki-deleted: #f00;
--nextra-shiki-inserted: #f00;
}

.dark {
Expand Down
4 changes: 2 additions & 2 deletions packages/nextra/package.json
Expand Up @@ -76,7 +76,7 @@
"format": "prettier --ignore-path ../../.gitignore --write --list-different ."
},
"dependencies": {
"@mdx-js/mdx": "^2.1.3",
"@mdx-js/mdx": "^2.1.5",
"@napi-rs/simple-git": "^0.1.8",
"github-slugger": "^2.0.0",
"graceful-fs": "^4.2.10",
Expand All @@ -85,7 +85,7 @@
"rehype-pretty-code": "0.6.0",
"remark-gfm": "^3.0.1",
"remark-reading-time": "^2.0.1",
"shiki": "0.10.1",
"shiki": "0.12.1",
"slash": "^3.0.0",
"title": "^3.5.3",
"unist-util-visit": "^4.1.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/nextra/src/theme.json
@@ -1,6 +1,6 @@
{
"name": "css-variables",
"type": "light",
"type": "css",
"colors": {
"editor.foreground": "#000001",
"editor.background": "#000002"
Expand Down
2 changes: 0 additions & 2 deletions packages/nextra/styles/variables.css
Expand Up @@ -10,8 +10,6 @@
--shiki-token-string-expression: #22863a;
--shiki-token-punctuation: #212121;
--shiki-token-link: #22863a;
--nextra-shiki-deleted: #f00;
--nextra-shiki-inserted: #f00;
}

.dark {
Expand Down
67 changes: 30 additions & 37 deletions pnpm-lock.yaml

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

1 comment on commit f35e724

@vercel
Copy link

@vercel vercel bot commented on f35e724 Dec 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.