@nuxtjs/mdc 0.20.0 → 0.20.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtjs/mdc",
3
3
  "configKey": "mdc",
4
- "version": "0.20.0",
4
+ "version": "0.20.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -144,7 +144,7 @@ function _renderNode(node, h2, options, keyInParent) {
144
144
  return renderBinding(node, h2, documentMeta, parentScope);
145
145
  }
146
146
  const _resolveComponent = isUnresolvableTag(renderTag) ? (component2) => component2 : resolveComponent;
147
- if (dangerousTags.includes(renderTag)) {
147
+ if (dangerousTags.includes(pascalCase(renderTag).toLowerCase())) {
148
148
  return h2(
149
149
  "pre",
150
150
  { class: "mdc-renderer-dangerous-tag" },
@@ -50,6 +50,9 @@ export const validateProps = (type, props) => {
50
50
  }
51
51
  props = Object.fromEntries(
52
52
  Object.entries(props).filter(([name, value]) => {
53
+ if (props?.[`:${name}`]) {
54
+ return false;
55
+ }
53
56
  const isValid = validateProp(name, value);
54
57
  if (!isValid) {
55
58
  console.warn(`[@nuxtjs/mdc] removing unsafe attribute: ${name}="${value}"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/mdc",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Nuxt MDC module",
5
5
  "repository": "nuxt-content/mdc",
6
6
  "license": "MIT",