Skip to content

Commit 7ad5b05

Browse files
committed
chore: build for 12.0.15
1 parent 89a7f79 commit 7ad5b05

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

dist/markdown-it.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! @hackmd/markdown-it 12.0.13 https://github.com/hackmdio/markdown-it @license MIT */
1+
/*! @hackmd/markdown-it 12.0.15 https://github.com/hackmdio/markdown-it @license MIT */
22
(function(global, factory) {
33
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self,
44
global.markdownit = factory());
@@ -5895,7 +5895,6 @@
58955895
}
58965896
if (!silent) {
58975897
state.pending += state.src.slice(state.pos, pos);
5898-
state.posStart.push(state.pos);
58995898
}
59005899
state.pos = pos;
59015900
return true;
@@ -6736,7 +6735,18 @@
67366735
this.pos = 0;
67376736
this.posMax = this.src.length;
67386737
this.level = 0;
6739-
this.pending = "";
6738+
this._pending = "";
6739+
Object.defineProperty(this, "pending", {
6740+
get: function() {
6741+
return this._pending;
6742+
},
6743+
set: function(val) {
6744+
if (this._pending.length === 0) {
6745+
this.posStart.push(this.pos);
6746+
}
6747+
this._pending = val;
6748+
}
6749+
});
67406750
this.pendingLevel = 0;
67416751
// Stores { start: end } pairs. Useful for backtrack
67426752
// optimization of pairs parse (emphasis, strikes).

dist/markdown-it.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hackmd/markdown-it",
3-
"version": "12.0.14",
3+
"version": "12.0.15",
44
"description": "Markdown-it - modern pluggable markdown parser.",
55
"keywords": [
66
"markdown",

0 commit comments

Comments
 (0)