Skip to content

Commit e011550

Browse files
authored
Merge pull request #7 from microcmsio/feat/shiki-v4-support
shikiをv1からv4までサポートする
2 parents de1b0e8 + d0bbc8c commit e011550

4 files changed

Lines changed: 122 additions & 124 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
node-version: [20.x, 22.x, 24.x]
19+
shiki-version: ["1.29.2", "2.5.0", "3.23.0", "4.3.0"]
1920
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2021

2122
steps:
@@ -26,5 +27,6 @@ jobs:
2627
node-version: ${{ matrix.node-version }}
2728
cache: "npm"
2829
- run: npm ci
30+
- run: npm install shiki@${{ matrix.shiki-version }} --no-save --ignore-scripts
2931
- run: npm run build
3032
- run: npm test

docs/features/transformer/syntax-highlighting-by-shiki.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const syntaxHighlightingByShikiTransformer: (options: Options) => Transformer
3535
3636
## Usage
3737
38-
追加で`shiki`パッケージをインストールする必要があります。
38+
追加で`shiki`パッケージをインストールする必要があります。shiki v1 / v2 / v3 / v4 に対応しています(v4 利用時は Node.js >= 20 が必要)。
3939
4040
::: code-group
4141

0 commit comments

Comments
 (0)