@astrojs/markdoc 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/extensions/shiki.js
CHANGED
|
@@ -7,9 +7,9 @@ async function shiki(config) {
|
|
|
7
7
|
nodes: {
|
|
8
8
|
fence: {
|
|
9
9
|
attributes: Markdoc.nodes.fence.attributes,
|
|
10
|
-
transform({ attributes }) {
|
|
10
|
+
async transform({ attributes }) {
|
|
11
11
|
const lang = typeof attributes.language === "string" ? attributes.language : "plaintext";
|
|
12
|
-
const html = highlighter.highlight(attributes.content, lang);
|
|
12
|
+
const html = await highlighter.highlight(attributes.content, lang);
|
|
13
13
|
return unescapeHTML(html);
|
|
14
14
|
}
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/markdoc",
|
|
3
3
|
"description": "Add support for Markdoc in your Astro site",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"kleur": "^4.1.5",
|
|
65
65
|
"zod": "^3.22.4",
|
|
66
66
|
"@astrojs/internal-helpers": "0.4.0",
|
|
67
|
+
"@astrojs/markdown-remark": "5.0.0",
|
|
67
68
|
"@astrojs/prism": "3.0.0"
|
|
68
69
|
},
|
|
69
70
|
"peerDependencies": {
|
|
@@ -75,8 +76,7 @@
|
|
|
75
76
|
"devalue": "^4.3.2",
|
|
76
77
|
"linkedom": "^0.16.4",
|
|
77
78
|
"vite": "^5.1.4",
|
|
78
|
-
"
|
|
79
|
-
"astro": "4.5.12",
|
|
79
|
+
"astro": "4.5.13",
|
|
80
80
|
"astro-scripts": "0.0.14"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|