|
@ -42,7 +42,6 @@ function arrayReplaceAt (src, pos, newElements) { |
|
|
return [].concat(src.slice(0, pos), newElements, src.slice(pos + 1)) |
|
|
return [].concat(src.slice(0, pos), newElements, src.slice(pos + 1)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
function isValidEntityCode (c) { |
|
|
function isValidEntityCode (c) { |
|
|
/* eslint no-bitwise:0 */ |
|
|
/* eslint no-bitwise:0 */ |
|
@ -121,7 +120,6 @@ function unescapeAll (str) { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
const HTML_ESCAPE_TEST_RE = /[&<>"]/ |
|
|
const HTML_ESCAPE_TEST_RE = /[&<>"]/ |
|
|
const HTML_ESCAPE_REPLACE_RE = /[&<>"]/g |
|
|
const HTML_ESCAPE_REPLACE_RE = /[&<>"]/g |
|
@ -143,7 +141,6 @@ function escapeHtml (str) { |
|
|
return str |
|
|
return str |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
const REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g |
|
|
const REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g |
|
|
|
|
|
|
|
@ -151,7 +148,6 @@ function escapeRE (str) { |
|
|
return str.replace(REGEXP_ESCAPE_RE, '\\$&') |
|
|
return str.replace(REGEXP_ESCAPE_RE, '\\$&') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
function isSpace (code) { |
|
|
function isSpace (code) { |
|
|
switch (code) { |
|
|
switch (code) { |
|
@ -182,7 +178,6 @@ function isWhiteSpace (code) { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint-disable max-len */ |
|
|
/* eslint-disable max-len */ |
|
|
|
|
|
|
|
@ -291,7 +286,6 @@ function normalizeReference (str) { |
|
|
return str.toLowerCase().toUpperCase() |
|
|
return str.toLowerCase().toUpperCase() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
// Re-export libraries commonly used in both markdown-it and its plugins,
|
|
|
// Re-export libraries commonly used in both markdown-it and its plugins,
|
|
|
// so plugins won't have to depend on them explicitly, which reduces their
|
|
|
// so plugins won't have to depend on them explicitly, which reduces their
|
|
|