Skip to content

Commit

Permalink
dist rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Dec 20, 2020
1 parent c9949dd commit 6f41c70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions dist/markdown-it.js
@@ -1,4 +1,4 @@
/*! markdown-it 12.0.3 https://github.com/markdown-it/markdown-it @license MIT */
/*! markdown-it 12.0.4 https://github.com/markdown-it/markdown-it @license MIT */
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self,
global.markdownit = factory());
Expand Down Expand Up @@ -3106,14 +3106,15 @@
return highlighted + "\n";
}
// If language exists, inject class gently, without modifying original token.
// May be, one day we will add .clone() for token and simplify this part, but
// May be, one day we will add .deepClone() for token and simplify this part, but
// now we prefer to keep things local.
if (info) {
i = token.attrIndex("class");
tmpAttrs = token.attrs ? token.attrs.slice() : [];
if (i < 0) {
tmpAttrs.push([ "class", options.langPrefix + langName ]);
} else {
tmpAttrs[i] = tmpAttrs[i].slice();
tmpAttrs[i][1] += " " + options.langPrefix + langName;
}
// Fake token just to render attributes
Expand Down Expand Up @@ -5883,7 +5884,8 @@
marker: marker,
length: 0,
// disable "rule of 3" length checks meant for emphasis
jump: i,
jump: i / 2,
// for `~~` 1 marker = 2 characters
token: state.tokens.length - 1,
end: -1,
open: scanned.can_open,
Expand Down Expand Up @@ -6439,6 +6441,8 @@
}
minOpenerIdx = openersBottom[closer.marker][closer.length % 3];
openerIdx = closerIdx - closer.jump - 1;
// avoid crash if `closer.jump` is pointing outside of the array, see #742
if (openerIdx < -1) openerIdx = -1;
newMinOpenerIdx = openerIdx;
for (;openerIdx > minOpenerIdx; openerIdx -= opener.jump + 1) {
opener = delimiters[openerIdx];
Expand Down
4 changes: 2 additions & 2 deletions dist/markdown-it.min.js

Large diffs are not rendered by default.

0 comments on commit 6f41c70

Please sign in to comment.