@duskmoon-dev/el-markdown 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -49173,7 +49173,7 @@ var require_lib = __commonJS((exports, module) => {
49173
49173
  import { BaseElement, css } from "@duskmoon-dev/el-base";
49174
49174
  import { css as markdownBodyCSS } from "@duskmoon-dev/core/components/markdown-body";
49175
49175
 
49176
- // ../../node_modules/.bun/marked@17.0.4/node_modules/marked/lib/marked.esm.js
49176
+ // ../../node_modules/.bun/marked@17.0.5/node_modules/marked/lib/marked.esm.js
49177
49177
  function M() {
49178
49178
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
49179
49179
  }
@@ -49189,7 +49189,7 @@ function k(u, e = "") {
49189
49189
  }, getRegex: () => new RegExp(t, e) };
49190
49190
  return n;
49191
49191
  }
49192
- var Re = (() => {
49192
+ var be = (() => {
49193
49193
  try {
49194
49194
  return !!new RegExp("(?<=1)(?<!1)");
49195
49195
  } catch {
@@ -49197,82 +49197,79 @@ var Re = (() => {
49197
49197
  }
49198
49198
  })();
49199
49199
  var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`), htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}>`) };
49200
- var Te = /^(?:[ \t]*(?:\n|$))+/;
49201
- var Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
49202
- var we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
49203
- var A = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
49204
- var ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
49205
- var N = / {0,3}(?:[*+-]|\d{1,9}[.)])/;
49206
- var re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
49207
- var se = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
49208
- var Pe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
49209
- var Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
49210
- var Se = /^[^\n]+/;
49211
- var j = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
49212
- var $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", j).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
49213
- var _e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex();
49214
- var q = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
49215
- var F = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
49216
- var Le = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", F).replace("tag", q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
49217
- var ie = k(Q).replace("hr", A).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex();
49218
- var Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex();
49219
- var U = { blockquote: Me, code: Oe, def: $e, fences: we, heading: ye, hr: A, html: Le, lheading: se, list: _e, newline: Te, paragraph: ie, table: _, text: Se };
49220
- var te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", A).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex();
49221
- var ze = { ...U, lheading: Pe, table: te, paragraph: k(Q).replace("hr", A).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex() };
49222
- var Ee = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", F).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q).replace("hr", A).replace("heading", ` *#{1,6} *[^
49223
- ]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
49224
- var Ie = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
49225
- var Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
49226
- var oe = /^( {2,}|\\)\n(?!\s*$)/;
49227
- var Ce = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
49228
- var v = /[\p{P}\p{S}]/u;
49229
- var K = /[\s\p{P}\p{S}]/u;
49230
- var ae = /[^\s\p{P}\p{S}]/u;
49231
- var Be = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex();
49200
+ var Re = /^(?:[ \t]*(?:\n|$))+/;
49201
+ var Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
49202
+ var Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
49203
+ var C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
49204
+ var we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
49205
+ var Q = / {0,3}(?:[*+-]|\d{1,9}[.)])/;
49206
+ var se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
49207
+ var ie = k(se).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
49208
+ var ye = k(se).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
49209
+ var j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
49210
+ var Pe = /^[^\n]+/;
49211
+ var F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
49212
+ var Se = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
49213
+ var $e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Q).getRegex();
49214
+ var v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
49215
+ var U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
49216
+ var _e = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
49217
+ var oe = k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
49218
+ var Le = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex();
49219
+ var K = { blockquote: Le, code: Te, def: Se, fences: Oe, heading: we, hr: C, html: _e, lheading: ie, list: $e, newline: Re, paragraph: oe, table: _, text: Pe };
49220
+ var ne = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
49221
+ var Me = { ...K, lheading: ye, table: ne, paragraph: k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() };
49222
+ var ze = { ...K, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(j).replace("hr", C).replace("heading", ` *#{1,6} *[^
49223
+ ]`).replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
49224
+ var Ee = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
49225
+ var Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
49226
+ var ae = /^( {2,}|\\)\n(?!\s*$)/;
49227
+ var Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
49228
+ var z = /[\p{P}\p{S}]/u;
49229
+ var H = /[\s\p{P}\p{S}]/u;
49230
+ var W = /[^\s\p{P}\p{S}]/u;
49231
+ var Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, H).getRegex();
49232
49232
  var le = /(?!~)[\p{P}\p{S}]/u;
