datocms-html-to-structured-text
Advanced tools
Comparing version 1.3.0 to 2.0.0
@@ -118,3 +118,3 @@ "use strict"; | ||
? options.allowedMarks | ||
: datocms_structured_text_utils_1.allowedMarks, | ||
: datocms_structured_text_utils_1.defaultMarks, | ||
global: __assign({ baseUrl: null, baseUrlFound: false }, (options.shared || {})), | ||
@@ -121,0 +121,0 @@ })]; |
@@ -57,3 +57,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
import documentToHast from 'hast-util-from-dom'; | ||
import { allowedMarks, } from 'datocms-structured-text-utils'; | ||
import { defaultMarks, } from 'datocms-structured-text-utils'; | ||
export function htmlToStructuredText(html, options) { | ||
@@ -109,3 +109,3 @@ if (options === void 0) { options = {}; } | ||
? options.allowedMarks | ||
: allowedMarks, | ||
: defaultMarks, | ||
global: __assign({ baseUrl: null, baseUrlFound: false }, (options.shared || {})), | ||
@@ -112,0 +112,0 @@ })]; |
{ | ||
"name": "datocms-html-to-structured-text", | ||
"version": "1.3.0", | ||
"version": "2.0.0", | ||
"description": "Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"dependencies": { | ||
"datocms-structured-text-utils": "^1.2.0", | ||
"datocms-structured-text-utils": "^2.0.0", | ||
"extend": "^3.0.2", | ||
@@ -52,3 +52,3 @@ "hast-util-from-dom": "^3.0.0", | ||
}, | ||
"gitHead": "c12c0a8f63562fc2bd11aa79cd51eb7f31eabbd4" | ||
"gitHead": "61ddea692c97736a0b0ceaec80f40ea8f4aa1a0d" | ||
} |
+ Addeddatocms-structured-text-utils@2.1.12(transitive)
- Removeddatocms-structured-text-utils@1.2.0(transitive)