mdast-util-to-hast
Advanced tools
Comparing version 12.2.2 to 12.2.3
@@ -7,3 +7,3 @@ /** | ||
import normalize from 'mdurl/encode.js' | ||
import {sanitizeUri} from 'micromark-util-sanitize-uri' | ||
import {revert} from '../revert.js' | ||
@@ -23,3 +23,3 @@ | ||
/** @type {Properties} */ | ||
const props = {src: normalize(def.url || ''), alt: node.alt} | ||
const props = {src: sanitizeUri(def.url || ''), alt: node.alt} | ||
@@ -26,0 +26,0 @@ if (def.title !== null && def.title !== undefined) { |
@@ -7,3 +7,3 @@ /** | ||
import normalize from 'mdurl/encode.js' | ||
import {sanitizeUri} from 'micromark-util-sanitize-uri' | ||
@@ -16,3 +16,3 @@ /** | ||
/** @type {Properties} */ | ||
const props = {src: normalize(node.url), alt: node.alt} | ||
const props = {src: sanitizeUri(node.url), alt: node.alt} | ||
@@ -19,0 +19,0 @@ if (node.title !== null && node.title !== undefined) { |
@@ -7,3 +7,3 @@ /** | ||
import normalize from 'mdurl/encode.js' | ||
import {sanitizeUri} from 'micromark-util-sanitize-uri' | ||
import {revert} from '../revert.js' | ||
@@ -24,3 +24,3 @@ import {all} from '../traverse.js' | ||
/** @type {Properties} */ | ||
const props = {href: normalize(def.url || '')} | ||
const props = {href: sanitizeUri(def.url || '')} | ||
@@ -27,0 +27,0 @@ if (def.title !== null && def.title !== undefined) { |
@@ -7,3 +7,3 @@ /** | ||
import normalize from 'mdurl/encode.js' | ||
import {sanitizeUri} from 'micromark-util-sanitize-uri' | ||
import {all} from '../traverse.js' | ||
@@ -17,3 +17,3 @@ | ||
/** @type {Properties} */ | ||
const props = {href: normalize(node.url)} | ||
const props = {href: sanitizeUri(node.url)} | ||
@@ -20,0 +20,0 @@ if (node.title !== null && node.title !== undefined) { |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "12.2.2", | ||
"version": "12.2.3", | ||
"description": "mdast utility to transform to hast", | ||
@@ -40,5 +40,3 @@ "license": "MIT", | ||
"@types/mdast": "^3.0.0", | ||
"@types/mdurl": "^1.0.0", | ||
"mdast-util-definitions": "^5.0.0", | ||
"mdurl": "^1.0.0", | ||
"micromark-util-sanitize-uri": "^1.0.0", | ||
@@ -45,0 +43,0 @@ "trim-lines": "^3.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85688
9
- Removed@types/mdurl@^1.0.0
- Removedmdurl@^1.0.0
- Removed@types/mdurl@1.0.5(transitive)
- Removedmdurl@1.0.1(transitive)