markmap-html-parser
Advanced tools
Comparing version 0.17.3-alpha.1 to 0.17.3-alpha.2
@@ -165,2 +165,12 @@ "use strict"; | ||
let data = $child.data(); | ||
let html2 = result.html || ""; | ||
if ($child.is("ol>li") && (node == null ? void 0 : node.children)) { | ||
const start = +($child.parent().attr("start") || 1); | ||
const listIndex = start + node.children.length; | ||
html2 = `${listIndex}. ${html2}`; | ||
data = { | ||
...data, | ||
listIndex | ||
}; | ||
} | ||
if ($child.children("code:only-child").length) { | ||
@@ -177,3 +187,3 @@ data = { | ||
level, | ||
html: result.html || "", | ||
html: html2, | ||
comments: result.comments, | ||
@@ -180,0 +190,0 @@ data |
{ | ||
"name": "markmap-html-parser", | ||
"version": "0.17.3-alpha.1+4942a37", | ||
"version": "0.17.3-alpha.2+9f2920f", | ||
"description": "Parse HTML into markmap data structure", | ||
@@ -65,3 +65,3 @@ "author": "Gerald <gera2ld@live.com>", | ||
}, | ||
"gitHead": "4942a3759db08bbbc179034c0b08c5c2112566dc" | ||
"gitHead": "9f2920fcb10e39ca7bf714c8768539bf60357752" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
505783
14433