datocms-html-to-structured-text
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -215,3 +215,6 @@ "use strict"; | ||
if (Array.isArray(children) && children.length) { | ||
return [2 /*return*/, createNode('list', { children: children, style: 'bulleted' })]; | ||
return [2 /*return*/, createNode('list', { | ||
children: children, | ||
style: node.tagName === 'ol' ? 'numbered' : 'bulleted', | ||
})]; | ||
} | ||
@@ -218,0 +221,0 @@ return [2 /*return*/, undefined]; |
@@ -9,3 +9,3 @@ import { CreateNodeFunction, HastRootNode } from './types'; | ||
handlers: Record<string, CreateNodeFunction>; | ||
preprocess: (hast: HastRootNode) => HastRootNode; | ||
preprocess: (hast: HastRootNode) => void; | ||
allowedBlocks: Array<BlockquoteType | CodeType | HeadingType | LinkType | ListType>; | ||
@@ -12,0 +12,0 @@ allowedMarks: Mark[]; |
{ | ||
"name": "datocms-html-to-structured-text", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Convert HTML (or Hast syntax tree) to a valid DatoCMS Structured Text Dast document", | ||
@@ -42,9 +42,9 @@ "keywords": [ | ||
"rehype-minify-whitespace": "^4.0.5", | ||
"unist-util-is": "^4.0.4" | ||
"unist-util-is": "^4.0.4", | ||
"unist-utils-core": "^1.0.5" | ||
}, | ||
"devDependencies": { | ||
"parse5": "^6.0.1", | ||
"unist-utils-core": "^1.0.5" | ||
"parse5": "^6.0.1" | ||
}, | ||
"gitHead": "6381b05331181aecc82b7f080c6993fc803a7327" | ||
"gitHead": "2c34fbd150cd515645bcac40cdb2ccebb8ae51de" | ||
} |
Sorry, the diff of this file is not supported yet
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
86380
1
23
1133
10
+ Addedunist-utils-core@^1.0.5
+ Addedboolbase@1.0.0(transitive)
+ Addedcss-selector-parser@1.4.1(transitive)
+ Addednot@0.1.0(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedtslib@2.4.1(transitive)
+ Addedunist-util-select@3.0.4(transitive)
+ Addedunist-utils-core@1.1.0(transitive)
+ Addedzwitch@1.0.5(transitive)