feat: add rehype-highlight to support code block syntax highlighting
This commit is contained in:
parent
4c5e03598f
commit
4f2884077a
@ -14,6 +14,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.23.1",
|
||||
"rehype-highlight": "^7.0.0",
|
||||
"tailwind-merge": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
63
yarn.lock
63
yarn.lock
@ -2431,6 +2431,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hast-util-is-element@npm:^3.0.0":
|
||||
version: 3.0.0
|
||||
resolution: "hast-util-is-element@npm:3.0.0"
|
||||
dependencies:
|
||||
"@types/hast": "npm:^3.0.0"
|
||||
checksum: 10c0/f5361e4c9859c587ca8eb0d8343492f3077ccaa0f58a44cd09f35d5038f94d65152288dcd0c19336ef2c9491ec4d4e45fde2176b05293437021570aa0bc3613b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hast-util-to-estree@npm:^3.0.0":
|
||||
version: 3.1.0
|
||||
resolution: "hast-util-to-estree@npm:3.1.0"
|
||||
@ -2478,6 +2487,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hast-util-to-text@npm:^4.0.0":
|
||||
version: 4.0.2
|
||||
resolution: "hast-util-to-text@npm:4.0.2"
|
||||
dependencies:
|
||||
"@types/hast": "npm:^3.0.0"
|
||||
"@types/unist": "npm:^3.0.0"
|
||||
hast-util-is-element: "npm:^3.0.0"
|
||||
unist-util-find-after: "npm:^5.0.0"
|
||||
checksum: 10c0/93ecc10e68fe5391c6e634140eb330942e71dea2724c8e0c647c73ed74a8ec930a4b77043b5081284808c96f73f2bee64ee416038ece75a63a467e8d14f09946
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hast-util-whitespace@npm:^3.0.0":
|
||||
version: 3.0.0
|
||||
resolution: "hast-util-whitespace@npm:3.0.0"
|
||||
@ -2487,6 +2508,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"highlight.js@npm:~11.9.0":
|
||||
version: 11.9.0
|
||||
resolution: "highlight.js@npm:11.9.0"
|
||||
checksum: 10c0/27cfa8717dc9d200aecbdb383eb122d5f45ce715d2f468583785d36fbfe5076ce033abb02486dc13b407171721cda6f474ed3f3a5a8e8c3d91367fa5f51ee374
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"http-cache-semantics@npm:^4.1.1":
|
||||
version: 4.1.1
|
||||
resolution: "http-cache-semantics@npm:4.1.1"
|
||||
@ -2899,6 +2927,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lowlight@npm:^3.0.0":
|
||||
version: 3.1.0
|
||||
resolution: "lowlight@npm:3.1.0"
|
||||
dependencies:
|
||||
"@types/hast": "npm:^3.0.0"
|
||||
devlop: "npm:^1.0.0"
|
||||
highlight.js: "npm:~11.9.0"
|
||||
checksum: 10c0/ee230ba1da3b339bae640479a09a4c82e5727bae38345421767c6407db4d514c10387300900ba79aa8c64dd79ae7f8d1acff847c01d5b0a20364a5ce04685f27
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lru-cache@npm:^10.0.1, lru-cache@npm:^10.2.0":
|
||||
version: 10.2.2
|
||||
resolution: "lru-cache@npm:10.2.2"
|
||||
@ -4033,6 +4072,7 @@ __metadata:
|
||||
react: "npm:^18.2.0"
|
||||
react-dom: "npm:^18.2.0"
|
||||
react-router-dom: "npm:^6.23.1"
|
||||
rehype-highlight: "npm:^7.0.0"
|
||||
tailwind-merge: "npm:^2.3.0"
|
||||
tailwindcss: "npm:^3.4.3"
|
||||
typescript: "npm:^5.2.2"
|
||||
@ -4065,6 +4105,19 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rehype-highlight@npm:^7.0.0":
|
||||
version: 7.0.0
|
||||
resolution: "rehype-highlight@npm:7.0.0"
|
||||
dependencies:
|
||||
"@types/hast": "npm:^3.0.0"
|
||||
hast-util-to-text: "npm:^4.0.0"
|
||||
lowlight: "npm:^3.0.0"
|
||||
unist-util-visit: "npm:^5.0.0"
|
||||
vfile: "npm:^6.0.0"
|
||||
checksum: 10c0/bf9eba61ac2635db6c6635d3485456f2d6bdf43e3acba34deb673ddde82dc8e0a7a4ba81c4f26dda85ecc5e99a9e949c05ed1b4fb25c0414e970d9623894c935
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"remark-mdx@npm:^3.0.0":
|
||||
version: 3.0.1
|
||||
resolution: "remark-mdx@npm:3.0.1"
|
||||
@ -4718,6 +4771,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"unist-util-find-after@npm:^5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "unist-util-find-after@npm:5.0.0"
|
||||
dependencies:
|
||||
"@types/unist": "npm:^3.0.0"
|
||||
unist-util-is: "npm:^6.0.0"
|
||||
checksum: 10c0/a7cea473c4384df8de867c456b797ff1221b20f822e1af673ff5812ed505358b36f47f3b084ac14c3622cb879ed833b71b288e8aa71025352a2aab4c2925a6eb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"unist-util-is@npm:^6.0.0":
|
||||
version: 6.0.0
|
||||
resolution: "unist-util-is@npm:6.0.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user