Browse Source

dist rebuild

pull/713/head
Vitaly Puzrin 4 years ago
parent
commit
f8c402f560
  1. 29
      dist/markdown-it.js
  2. 2
      dist/markdown-it.min.js

29
dist/markdown-it.js

@ -1,4 +1,4 @@
/*! markdown-it 11.0.0 https://github.com//markdown-it/markdown-it @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownit = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ /*! markdown-it 11.0.1 https://github.com//markdown-it/markdown-it @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownit = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
// HTML5 entities map: { name -> utf16string } // HTML5 entities map: { name -> utf16string }
// //
'use strict'; 'use strict';
@ -2477,7 +2477,7 @@ module.exports = function blockquote(state, startLine, endLine, silent) {
terminate, terminate,
terminatorRules, terminatorRules,
token, token,
wasOutdented, isOutdented,
oldLineMax = state.lineMax, oldLineMax = state.lineMax,
pos = state.bMarks[startLine] + state.tShift[startLine], pos = state.bMarks[startLine] + state.tShift[startLine],
max = state.eMarks[startLine]; max = state.eMarks[startLine];
@ -2492,8 +2492,8 @@ module.exports = function blockquote(state, startLine, endLine, silent) {
// so no point trying to find the end of it in silent mode // so no point trying to find the end of it in silent mode
if (silent) { return true; } if (silent) { return true; }
// skip spaces after ">" and re-calculate offset // set offset past spaces and ">"
initial = offset = state.sCount[startLine] + pos - (state.bMarks[startLine] + state.tShift[startLine]); initial = offset = state.sCount[startLine] + 1;
// skip one optional space after '>' // skip one optional space after '>'
if (state.src.charCodeAt(pos) === 0x20 /* space */) { if (state.src.charCodeAt(pos) === 0x20 /* space */) {
@ -2558,7 +2558,6 @@ module.exports = function blockquote(state, startLine, endLine, silent) {
oldParentType = state.parentType; oldParentType = state.parentType;
state.parentType = 'blockquote'; state.parentType = 'blockquote';
wasOutdented = false;
// Search the end of the block // Search the end of the block
// //
@ -2587,7 +2586,7 @@ module.exports = function blockquote(state, startLine, endLine, silent) {
// > current blockquote // > current blockquote
// 2. checking this line // 2. checking this line
// ``` // ```
if (state.sCount[nextLine] < state.blkIndent) wasOutdented = true; isOutdented = state.sCount[nextLine] < state.blkIndent;
pos = state.bMarks[nextLine] + state.tShift[nextLine]; pos = state.bMarks[nextLine] + state.tShift[nextLine];
max = state.eMarks[nextLine]; max = state.eMarks[nextLine];
@ -2597,11 +2596,11 @@ module.exports = function blockquote(state, startLine, endLine, silent) {
break; break;
} }
if (state.src.charCodeAt(pos++) === 0x3E/* > */ && !wasOutdented) { if (state.src.charCodeAt(pos++) === 0x3E/* > */ && !isOutdented) {
// This line is inside the blockquote. // This line is inside the blockquote.
// skip spaces after ">" and re-calculate offset // set offset past spaces and ">"
initial = offset = state.sCount[nextLine] + pos - (state.bMarks[nextLine] + state.tShift[nextLine]); initial = offset = state.sCount[nextLine] + 1;
// skip one optional space after '>' // skip one optional space after '>'
if (state.src.charCodeAt(pos) === 0x20 /* space */) { if (state.src.charCodeAt(pos) === 0x20 /* space */) {
@ -4164,11 +4163,13 @@ module.exports = function table(state, startLine, endLine, silent) {
token = state.push('tr_open', 'tr', 1); token = state.push('tr_open', 'tr', 1);
for (i = 0; i < columnCount; i++) { for (i = 0; i < columnCount; i++) {
token = state.push('td_open', 'td', 1); token = state.push('td_open', 'td', 1);
token.map = [ nextLine, nextLine + 1 ];
if (aligns[i]) { if (aligns[i]) {
token.attrs = [ [ 'style', 'text-align:' + aligns[i] ] ]; token.attrs = [ [ 'style', 'text-align:' + aligns[i] ] ];
} }
token = state.push('inline', '', 0); token = state.push('inline', '', 0);
token.map = [ nextLine, nextLine + 1 ];
token.content = columns[i] ? columns[i].trim() : ''; token.content = columns[i] ? columns[i].trim() : '';
token.children = []; token.children = [];
@ -4547,7 +4548,7 @@ function process_inlines(tokens, state) {
} else { } else {
for (j = i - 1; j >= 0; j--) { for (j = i - 1; j >= 0; j--) {
if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // lastChar defaults to 0x20 if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // lastChar defaults to 0x20
if (tokens[j].type !== 'text') continue; if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'
lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1); lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
break; break;
@ -4564,7 +4565,7 @@ function process_inlines(tokens, state) {
} else { } else {
for (j = i + 1; j < tokens.length; j++) { for (j = i + 1; j < tokens.length; j++) {
if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // nextChar defaults to 0x20 if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // nextChar defaults to 0x20
if (tokens[j].type !== 'text') continue; if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'
nextChar = tokens[j].content.charCodeAt(0); nextChar = tokens[j].content.charCodeAt(0);
break; break;
@ -4869,9 +4870,7 @@ function processDelimiters(state, delimiters) {
if (newMinOpenerIdx === -1) newMinOpenerIdx = openerIdx; if (newMinOpenerIdx === -1) newMinOpenerIdx = openerIdx;
if (opener.open && if (opener.open && opener.end < 0) {
opener.end < 0 &&
opener.level === closer.level) {
isOddMatch = false; isOddMatch = false;
@ -6913,7 +6912,7 @@ module.exports = function (opts) {
'\\-+|' '\\-+|'
) + ) +
'\\,(?!' + re.src_ZCc + ').|' + // allow `,,,` in paths '\\,(?!' + re.src_ZCc + ').|' + // allow `,,,` in paths
'\\!(?!' + re.src_ZCc + ').|' + // allow `!!!` in paths '\\!+(?!' + re.src_ZCc + '|[!]).|' + // allow `!!!` in paths, but not at the end
'\\?(?!' + re.src_ZCc + '|[?]).' + '\\?(?!' + re.src_ZCc + '|[?]).' +
')+' + ')+' +
'|\\/' + '|\\/' +

2
dist/markdown-it.min.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save