do11y 0.2.9 → 0.2.10
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.
|
@@ -22,10 +22,12 @@ export const highlightCode = (code, lang) => {
|
|
|
22
22
|
{
|
|
23
23
|
name: "do11y",
|
|
24
24
|
postprocess(html) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
if (do11yOptions.highlighter.postprocess) {
|
|
26
|
+
const jsdom = new JSDOM(html);
|
|
27
|
+
const preTag = jsdom.window.document.querySelector("pre");
|
|
28
|
+
do11yOptions.highlighter.postprocess(preTag);
|
|
29
|
+
return preTag.parentElement.innerHTML;
|
|
30
|
+
}
|
|
29
31
|
},
|
|
30
32
|
},
|
|
31
33
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "do11y",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "A bare-bones tool to document Vue components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs-generator",
|
|
@@ -29,16 +29,12 @@
|
|
|
29
29
|
"@mdit-vue/plugin-component": "^3.0.2",
|
|
30
30
|
"@mdit-vue/plugin-frontmatter": "^3.0.2",
|
|
31
31
|
"@mdit-vue/plugin-sfc": "^3.0.2",
|
|
32
|
-
"@shikijs/engine-oniguruma": "^3.22.0",
|
|
33
|
-
"@shikijs/langs": "^3.22.0",
|
|
34
|
-
"@shikijs/themes": "^3.22.0",
|
|
35
32
|
"@shikijs/transformers": "^3.22.0",
|
|
36
33
|
"@types/markdown-it": "^14.1.2",
|
|
37
34
|
"front-matter": "^4.0.2",
|
|
38
35
|
"jsdom": "^28.1.0",
|
|
39
36
|
"markdown-it": "^14.1.1",
|
|
40
37
|
"markdown-it-attrs": "^4.3.1",
|
|
41
|
-
"sass": "^1.97.3",
|
|
42
38
|
"shiki": "^3.22.0",
|
|
43
39
|
"tinyglobby": "^0.2.15",
|
|
44
40
|
"v-custom-block": "^1.0.67",
|