feat: add shiki to markdown rendering for code highlighting

This commit is contained in:
2026-01-30 17:56:57 -06:00
parent b3bb769c47
commit b7f76c5847
4 changed files with 71 additions and 1 deletions

24
pnpm-lock.yaml generated
View File

@@ -74,6 +74,12 @@ importers:
astro-icon:
specifier: ^1.1.5
version: 1.1.5
marked:
specifier: ^17.0.1
version: 17.0.1
marked-shiki:
specifier: 1.2.1
version: 1.2.1(marked@17.0.1)(shiki@3.21.0)
mdast-util-to-string:
specifier: ^4.0.0
version: 4.0.0
@@ -3730,6 +3736,17 @@ packages:
markdown-table@3.0.4:
resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}
marked-shiki@1.2.1:
resolution: {integrity: sha512-yHxYQhPY5oYaIRnROn98foKhuClark7M373/VpLxiy5TrDu9Jd/LsMwo8w+U91Up4oDb9IXFrP0N1MFRz8W/DQ==}
peerDependencies:
marked: '>=7.0.0'
shiki: '>=1.0.0'
marked@17.0.1:
resolution: {integrity: sha512-boeBdiS0ghpWcSwoNm/jJBwdpFaMnZWRzjA6SkUMYb40SVaN1x7mmfGKp0jvexGcx+7y2La5zRZsYFZI6Qpypg==}
engines: {node: '>= 20'}
hasBin: true
math-intrinsics@1.1.0:
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
engines: {node: '>= 0.4'}
@@ -10070,6 +10087,13 @@ snapshots:
markdown-table@3.0.4: {}
marked-shiki@1.2.1(marked@17.0.1)(shiki@3.21.0):
dependencies:
marked: 17.0.1
shiki: 3.21.0
marked@17.0.1: {}
math-intrinsics@1.1.0: {}
maxmin@2.1.0: