@nuxtjs/mdc 0.17.1 → 0.17.2
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/module.json
CHANGED
|
@@ -13,6 +13,7 @@ const rxModel = /^v-model/;
|
|
|
13
13
|
const nativeInputs = ["select", "textarea", "input"];
|
|
14
14
|
const specialParentTags = ["math", "svg"];
|
|
15
15
|
const proseComponentMap = Object.fromEntries(["p", "a", "blockquote", "code", "pre", "code", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "ul", "ol", "li", "strong", "table", "thead", "tbody", "td", "th", "tr", "script"].map((t) => [t, `prose-${t}`]));
|
|
16
|
+
const dangerousTags = ["script", "base"];
|
|
16
17
|
export default defineComponent({
|
|
17
18
|
name: "MDCRenderer",
|
|
18
19
|
props: {
|
|
@@ -138,11 +139,11 @@ function _renderNode(node, h2, options, keyInParent) {
|
|
|
138
139
|
return renderBinding(node, h2, documentMeta, parentScope);
|
|
139
140
|
}
|
|
140
141
|
const _resolveComponent = isUnresolvableTag(renderTag) ? (component2) => component2 : resolveComponent;
|
|
141
|
-
if (renderTag
|
|
142
|
+
if (dangerousTags.includes(renderTag)) {
|
|
142
143
|
return h2(
|
|
143
144
|
"pre",
|
|
144
|
-
{ class: "
|
|
145
|
-
"<
|
|
145
|
+
{ class: "mdc-renderer-dangerous-tag" },
|
|
146
|
+
"<" + renderTag + ">" + nodeTextContent(node) + "</" + renderTag + ">"
|
|
146
147
|
);
|
|
147
148
|
}
|
|
148
149
|
const component = _resolveComponent(renderTag);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/mdc",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "Nuxt MDC module",
|
|
5
5
|
"repository": "nuxt-modules/mdc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/mdast": "^4.0.4",
|
|
77
77
|
"@vue/compiler-core": "^3.5.17",
|
|
78
78
|
"consola": "^3.4.2",
|
|
79
|
-
"debug": "4.4.1",
|
|
79
|
+
"debug": "^4.4.1",
|
|
80
80
|
"defu": "^6.1.4",
|
|
81
81
|
"destr": "^2.0.5",
|
|
82
82
|
"detab": "^3.0.2",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"hast-util-to-string": "^3.0.1",
|
|
87
87
|
"mdast-util-to-hast": "^13.2.0",
|
|
88
88
|
"micromark-util-sanitize-uri": "^2.0.1",
|
|
89
|
-
"parse5": "^
|
|
89
|
+
"parse5": "^8.0.0",
|
|
90
90
|
"pathe": "^2.0.3",
|
|
91
91
|
"property-information": "^7.1.0",
|
|
92
92
|
"rehype-external-links": "^3.0.0",
|