@astrojs/markdown-remark 3.2.0 → 3.2.1
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/remark-shiki.js +1 -1
- package/package.json +5 -2
package/dist/remark-shiki.js
CHANGED
|
@@ -49,7 +49,7 @@ function remarkShiki({
|
|
|
49
49
|
lang = "plaintext";
|
|
50
50
|
}
|
|
51
51
|
let html = highlighter.codeToHtml(node.value, { lang });
|
|
52
|
-
html = html.replace(/<pre class="(.*?)shiki(.*?)"/, `<pre
|
|
52
|
+
html = html.replace(/<pre class="(.*?)shiki(.*?)"/, `<pre class="$1astro-code$2"`);
|
|
53
53
|
if (node.lang === "diff") {
|
|
54
54
|
html = html.replace(
|
|
55
55
|
/<span class="line"><span style="(.*?)">([\+|\-])/g,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/markdown-remark",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"astro": "^3.
|
|
23
|
+
"astro": "^3.2.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@astrojs/prism": "^3.0.0",
|
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
"mocha": "^10.2.0",
|
|
51
51
|
"astro-scripts": "0.0.14"
|
|
52
52
|
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"provenance": true
|
|
55
|
+
},
|
|
53
56
|
"scripts": {
|
|
54
57
|
"prepublish": "pnpm build",
|
|
55
58
|
"build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json",
|