49233
- var De = /(?!~)[\s\p{P}\p{S}]/u;
49234
- var qe = /(?:[^\s\p{P}\p{S}]|~)/u;
49235
- var ue = /(?![*_])[\p{P}\p{S}]/u;
49236
- var ve = /(?![*_])[\s\p{P}\p{S}]/u;
49237
- var He = /(?:[^\s\p{P}\p{S}]|[*_])/u;
49238
- var Ge = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
49239
- var pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
49240
- var Ze = k(pe, "u").replace(/punct/g, v).getRegex();
49241
- var Ne = k(pe, "u").replace(/punct/g, le).getRegex();
49242
- var ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
49243
- var Qe = k(ce, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex();
49244
- var je = k(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex();
49245
- var Fe = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex();
49246
- var Ue = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ue).getRegex();
49247
- var Ke = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
49248
- var We = k(Ke, "gu").replace(/notPunctSpace/g, He).replace(/punctSpace/g, ve).replace(/punct/g, ue).getRegex();
49249
- var Xe = k(/\\(punct)/, "gu").replace(/punct/g, v).getRegex();
49250
- var Je = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
49251
- var Ve = k(F).replace("(?:-->|$)", "-->").getRegex();
49252
- var Ye = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ve).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
49253
- var D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
49254
- var et = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
49255
- var he = k(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", j).getRegex();
49256
- var ke = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", j).getRegex();
49257
- var tt = k("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", ke).getRegex();
49258
- var ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
49259
- var W = { _backpedal: _, anyPunctuation: Xe, autolink: Je, blockSkip: Ge, br: oe, code: Ae, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ze, emStrongRDelimAst: Qe, emStrongRDelimUnd: Fe, escape: Ie, link: et, nolink: ke, punctuation: Be, reflink: he, reflinkSearch: tt, tag: Ye, text: Ce, url: _ };
49260
- var nt = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex() };
49261
- var Z = { ...W, emStrongRDelimAst: je, emStrongLDelim: Ne, delLDelim: Ue, delRDelim: We, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() };
49262
- var rt = { ...Z, br: k(oe).replace("{2,}", "*").getRegex(), text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
49263
- var C = { normal: U, gfm: ze, pedantic: Ee };
49264
- var z = { normal: W, gfm: Z, breaks: rt, pedantic: nt };
49265
- var st = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
49266
- var de = (u) => st[u];
49233
+ var Be = /(?!~)[\s\p{P}\p{S}]/u;
49234
+ var De = /(?:[^\s\p{P}\p{S}]|~)/u;
49235
+ var qe = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
49236
+ var ue = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/;
49237
+ var ve = k(ue, "u").replace(/punct/g, z).getRegex();
49238
+ var He = k(ue, "u").replace(/punct/g, le).getRegex();
49239
+ var pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
49240
+ var Ze = k(pe, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex();
49241
+ var Ge = k(pe, "gu").replace(/notPunctSpace/g, De).replace(/punctSpace/g, Be).replace(/punct/g, le).getRegex();
49242
+ var Ne = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex();
49243
+ var Qe = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex();
49244
+ var je = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
49245
+ var Fe = k(je, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex();
49246
+ var Ue = k(/\\(punct)/, "gu").replace(/punct/g, z).getRegex();
49247
+ var Ke = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
49248
+ var We = k(U).replace("(?:-->|$)", "-->").getRegex();
49249
+ var Xe = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", We).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
49250
+ var q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/;
49251
+ var Je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
49252
+ var ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex();
49253
+ var he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
49254
+ var Ve = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex();
49255
+ var re = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
49256
+ var X = { _backpedal: _, anyPunctuation: Ue, autolink: Ke, blockSkip: qe, br: ae, code: Ie, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: ve, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ee, link: Je, nolink: he, punctuation: Ce, reflink: ce, reflinkSearch: Ve, tag: Xe, text: Ae, url: _ };
49257
+ var Ye = { ...X, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() };
49258
+ var N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, delLDelim: Qe, delRDelim: Fe, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", re).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", re).getRegex() };
49259
+ var et = { ...N, br: k(ae).replace("{2,}", "*").getRegex(), text: k(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
49260
+ var B = { normal: K, gfm: Me, pedantic: ze };
49261
+ var E = { normal: X, gfm: N, breaks: et, pedantic: Ye };
49262
+ var tt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
49263
+ var ke = (u) => tt[u];
49267
49264
  function O(u, e) {
49268
49265
  if (e) {
49269
49266
  if (m.escapeTest.test(u))
49270
- return u.replace(m.escapeReplace, de);
49267
+ return u.replace(m.escapeReplace, ke);
49271
49268
  } else if (m.escapeTestNoEncode.test(u))
49272
- return u.replace(m.escapeReplaceNoEncode, de);
49269
+ return u.replace(m.escapeReplaceNoEncode, ke);
49273
49270
  return u;
49274
49271
  }
49275
- function X(u) {
49272
+ function J(u) {
49276
49273
  try {
49277
49274
  u = encodeURI(u).replace(m.percentDecode, "%");
49278
49275
  } catch {
@@ -49280,7 +49277,7 @@ function X(u) {
49280
49277
  }
49281
49278
  return u;
49282
49279
  }
49283
- function J(u, e) {
49280
+ function V(u, e) {
49284
49281
  let t = u.replace(m.findPipe, (i, s, a) => {
49285
49282
  let o = false, l = s;
49286
49283
  for (;--l >= 0 && a[l] === "\\"; )
@@ -49297,7 +49294,7 @@ function J(u, e) {
49297
49294
  n[r] = n[r].trim().replace(m.slashPipe, "|");
49298
49295
  return n;
49299
49296
  }
49300
- function E(u, e, t) {
49297
+ function I(u, e, t) {
49301
49298
  let n = u.length;
49302
49299
  if (n === 0)
49303
49300
  return "";
@@ -49313,7 +49310,7 @@ function E(u, e, t) {
49313
49310
  }
49314
49311
  return u.slice(0, n - r);
49315
49312
  }
49316
- function ge(u, e) {
49313
+ function de(u, e) {
49317
49314
  if (u.indexOf(e[1]) === -1)
49318
49315
  return -1;
49319
49316
  let t = 0;
@@ -49326,7 +49323,7 @@ function ge(u, e) {
49326
49323
  return n;
49327
49324
  return t > 0 ? -2 : -1;
49328
49325
  }
49329
- function fe(u, e = 0) {
49326
+ function ge(u, e = 0) {
49330
49327
  let t = e, n = "";
49331
49328
  for (let r of u)
49332
49329
  if (r === "\t") {
@@ -49336,13 +49333,13 @@ function fe(u, e = 0) {
49336
49333
  n += r, t++;
49337
49334
  return n;
49338
49335
  }
49339
- function me(u, e, t, n, r) {
49336
+ function fe(u, e, t, n, r) {
49340
49337
  let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
49341
49338
  n.state.inLink = true;
49342
49339
  let o = { type: u[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: a, tokens: n.inlineTokens(a) };
49343
49340
  return n.state.inLink = false, o;
49344
49341
  }
49345
- function it(u, e, t) {
49342
+ function nt(u, e, t) {
49346
49343
  let n = u.match(t.other.indentCodeCompensation);
49347
49344
  if (n === null)
49348
49345
  return e;
@@ -49373,14 +49370,14 @@ var w = class {
49373
49370
  let t = this.rules.block.code.exec(e);
49374
49371
  if (t) {
49375
49372
  let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
49376
- return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : E(n, `
49373
+ return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : I(n, `
49377
49374
  `) };
49378
49375
  }
49379
49376
  }
49380
49377
  fences(e) {
49381
49378
  let t = this.rules.block.fences.exec(e);
49382
49379
  if (t) {
49383
- let n = t[0], r = it(n, t[3] || "", this.rules);
49380
+ let n = t[0], r = nt(n, t[3] || "", this.rules);
49384
49381
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
49385
49382
  }
49386
49383
  }
@@ -49389,7 +49386,7 @@ var w = class {
49389
49386
  if (t) {
49390
49387
  let n = t[2].trim();
49391
49388
  if (this.rules.other.endingHash.test(n)) {
49392
- let r = E(n, "#");
49389
+ let r = I(n, "#");
49393
49390
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
49394
49391
  }
49395
49392
  return { type: "heading", raw: t[0], depth: t[1].length, text: n, tokens: this.lexer.inline(n) };
@@ -49398,13 +49395,13 @@ var w = class {
49398
49395
  hr(e) {
49399
49396
  let t = this.rules.block.hr.exec(e);
49400
49397
  if (t)
49401
- return { type: "hr", raw: E(t[0], `
49398
+ return { type: "hr", raw: I(t[0], `
49402
49399
  `) };
49403
49400
  }
49404
49401
  blockquote(e) {
49405
49402
  let t = this.rules.block.blockquote.exec(e);
49406
49403
  if (t) {
49407
- let n = E(t[0], `
49404
+ let n = I(t[0], `
49408
49405
  `).split(`
49409
49406
  `), r = "", i = "", s = [];
49410
49407
  for (;n.length > 0; ) {
@@ -49458,28 +49455,28 @@ ${c}` : c;
49458
49455
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
49459
49456
  break;
49460
49457
  p = t[0], e = e.substring(p.length);
49461
- let d = fe(t[2].split(`
49458
+ let d = ge(t[2].split(`
49462
49459
  `, 1)[0], t[1].length), h = e.split(`
49463
49460
  `, 1)[0], R = !d.trim(), f = 0;
49464
49461
  if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
49465
49462
  `, e = e.substring(h.length + 1), l = true), !l) {
49466
- let S = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f), be = this.rules.other.blockquoteBeginRegex(f);
49463
+ let S = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f), me = this.rules.other.htmlBeginRegex(f), xe = this.rules.other.blockquoteBeginRegex(f);
49467
49464
  for (;e; ) {
49468
- let H = e.split(`
49469
- `, 1)[0], I;
49470
- if (h = H, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), I = h) : I = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || xe.test(h) || be.test(h) || S.test(h) || V.test(h))
49465
+ let Z = e.split(`
49466
+ `, 1)[0], A;
49467
+ if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), ee.test(h) || te.test(h) || me.test(h) || xe.test(h) || S.test(h) || Y.test(h))
49471
49468
  break;
49472
- if (I.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
49469
+ if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
49473
49470
  c += `
49474
- ` + I.slice(f);
49471
+ ` + A.slice(f);
49475
49472
  else {
49476
- if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d))
49473
+ if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(d) || te.test(d) || Y.test(d))
49477
49474
  break;
49478
49475
  c += `
49479
49476
  ` + h;
49480
49477
  }
49481
- R = !h.trim(), p += H + `
49482
- `, e = e.substring(H.length + 1), d = I.slice(f);
49478
+ R = !h.trim(), p += Z + `
49479
+ `, e = e.substring(Z.length + 1), d = A.slice(f);
49483
49480
  }
49484
49481
  }
49485
49482
  i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: false, text: c, tokens: [] }), i.raw += p;
@@ -49536,7 +49533,7 @@ ${c}` : c;
49536
49533
  let t = this.rules.block.table.exec(e);
49537
49534
  if (!t || !this.rules.other.tableDelimiter.test(t[2]))
49538
49535
  return;
49539
- let n = J(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
49536
+ let n = V(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
49540
49537
  `) : [], s = { type: "table", raw: t[0], header: [], align: [], rows: [] };
49541
49538
  if (n.length === r.length) {
49542
49539
  for (let a of r)
@@ -49544,14 +49541,16 @@ ${c}` : c;
49544
49541
  for (let a = 0;a < n.length; a++)
49545
49542
  s.header.push({ text: n[a], tokens: this.lexer.inline(n[a]), header: true, align: s.align[a] });
49546
49543
  for (let a of i)
49547
- s.rows.push(J(a, s.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s.align[l] })));
49544
+ s.rows.push(V(a, s.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s.align[l] })));
49548
49545
  return s;
49549
49546
  }
49550
49547
  }
49551
49548
  lheading(e) {
49552
49549
  let t = this.rules.block.lheading.exec(e);
49553
- if (t)
49554
- return { type: "heading", raw: t[0], depth: t[2].charAt(0) === "=" ? 1 : 2, text: t[1], tokens: this.lexer.inline(t[1]) };
49550
+ if (t) {
49551
+ let n = t[1].trim();
49552
+ return { type: "heading", raw: t[0], depth: t[2].charAt(0) === "=" ? 1 : 2, text: n, tokens: this.lexer.inline(n) };
49553
+ }
49555
49554
  }
49556
49555
  paragraph(e) {
49557
49556
  let t = this.rules.block.paragraph.exec(e);
@@ -49583,11 +49582,11 @@ ${c}` : c;
49583
49582
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
49584
49583
  if (!this.rules.other.endAngleBracket.test(n))
49585
49584
  return;
49586
- let s = E(n.slice(0, -1), "\\");
49585
+ let s = I(n.slice(0, -1), "\\");
49587
49586
  if ((n.length - s.length) % 2 === 0)
49588
49587
  return;
49589
49588
  } else {
49590
- let s = ge(t[2], "()");
49589
+ let s = de(t[2], "()");
49591
49590
  if (s === -2)
49592
49591
  return;
49593
49592
  if (s > -1) {
@@ -49601,7 +49600,7 @@ ${c}` : c;
49601
49600
  s && (r = s[1], i = s[3]);
49602
49601
  } else
49603
49602
  i = t[3] ? t[3].slice(1, -1) : "";
49604
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
49603
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), fe(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
49605
49604
  }
49606
49605
  }
49607
49606
  reflink(e, t) {
@@ -49612,14 +49611,14 @@ ${c}` : c;
49612
49611
  let s = n[0].charAt(0);
49613
49612
  return { type: "text", raw: s, text: s };
49614
49613
  }
49615
- return me(n, i, n[0], this.lexer, this.rules);
49614
+ return fe(n, i, n[0], this.lexer, this.rules);
49616
49615
  }
49617
49616
  }
49618
49617
  emStrong(e, t, n = "") {
49619
49618
  let r = this.rules.inline.emStrongLDelim.exec(e);
49620
- if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric))
49619
+ if (!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric))
49621
49620
  return;
49622
- if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
49621
+ if (!(r[1] || r[3] || "") || !n || this.rules.inline.punctuation.exec(n)) {
49623
49622
  let s = [...r[0]].length - 1, a, o, l = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
49624
49623
  for (c.lastIndex = 0, t = t.slice(-1 * e.length + s);(r = c.exec(t)) != null; ) {
49625
49624
  if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a)
@@ -49716,11 +49715,11 @@ var x = class u {
49716
49715
  tokenizer;
49717
49716
  constructor(e) {
49718
49717
  this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
49719
- let t = { other: m, block: C.normal, inline: z.normal };
49720
- this.options.pedantic ? (t.block = C.pedantic, t.inline = z.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = z.breaks : t.inline = z.gfm), this.tokenizer.rules = t;
49718
+ let t = { other: m, block: B.normal, inline: E.normal };
49719
+ this.options.pedantic ? (t.block = B.pedantic, t.inline = E.pedantic) : this.options.gfm && (t.block = B.gfm, this.options.breaks ? t.inline = E.breaks : t.inline = E.gfm), this.tokenizer.rules = t;
49721
49720
  }
49722
49721
  static get rules() {
49723
- return { block: C, inline: z };
49722
+ return { block: B, inline: E };
49724
49723
  }
49725
49724
  static lex(e, t) {
49726
49725
  return new u(t).lex(e);
@@ -49738,7 +49737,7 @@ var x = class u {
49738
49737
  return this.inlineQueue = [], this.tokens;
49739
49738
  }
49740
49739
  blockTokens(e, t = [], n = false) {
49741
- for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, ""));e; ) {
49740
+ for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, ""));e; ) {
49742
49741
  let r;
49743
49742
  if (this.options.extensions?.block?.some((s) => (r = s.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), true) : false))
49744
49743
  continue;
@@ -49838,6 +49837,7 @@ var x = class u {
49838
49837
  return this.inlineQueue.push({ src: e, tokens: t }), t;
49839
49838
  }
49840
49839
  inlineTokens(e, t = []) {
49840
+ this.tokenizer.lexer = this;
49841
49841
  let n = e, r = null;
49842
49842
  if (this.tokens.links) {
49843
49843
  let o = Object.keys(this.tokens.links);
@@ -50026,7 +50026,7 @@ ${e}</tr>
50026
50026
  return `<del>${this.parser.parseInline(e)}</del>`;
50027
50027
  }
50028
50028
  link({ href: e, title: t, tokens: n }) {
50029
- let r = this.parser.parseInline(n), i = X(e);
50029
+ let r = this.parser.parseInline(n), i = J(e);
50030
50030
  if (i === null)
50031
50031
  return r;
50032
50032
  e = i;
@@ -50035,7 +50035,7 @@ ${e}</tr>
50035
50035
  }
50036
50036
  image({ href: e, title: t, text: n, tokens: r }) {
50037
50037
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
50038
- let i = X(e);
50038
+ let i = J(e);
50039
50039
  if (i === null)
50040
50040
  return O(n);
50041
50041
  e = i;
@@ -50092,6 +50092,7 @@ var b = class u2 {
50092
50092
  return new u2(t).parseInline(e);
50093
50093
  }
50094
50094
  parse(e) {
50095
+ this.renderer.parser = this;
50095
50096
  let t = "";
50096
50097
  for (let n = 0;n < e.length; n++) {
50097
50098
  let r = e[n];
@@ -50163,6 +50164,7 @@ var b = class u2 {
50163
50164
  return t;
50164
50165
  }
50165
50166
  parseInline(e, t = this.renderer) {
50167
+ this.renderer.parser = this;
50166
50168
  let n = "";
50167
50169
  for (let r = 0;r < e.length; r++) {
50168
50170
  let i = e[r];
@@ -50257,7 +50259,7 @@ var P = class {
50257
50259
  return this.block ? b.parse : b.parseInline;
50258
50260
  }
50259
50261
  };
50260
- var B = class {
50262
+ var D = class {
50261
50263
  defaults = M();
50262
50264
  options = this.setOptions;
50263
50265
  parse = this.parseMarkdown(true);
@@ -50437,7 +50439,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
50437
50439
  };
50438
50440
  }
50439
50441
  };
50440
- var L = new B;
50442
+ var L = new D;
50441
50443
  function g(u3, e) {
50442
50444
  return L.parse(u3, e);
50443
50445
  }
@@ -50462,15 +50464,15 @@ g.lexer = x.lex;
50462
50464
  g.Tokenizer = w;
50463
50465
  g.Hooks = P;
50464
50466
  g.parse = g;
50465
- var Ut = g.options;
50466
- var Kt = g.setOptions;
50467
- var Wt = g.use;
50468
- var Xt = g.walkTokens;
50469
- var Jt = g.parseInline;
50470
- var Yt = b.parse;
50471
- var en = x.lex;
50472
-
50473
- // ../../node_modules/.bun/marked-highlight@2.2.3+8588f3cc99cf252f/node_modules/marked-highlight/src/index.js
50467
+ var Qt = g.options;
50468
+ var jt = g.setOptions;
50469
+ var Ft = g.use;
50470
+ var Ut = g.walkTokens;
50471
+ var Kt = g.parseInline;
50472
+ var Xt = b.parse;
50473
+ var Jt = x.lex;
50474
+
50475
+ // ../../node_modules/.bun/marked-highlight@2.2.3+0430339b180635dd/node_modules/marked-highlight/src/index.js
50474
50476
  function markedHighlight(options) {
50475
50477
  if (typeof options === "function") {
50476
50478
  options = {
@@ -50816,7 +50818,7 @@ var atomOneLight = `
50816
50818
 
50817
50819
  // src/el-dm-markdown.ts
50818
50820
  var coreStyles = markdownBodyCSS.replace(/@layer\s+components\s*\{/, "").replace(/\}\s*$/, "");
50819
- var markedInstance = new B(markedHighlight({
50821
+ var markedInstance = new D(markedHighlight({
50820
50822
  langPrefix: "hljs language-",
50821
50823
  highlight(code, lang) {
50822
50824
  const language = es_default.getLanguage(lang) ? lang : "plaintext";
@@ -51366,5 +51368,5 @@ export {
51366
51368
  ElDmMarkdown
51367
51369
  };
51368
51370
 
51369
- //# debugId=9B75CCA16D9545B664756E2164756E21
51371
+ //# debugId=53D5337FA68AAF7864756E2164756E21
51370
51372
  //# sourceMappingURL=index.js.map