Skip to content

Commit

Permalink
dist rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Jan 8, 2022
1 parent ffc49ab commit aca3396
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions dist/markdown-it.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! markdown-it 12.3.1 https://github.com/markdown-it/markdown-it @license MIT */
/*! markdown-it 12.3.2 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 @@ -5752,7 +5752,7 @@
};
var isSpace$3 = utils.isSpace;
var newline = function newline(state, silent) {
var pmax, max, pos = state.pos;
var pmax, max, ws, pos = state.pos;
if (state.src.charCodeAt(pos) !== 10 /* \n */) {
return false;
}
Expand All @@ -5765,7 +5765,10 @@
if (!silent) {
if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) {
if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
state.pending = state.pending.replace(/ +$/, "");
// Find whitespaces tail of pending chars.
ws = pmax - 1;
while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
state.pending = state.pending.slice(0, ws);
state.push("hardbreak", "br", 0);
} else {
state.pending = state.pending.slice(0, -1);
Expand Down
4 changes: 2 additions & 2 deletions dist/markdown-it.min.js

Large diffs are not rendered by default.

0 comments on commit aca3396

Please sign in to comment.