|
|
@ -1,4 +1,4 @@ |
|
|
|
/*! markdown-it 9.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 9.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 }
|
|
|
|
//
|
|
|
|
'use strict'; |
|
|
@ -369,6 +369,31 @@ function normalizeReference(str) { |
|
|
|
// .toLowerCase().toUpperCase() should get rid of all differences
|
|
|
|
// between letter variants.
|
|
|
|
//
|
|
|
|
// Simple .toLowerCase() doesn't normalize 125 code points correctly,
|
|
|
|
// and .toUpperCase doesn't normalize 6 of them (list of exceptions:
|
|
|
|
// İ, ϴ, ẞ, Ω, K, Å - those are already uppercased, but have differently
|
|
|
|
// uppercased versions).
|
|
|
|
//
|
|
|
|
// Here's an example showing how it happens. Lets take greek letter omega:
|
|
|
|
// uppercase U+0398 (Θ), U+03f4 (ϴ) and lowercase U+03b8 (θ), U+03d1 (ϑ)
|
|
|
|
//
|
|
|
|
// Unicode entries:
|
|
|
|
// 0398;GREEK CAPITAL LETTER THETA;Lu;0;L;;;;;N;;;;03B8;
|
|
|
|
// 03B8;GREEK SMALL LETTER THETA;Ll;0;L;;;;;N;;;0398;;0398
|
|
|
|
// 03D1;GREEK THETA SYMBOL;Ll;0;L;<compat> 03B8;;;;N;GREEK SMALL LETTER SCRIPT THETA;;0398;;0398
|
|
|
|
// 03F4;GREEK CAPITAL THETA SYMBOL;Lu;0;L;<compat> 0398;;;;N;;;;03B8;
|
|
|
|
//
|
|
|
|
// Case-insensitive comparison should treat all of them as equivalent.
|
|
|
|
//
|
|
|
|
// But .toLowerCase() doesn't change ϑ (it's already lowercase),
|
|
|
|
// and .toUpperCase() doesn't change ϴ (already uppercase).
|
|
|
|
//
|
|
|
|
// Applying first lower then upper case normalizes any character:
|
|
|
|
// '\u0398\u03f4\u03b8\u03d1'.toLowerCase().toUpperCase() === '\u0398\u0398\u0398\u0398'
|
|
|
|
//
|
|
|
|
// Note: this is equivalent to unicode case folding; unicode normalization
|
|
|
|
// is a different step that is not required here.
|
|
|
|
//
|
|
|
|
// Final result should be uppercased, because it's later stored in an object
|
|
|
|
// (this avoid a conflict with Object.prototype members,
|
|
|
|
// most notably, `__proto__`)
|
|
|
@ -3842,9 +3867,9 @@ StateBlock.prototype.push = function (type, tag, nesting) { |
|
|
|
var token = new Token(type, tag, nesting); |
|
|
|
token.block = true; |
|
|
|
|
|
|
|
if (nesting < 0) { this.level--; } |
|
|
|
if (nesting < 0) this.level--; // closing tag
|
|
|
|
token.level = this.level; |
|
|
|
if (nesting > 0) { this.level++; } |
|
|
|
if (nesting > 0) this.level++; // opening tag
|
|
|
|
|
|
|
|
this.tokens.push(token); |
|
|
|
return token; |
|
|
@ -5538,9 +5563,9 @@ StateInline.prototype.push = function (type, tag, nesting) { |
|
|
|
|
|
|
|
var token = new Token(type, tag, nesting); |
|
|
|
|
|
|
|
if (nesting < 0) { this.level--; } |
|
|
|
if (nesting < 0) this.level--; // closing tag
|
|
|
|
token.level = this.level; |
|
|
|
if (nesting > 0) { this.level++; } |
|
|
|
if (nesting > 0) this.level++; // opening tag
|
|
|
|
|
|
|
|
this.pendingLevel = this.level; |
|
|
|
this.tokens.push(token); |
|
|
@ -5828,7 +5853,13 @@ module.exports = function text(state, silent) { |
|
|
|
};*/ |
|
|
|
|
|
|
|
},{}],50:[function(require,module,exports){ |
|
|
|
// Merge adjacent text nodes into one, and re-calculate all token levels
|
|
|
|
// Clean up tokens after emphasis and strikethrough postprocessing:
|
|
|
|
// merge adjacent text nodes into one and re-calculate all token levels
|
|
|
|
//
|
|
|
|
// This is necessary because initially emphasis delimiter markers (*, _, ~)
|
|
|
|
// are treated as their own separate text tokens. Then emphasis rule either
|
|
|
|
// leaves them as text (needed to merge with adjacent text) or turns them
|
|
|
|
// into opening/closing tags (which messes up levels inside).
|
|
|
|
//
|
|
|
|
'use strict'; |
|
|
|
|
|
|
@ -5840,9 +5871,11 @@ module.exports = function text_collapse(state) { |
|
|
|
max = state.tokens.length; |
|
|
|
|
|
|
|
for (curr = last = 0; curr < max; curr++) { |
|
|
|
// re-calculate levels
|
|
|
|
level += tokens[curr].nesting; |
|
|
|
// re-calculate levels after emphasis/strikethrough turns some text nodes
|
|
|
|
// into opening/closing tags
|
|
|
|
if (tokens[curr].nesting < 0) level--; // closing tag
|
|
|
|
tokens[curr].level = level; |
|
|
|
if (tokens[curr].nesting > 0) level++; // opening tag
|
|
|
|
|
|
|
|
if (tokens[curr].type === 'text' && |
|
|
|
curr + 1 < max && |
|
|
@ -6760,7 +6793,9 @@ module.exports = function (opts) { |
|
|
|
'\\"(?:(?!' + re.src_ZCc + '|["]).)+\\"|' + |
|
|
|
"\\'(?:(?!" + re.src_ZCc + "|[']).)+\\'|" + |
|
|
|
"\\'(?=" + re.src_pseudo_letter + '|[-]).|' + // allow `I'm_king` if no pair found
|
|
|
|
'\\.{2,3}[a-zA-Z0-9%/]|' + // github has ... in commit range links. Restrict to
|
|
|
|
'\\.{2,4}[a-zA-Z0-9%/]|' + // github has ... in commit range links,
|
|
|
|
// google has .... in links (issue #66)
|
|
|
|
// Restrict to
|
|
|
|
// - english
|
|
|
|
// - percent-encoded
|
|
|
|
// - parts of file path
|
|
|
@ -6778,9 +6813,11 @@ module.exports = function (opts) { |
|
|
|
'|\\/' + |
|
|
|
')?'; |
|
|
|
|
|
|
|
// Allow anything in markdown spec, forbid quote (") at the first position
|
|
|
|
// because emails enclosed in quotes are far more common
|
|
|
|
re.src_email_name = |
|
|
|
|
|
|
|
'[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+'; |
|
|
|
'[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*'; |
|
|
|
|
|
|
|
re.src_xn = |
|
|
|
|
|
|
@ -6860,7 +6897,8 @@ module.exports = function (opts) { |
|
|
|
|
|
|
|
re.tpl_email_fuzzy = |
|
|
|
|
|
|
|
'(^|' + text_separators + '|\\(|' + re.src_ZCc + ')(' + re.src_email_name + '@' + re.tpl_host_fuzzy_strict + ')'; |
|
|
|
'(^|' + text_separators + '|"|\\(|' + re.src_ZCc + ')' + |
|
|
|
'(' + re.src_email_name + '@' + re.tpl_host_fuzzy_strict + ')'; |
|
|
|
|
|
|
|
re.tpl_link_fuzzy = |
|
|
|
// Fuzzy link can't be prepended with .:/\- and non punctuation.
|
|
|
|