markmap-lib 0.17.3-alpha.1 → 0.17.3-alpha.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.
@@ -14090,6 +14090,16 @@
14090
14090
  skippingHeading = 0;
14091
14091
  const isHeading = level <= 6;
14092
14092
  let data2 = $child.data();
14093
+ let html22 = result.html || "";
14094
+ if ($child.is("ol>li") && (node == null ? void 0 : node.children)) {
14095
+ const start = +($child.parent().attr("start") || 1);
14096
+ const listIndex = start + node.children.length;
14097
+ html22 = `${listIndex}. ${html22}`;
14098
+ data2 = {
14099
+ ...data2,
14100
+ listIndex
14101
+ };
14102
+ }
14093
14103
  if ($child.children("code:only-child").length) {
14094
14104
  data2 = {
14095
14105
  ...data2,
@@ -14101,7 +14111,7 @@
14101
14111
  nesting: !!result.queue || isHeading,
14102
14112
  tagName: child.tagName,
14103
14113
  level,
14104
- html: result.html || "",
14114
+ html: html22,
14105
14115
  comments: result.comments,
14106
14116
  data: data2
14107
14117
  });
@@ -25686,7 +25696,7 @@ ${end2.comment}` : end2.comment;
25686
25696
  }
25687
25697
  }
25688
25698
  const transformerVersions = {
25689
- "markmap-lib": "0.17.3-alpha.1"
25699
+ "markmap-lib": "0.17.3-alpha.2"
25690
25700
  };
25691
25701
  exports.Transformer = Transformer;
25692
25702
  exports.builtInPlugins = builtInPlugins;
@@ -608,7 +608,7 @@ class Transformer {
608
608
  }
609
609
  }
610
610
  const transformerVersions = {
611
- "markmap-lib": "0.17.3-alpha.1"
611
+ "markmap-lib": "0.17.3-alpha.2"
612
612
  };
613
613
  export {
614
614
  Transformer,
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ class Transformer {
115
115
  }
116
116
  }
117
117
  const transformerVersions = {
118
- "markmap-lib": "0.17.3-alpha.1"
118
+ "markmap-lib": "0.17.3-alpha.2"
119
119
  };
120
120
  exports.Transformer = Transformer;
121
121
  exports.builtInPlugins = builtInPlugins;
package/dist/index.mjs CHANGED
@@ -113,7 +113,7 @@ class Transformer {
113
113
  }
114
114
  }
115
115
  const transformerVersions = {
116
- "markmap-lib": "0.17.3-alpha.1"
116
+ "markmap-lib": "0.17.3-alpha.2"
117
117
  };
118
118
  export {
119
119
  Transformer,
@@ -123,7 +123,7 @@ class Transformer {
123
123
  }
124
124
  }
125
125
  const transformerVersions = {
126
- "markmap-lib": "0.17.3-alpha.1"
126
+ "markmap-lib": "0.17.3-alpha.2"
127
127
  };
128
128
  exports.Transformer = Transformer;
129
129
  exports.builtInPlugins = builtInPlugins;
@@ -121,7 +121,7 @@ class Transformer {
121
121
  }
122
122
  }
123
123
  const transformerVersions = {
124
- "markmap-lib": "0.17.3-alpha.1"
124
+ "markmap-lib": "0.17.3-alpha.2"
125
125
  };
126
126
  export {
127
127
  Transformer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-lib",
3
- "version": "0.17.3-alpha.1+4942a37",
3
+ "version": "0.17.3-alpha.2+9f2920f",
4
4
  "description": "Visualize your Markdown as mindmaps with Markmap",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -74,8 +74,8 @@
74
74
  "markdown-it-mark": "^4.0.0",
75
75
  "markdown-it-sub": "^2.0.0",
76
76
  "markdown-it-sup": "^2.0.0",
77
- "markmap-html-parser": "0.17.3-alpha.1+4942a37",
78
- "markmap-view": "0.17.3-alpha.1+4942a37",
77
+ "markmap-html-parser": "0.17.3-alpha.2+9f2920f",
78
+ "markmap-view": "0.17.2",
79
79
  "prismjs": "^1.29.0",
80
80
  "yaml": "^2.5.1"
81
81
  },
@@ -96,5 +96,5 @@
96
96
  "^(.*\\.svg)\\?raw$": "$1"
97
97
  }
98
98
  },
99
- "gitHead": "4942a3759db08bbbc179034c0b08c5c2112566dc"
99
+ "gitHead": "9f2920fcb10e39ca7bf714c8768539bf60357752"
100
100
  }