summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhruv Bhanushali2025-04-14 13:20:07 +0400
committerGitHub2025-04-14 11:20:07 +0200
commitb5cc1b4d4ee7dc737616c6ada893369b13ddb9c6 (patch)
tree3bf40bfcef0d084ea1062a8beefe3ed36a338bd2
parent8278ec947a03c865afb123ff5780a8c1f1f433df (diff)
downloadIT.starlight-b5cc1b4d4ee7dc737616c6ada893369b13ddb9c6.tar.gz
IT.starlight-b5cc1b4d4ee7dc737616c6ada893369b13ddb9c6.tar.bz2
IT.starlight-b5cc1b4d4ee7dc737616c6ada893369b13ddb9c6.zip
Update Expressive Code and related packages (#3109)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> Co-authored-by: hippotastic <6137925+hippotastic@users.noreply.github.com>
-rw-r--r--.changeset/giant-eagles-jog.md6
-rw-r--r--packages/markdoc/__tests__/markdoc.test-d.ts1
-rw-r--r--packages/markdoc/index.mjs4
-rw-r--r--packages/starlight/package.json2
-rw-r--r--pnpm-lock.yaml153
5 files changed, 77 insertions, 89 deletions
diff --git a/.changeset/giant-eagles-jog.md b/.changeset/giant-eagles-jog.md
new file mode 100644
index 00000000..ba8cc653
--- /dev/null
+++ b/.changeset/giant-eagles-jog.md
@@ -0,0 +1,6 @@
+---
+"@astrojs/starlight-markdoc": patch
+"@astrojs/starlight": patch
+---
+
+Updates Expressive Code to v0.41.1
diff --git a/packages/markdoc/__tests__/markdoc.test-d.ts b/packages/markdoc/__tests__/markdoc.test-d.ts
index d0cc0067..e13e958b 100644
--- a/packages/markdoc/__tests__/markdoc.test-d.ts
+++ b/packages/markdoc/__tests__/markdoc.test-d.ts
@@ -45,6 +45,7 @@ describe('nodes', () => {
| 'lang'
/** Not all `<Code>` component props are supported in code fences. */
| 'class'
+ | 'hangingIndent'
| 'locale'
| 'preserveIndent'
| 'useDiffSyntax'
diff --git a/packages/markdoc/index.mjs b/packages/markdoc/index.mjs
index 21260cf5..a2ac12cf 100644
--- a/packages/markdoc/index.mjs
+++ b/packages/markdoc/index.mjs
@@ -134,6 +134,10 @@ export const StarlightMarkdocPreset = {
type: String,
required: true,
},
+ hangingIndent: {
+ type: Number,
+ required: false,
+ },
lang: {
type: String,
required: false,
diff --git a/packages/starlight/package.json b/packages/starlight/package.json
index c55e96d5..9e6d435a 100644
--- a/packages/starlight/package.json
+++ b/packages/starlight/package.json
@@ -197,7 +197,7 @@
"@types/hast": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/mdast": "^4.0.4",
- "astro-expressive-code": "^0.40.2",
+ "astro-expressive-code": "^0.41.1",
"bcp-47": "^2.1.0",
"hast-util-from-html": "^2.0.1",
"hast-util-select": "^6.0.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index af7d2526..1d1717c4 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -183,8 +183,8 @@ importers:
specifier: ^4.0.4
version: 4.0.4
astro-expressive-code:
- specifier: ^0.40.2
- version: 0.40.2(astro@5.6.1)
+ specifier: ^0.41.1
+ version: 0.41.1(astro@5.6.1)
bcp-47:
specifier: ^2.1.0
version: 2.1.0
@@ -1413,8 +1413,8 @@ packages:
requiresBuild: true
optional: true
- /@expressive-code/core@0.40.2:
- resolution: {integrity: sha512-gXY3v7jbgz6nWKvRpoDxK4AHUPkZRuJsM79vHX/5uhV9/qX6Qnctp/U/dMHog/LCVXcuOps+5nRmf1uxQVPb3w==}
+ /@expressive-code/core@0.41.1:
+ resolution: {integrity: sha512-mG2IrN4t/NGPmEeeswmttsW7W7c96sz3ASjo1psQnOqU5QWAF61HpnBu3lPxHI8iQJyZI8wfAroo9FFpwlkvAQ==}
dependencies:
'@ctrl/tinycolor': 4.1.0
hast-util-select: 6.0.2
@@ -1427,23 +1427,23 @@ packages:
unist-util-visit-parents: 6.0.1
dev: false
- /@expressive-code/plugin-frames@0.40.2:
- resolution: {integrity: sha512-aLw5IlDlZWb10Jo/TTDCVsmJhKfZ7FJI83Zo9VDrV0OBlmHAg7klZqw68VDz7FlftIBVAmMby53/MNXPnMjTSQ==}
+ /@expressive-code/plugin-frames@0.41.1:
+ resolution: {integrity: sha512-cwUUWMr2jNpKpgiepEzM9BGnU60WepE5/Ar3H2aOn8IzcDa4Eeuk0JqQB1Vvpo0bu+VRIxaTA2njoAIeQuMN5w==}
dependencies:
- '@expressive-code/core': 0.40.2
+ '@expressive-code/core': 0.41.1
dev: false
- /@expressive-code/plugin-shiki@0.40.2:
- resolution: {integrity: sha512-t2HMR5BO6GdDW1c1ISBTk66xO503e/Z8ecZdNcr6E4NpUfvY+MRje+LtrcvbBqMwWBBO8RpVKcam/Uy+1GxwKQ==}
+ /@expressive-code/plugin-shiki@0.41.1:
+ resolution: {integrity: sha512-xJHk89ECxQpvf7ftTmtEfAKoApYYr5Um7d6fiE6GuY7+WuXN02+ZHH8r5pSJpxlQMfAmavqbNPd3dEJ9v/zHnQ==}
dependencies:
- '@expressive-code/core': 0.40.2
- shiki: 1.29.2
+ '@expressive-code/core': 0.41.1
+ shiki: 3.2.2
dev: false
- /@expressive-code/plugin-text-markers@0.40.2:
- resolution: {integrity: sha512-/XoLjD67K9nfM4TgDlXAExzMJp6ewFKxNpfUw4F7q5Ecy+IU3/9zQQG/O70Zy+RxYTwKGw2MA9kd7yelsxnSmw==}
+ /@expressive-code/plugin-text-markers@0.41.1:
+ resolution: {integrity: sha512-PFvk91yY+H8KVEcyZSrktLoWzBgLVpowvMxOJooFn74roGxnU4TEBJpWcRnJFtMEwTLzWNnk10MSOApOccvSKg==}
dependencies:
- '@expressive-code/core': 0.40.2
+ '@expressive-code/core': 0.41.1
dev: false
/@img/sharp-darwin-arm64@0.33.3:
@@ -1981,17 +1981,6 @@ packages:
requiresBuild: true
optional: true
- /@shikijs/core@1.29.2:
- resolution: {integrity: sha512-vju0lY9r27jJfOY4Z7+Rt/nIOjzJpZ3y+nYpqtUZInVoXQ/TJZcfGnNOGnKjFdVZb8qexiCuSlZRKcGfhhTTZQ==}
- dependencies:
- '@shikijs/engine-javascript': 1.29.2
- '@shikijs/engine-oniguruma': 1.29.2
- '@shikijs/types': 1.29.2
- '@shikijs/vscode-textmate': 10.0.2
- '@types/hast': 3.0.4
- hast-util-to-html: 9.0.5
- dev: false
-
/@shikijs/core@3.2.1:
resolution: {integrity: sha512-FhsdxMWYu/C11sFisEp7FMGBtX/OSSbnXZDMBhGuUDBNTdsoZlMSgQv5f90rwvzWAdWIW6VobD+G3IrazxA6dQ==}
dependencies:
@@ -2000,12 +1989,13 @@ packages:
'@types/hast': 3.0.4
hast-util-to-html: 9.0.5
- /@shikijs/engine-javascript@1.29.2:
- resolution: {integrity: sha512-iNEZv4IrLYPv64Q6k7EPpOCE/nuvGiKl7zxdq0WFuRPF5PAE9PRo2JGq/d8crLusM59BRemJ4eOqrFrC4wiQ+A==}
+ /@shikijs/core@3.2.2:
+ resolution: {integrity: sha512-yvlSKVMLjddAGBa2Yu+vUZxuu3sClOWW1AG+UtJkvejYuGM5BVL35s6Ijiwb75O9QdEx6IkMxinHZSi8ZyrBaA==}
dependencies:
- '@shikijs/types': 1.29.2
+ '@shikijs/types': 3.2.2
'@shikijs/vscode-textmate': 10.0.2
- oniguruma-to-es: 2.3.0
+ '@types/hast': 3.0.4
+ hast-util-to-html: 9.0.5
dev: false
/@shikijs/engine-javascript@3.2.1:
@@ -2015,11 +2005,12 @@ packages:
'@shikijs/vscode-textmate': 10.0.2
oniguruma-to-es: 4.1.0
- /@shikijs/engine-oniguruma@1.29.2:
- resolution: {integrity: sha512-7iiOx3SG8+g1MnlzZVDYiaeHe7Ez2Kf2HrJzdmGwkRisT7r4rak0e655AcM/tF9JG/kg5fMNYlLLKglbN7gBqA==}
+ /@shikijs/engine-javascript@3.2.2:
+ resolution: {integrity: sha512-tlDKfhWpF4jKLUyVAnmL+ggIC+0VyteNsUpBzh1iwWLZu4i+PelIRr0TNur6pRRo5UZIv3ss/PLMuwahg9S2hg==}
dependencies:
- '@shikijs/types': 1.29.2
+ '@shikijs/types': 3.2.2
'@shikijs/vscode-textmate': 10.0.2
+ oniguruma-to-es: 4.1.0
dev: false
/@shikijs/engine-oniguruma@3.2.1:
@@ -2028,10 +2019,11 @@ packages:
'@shikijs/types': 3.2.1
'@shikijs/vscode-textmate': 10.0.2
- /@shikijs/langs@1.29.2:
- resolution: {integrity: sha512-FIBA7N3LZ+223U7cJDUYd5shmciFQlYkFXlkKVaHsCPgfVLiO+e12FmQE6Tf9vuyEsFe3dIl8qGWKXgEHL9wmQ==}
+ /@shikijs/engine-oniguruma@3.2.2:
+ resolution: {integrity: sha512-vyXRnWVCSvokwbaUD/8uPn6Gqsf5Hv7XwcW4AgiU4Z2qwy19sdr6VGzMdheKKN58tJOOe5MIKiNb901bgcUXYQ==}
dependencies:
- '@shikijs/types': 1.29.2
+ '@shikijs/types': 3.2.2
+ '@shikijs/vscode-textmate': 10.0.2
dev: false
/@shikijs/langs@3.2.1:
@@ -2039,10 +2031,10 @@ packages:
dependencies:
'@shikijs/types': 3.2.1
- /@shikijs/themes@1.29.2:
- resolution: {integrity: sha512-i9TNZlsq4uoyqSbluIcZkmPL9Bfi3djVxRnofUHwvx/h6SRW3cwgBC5SML7vsDcWyukY0eCzVN980rqP6qNl9g==}
+ /@shikijs/langs@3.2.2:
+ resolution: {integrity: sha512-NY0Urg2dV9ETt3JIOWoMPuoDNwte3geLZ4M1nrPHbkDS8dWMpKcEwlqiEIGqtwZNmt5gKyWpR26ln2Bg2ecPgw==}
dependencies:
- '@shikijs/types': 1.29.2
+ '@shikijs/types': 3.2.2
dev: false
/@shikijs/themes@3.2.1:
@@ -2050,11 +2042,10 @@ packages:
dependencies:
'@shikijs/types': 3.2.1
- /@shikijs/types@1.29.2:
- resolution: {integrity: sha512-VJjK0eIijTZf0QSTODEXCqinjBn0joAHQ+aPSBzrv4O2d/QSbsMw+ZeSRx03kV34Hy7NzUvV/7NqfYGRLrASmw==}
+ /@shikijs/themes@3.2.2:
+ resolution: {integrity: sha512-Zuq4lgAxVKkb0FFdhHSdDkALuRpsj1so1JdihjKNQfgM78EHxV2JhO10qPsMrm01FkE3mDRTdF68wfmsqjt6HA==}
dependencies:
- '@shikijs/vscode-textmate': 10.0.2
- '@types/hast': 3.0.4
+ '@shikijs/types': 3.2.2
dev: false
/@shikijs/types@3.2.1:
@@ -2063,6 +2054,13 @@ packages:
'@shikijs/vscode-textmate': 10.0.2
'@types/hast': 3.0.4
+ /@shikijs/types@3.2.2:
+ resolution: {integrity: sha512-a5TiHk7EH5Lso8sHcLHbVNNhWKP0Wi3yVnXnu73g86n3WoDgEra7n3KszyeCGuyoagspQ2fzvy4cpSc8pKhb0A==}
+ dependencies:
+ '@shikijs/vscode-textmate': 10.0.2
+ '@types/hast': 3.0.4
+ dev: false
+
/@shikijs/vscode-textmate@10.0.2:
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
@@ -2494,13 +2492,13 @@ packages:
hasBin: true
dev: false
- /astro-expressive-code@0.40.2(astro@5.6.1):
- resolution: {integrity: sha512-yJMQId0yXSAbW9I6yqvJ3FcjKzJ8zRL7elbJbllkv1ZJPlsI0NI83Pxn1YL1IapEM347EvOOkSW2GL+2+NO61w==}
+ /astro-expressive-code@0.41.1(astro@5.6.1):
+ resolution: {integrity: sha512-za6HlekMOczwlkuYuQQTd6LkKFwsnfAjwjIprCzOqsjp9vkYrAcriXM5cIG7V1Zxx88sVXF6iGnyNl4J0DL2Mg==}
peerDependencies:
astro: ^4.0.0-beta || ^5.0.0-beta || ^3.3.0
dependencies:
astro: 5.6.1(@types/node@18.16.19)(typescript@5.6.3)
- rehype-expressive-code: 0.40.2
+ rehype-expressive-code: 0.41.1
dev: false
/astro@5.6.1(@types/node@18.16.19)(typescript@5.6.3):
@@ -3353,13 +3351,13 @@ packages:
engines: {node: '>=12.0.0'}
dev: true
- /expressive-code@0.40.2:
- resolution: {integrity: sha512-1zIda2rB0qiDZACawzw2rbdBQiWHBT56uBctS+ezFe5XMAaFaHLnnSYND/Kd+dVzO9HfCXRDpzH3d+3fvOWRcw==}
+ /expressive-code@0.41.1:
+ resolution: {integrity: sha512-O3+bDWGw+y7b0L3Y3xc7LbPgRTvFy2tqXzYY24TBbDwnHbIwb0OFdS4v+1PpX6NEsF7XsVv9sqY5xo22yWe7Hw==}
dependencies:
- '@expressive-code/core': 0.40.2
- '@expressive-code/plugin-frames': 0.40.2
- '@expressive-code/plugin-shiki': 0.40.2
- '@expressive-code/plugin-text-markers': 0.40.2
+ '@expressive-code/core': 0.41.1
+ '@expressive-code/plugin-frames': 0.41.1
+ '@expressive-code/plugin-shiki': 0.41.1
+ '@expressive-code/plugin-text-markers': 0.41.1
dev: false
/extend@3.0.2:
@@ -4960,14 +4958,6 @@ packages:
/oniguruma-parser@0.5.4:
resolution: {integrity: sha512-yNxcQ8sKvURiTwP0mV6bLQCYE7NKfKRRWunhbZnXgxSmB1OXa1lHrN3o4DZd+0Si0kU5blidK7BcROO8qv5TZA==}
- /oniguruma-to-es@2.3.0:
- resolution: {integrity: sha512-bwALDxriqfKGfUufKGGepCzu9x7nJQuoRoAFp4AnwehhC2crqrDIAP/uN2qdlsAvSMpeRC3+Yzhqc7hLmle5+g==}
- dependencies:
- emoji-regex-xs: 1.0.0
- regex: 5.1.1
- regex-recursion: 5.1.1
- dev: false
-
/oniguruma-to-es@4.1.0:
resolution: {integrity: sha512-SNwG909cSLo4vPyyPbU/VJkEc9WOXqu2ycBlfd1UCXLqk1IijcQktSBb2yRQ2UFPsDhpkaf+C1dtT3PkLK/yWA==}
dependencies:
@@ -5438,13 +5428,6 @@ packages:
/regenerator-runtime@0.14.1:
resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}
- /regex-recursion@5.1.1:
- resolution: {integrity: sha512-ae7SBCbzVNrIjgSbh7wMznPcQel1DNlDtzensnFxpiNpXt1U2ju/bHugH422r+4LAVS1FpW1YCwilmnNsjum9w==}
- dependencies:
- regex: 5.1.1
- regex-utilities: 2.3.0
- dev: false
-
/regex-recursion@6.0.2:
resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==}
dependencies:
@@ -5453,21 +5436,15 @@ packages:
/regex-utilities@2.3.0:
resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==}
- /regex@5.1.1:
- resolution: {integrity: sha512-dN5I359AVGPnwzJm2jN1k0W9LPZ+ePvoOeVMMfqIMFz53sSwXkxaJoxr50ptnsC771lK95BnTrVSZxq0b9yCGw==}
- dependencies:
- regex-utilities: 2.3.0
- dev: false
-
/regex@6.0.1:
resolution: {integrity: sha512-uorlqlzAKjKQZ5P+kTJr3eeJGSVroLKoHmquUj4zHWuR+hEyNqlXsSKlYYF5F4NI6nl7tWCs0apKJ0lmfsXAPA==}
dependencies:
regex-utilities: 2.3.0
- /rehype-expressive-code@0.40.2:
- resolution: {integrity: sha512-+kn+AMGCrGzvtH8Q5lC6Y5lnmTV/r33fdmi5QU/IH1KPHKobKr5UnLwJuqHv5jBTSN/0v2wLDS7RTM73FVzqmQ==}
+ /rehype-expressive-code@0.41.1:
+ resolution: {integrity: sha512-QApC3js5/AwrF6VqWfGsNY9Y1qLC0LQDWcqOHEAhbl3CB4e5GMor2SpWaGOWBW+mmrkVCEymayLPCPIbx0tcQQ==}
dependencies:
- expressive-code: 0.40.2
+ expressive-code: 0.41.1
dev: false
/rehype-format@5.0.0:
@@ -5838,19 +5815,6 @@ packages:
engines: {node: '>=8'}
dev: true
- /shiki@1.29.2:
- resolution: {integrity: sha512-njXuliz/cP+67jU2hukkxCNuH1yUi4QfdZZY+sMr5PPrIyXSu5iTb/qYC4BiWWB0vZ+7TbdvYUCeL23zpwCfbg==}
- dependencies:
- '@shikijs/core': 1.29.2
- '@shikijs/engine-javascript': 1.29.2
- '@shikijs/engine-oniguruma': 1.29.2
- '@shikijs/langs': 1.29.2
- '@shikijs/themes': 1.29.2
- '@shikijs/types': 1.29.2
- '@shikijs/vscode-textmate': 10.0.2
- '@types/hast': 3.0.4
- dev: false
-
/shiki@3.2.1:
resolution: {integrity: sha512-VML/2o1/KGYkEf/stJJ+s9Ypn7jUKQPomGLGYso4JJFMFxVDyPNsjsI3MB3KLjlMOeH44gyaPdXC6rik2WXvUQ==}
dependencies:
@@ -5863,6 +5827,19 @@ packages:
'@shikijs/vscode-textmate': 10.0.2
'@types/hast': 3.0.4
+ /shiki@3.2.2:
+ resolution: {integrity: sha512-0qWBkM2t/0NXPRcVgtLhtHv6Ak3Q5yI4K/ggMqcgLRKm4+pCs3namgZlhlat/7u2CuqNtlShNs9lENOG6n7UaQ==}
+ dependencies:
+ '@shikijs/core': 3.2.2
+ '@shikijs/engine-javascript': 3.2.2
+ '@shikijs/engine-oniguruma': 3.2.2
+ '@shikijs/langs': 3.2.2
+ '@shikijs/themes': 3.2.2
+ '@shikijs/types': 3.2.2
+ '@shikijs/vscode-textmate': 10.0.2
+ '@types/hast': 3.0.4
+ dev: false
+
/siginfo@2.0.0:
resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
dev: true