Skip to content

Commit 398220a

Browse files
committed
chore: bump version
1 parent 57d38df commit 398220a

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

dist/markdown-it.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! @hackmd/markdown-it 12.0.15 https://github.com/hackmdio/markdown-it @license MIT */
1+
/*! @hackmd/markdown-it 12.0.17 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());
@@ -4590,7 +4590,7 @@
45904590
state.line = nextLine + (haveEndMarker ? 1 : 0);
45914591
token = state.push("fence", "code", 0);
45924592
token.info = params;
4593-
token.content = state.getLines(startLine + 1, nextLine, len, true);
4593+
token.content = state.getLines(startLine + 1, nextLine, len, true, true);
45944594
token.markup = markup;
45954595
token.map = [ startLine, state.line ];
45964596
token.position = originalPos;
@@ -5722,9 +5722,11 @@
57225722
}
57235723
return pos;
57245724
};
5725+
const ZWSP = "\u200b";
5726+
// zero width space
57255727
// cut lines range from source.
5726-
StateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF) {
5727-
var i, lineIndent, ch, first, last, queue, lineStart, line = begin;
5728+
StateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF, replaceIndentSpaceWithZWSP) {
5729+
var i, lineIndent, ch, first, last, queue, lineStart, line = begin, replaceIndentSpaceWithZWSP = replaceIndentSpaceWithZWSP || false;
57285730
if (begin >= end) {
57295731
return "";
57305732
}
@@ -5761,6 +5763,9 @@
57615763
} else {
57625764
queue[i] = this.src.slice(first, last);
57635765
}
5766+
if (replaceIndentSpaceWithZWSP) {
5767+
queue[i] = new Array(lineIndent + 1).join(ZWSP) + queue[i];
5768+
}
57645769
}
57655770
return queue.join("");
57665771
};
@@ -5861,13 +5866,17 @@
58615866
case 36 /* $ */ :
58625867
case 37 /* % */ :
58635868
case 38 /* & */ :
5869+
case 40 /* ( */ :
58645870
case 42 /* * */ :
58655871
case 43 /* + */ :
5872+
case 44 /* , */ :
58665873
case 45 /* - */ :
5874+
case 46 /* . */ :
58675875
case 58 /* : */ :
58685876
case 60 /* < */ :
58695877
case 61 /* = */ :
58705878
case 62 /* > */ :
5879+
case 63 /* ? */ :
58715880
case 64 /* @ */ :
58725881
case 91 /* [ */ :
58735882
case 92 /* \ */ :

dist/markdown-it.min.js

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-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.16",
3+
"version": "12.0.17",
44
"description": "Markdown-it - modern pluggable markdown parser.",
55
"keywords": [
66
"markdown",

0 commit comments

Comments
 (0)