@mryhryki/markdown-preview 0.8.11 → 0.8.13
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/package.json +1 -1
- package/static/convert-markdown.js +52 -29
package/package.json
CHANGED
|
@@ -51931,26 +51931,17 @@ function outputLink(cap, link3, raw, lexer2, rules) {
|
|
|
51931
51931
|
const href = link3.href;
|
|
51932
51932
|
const title2 = link3.title || null;
|
|
51933
51933
|
const text4 = cap[1].replace(rules.other.outputLinkReplace, "$1");
|
|
51934
|
-
|
|
51935
|
-
|
|
51936
|
-
|
|
51937
|
-
type: "link",
|
|
51938
|
-
raw,
|
|
51939
|
-
href,
|
|
51940
|
-
title: title2,
|
|
51941
|
-
text: text4,
|
|
51942
|
-
tokens: lexer2.inlineTokens(text4)
|
|
51943
|
-
};
|
|
51944
|
-
lexer2.state.inLink = false;
|
|
51945
|
-
return token2;
|
|
51946
|
-
}
|
|
51947
|
-
return {
|
|
51948
|
-
type: "image",
|
|
51934
|
+
lexer2.state.inLink = true;
|
|
51935
|
+
const token2 = {
|
|
51936
|
+
type: cap[0].charAt(0) === "!" ? "image" : "link",
|
|
51949
51937
|
raw,
|
|
51950
51938
|
href,
|
|
51951
51939
|
title: title2,
|
|
51952
|
-
text: text4
|
|
51940
|
+
text: text4,
|
|
51941
|
+
tokens: lexer2.inlineTokens(text4)
|
|
51953
51942
|
};
|
|
51943
|
+
lexer2.state.inLink = false;
|
|
51944
|
+
return token2;
|
|
51954
51945
|
}
|
|
51955
51946
|
function indentCodeCompensation(raw, text4, rules) {
|
|
51956
51947
|
const matchIndentToCode = raw.match(rules.other.indentCodeCompensation);
|
|
@@ -52111,7 +52102,7 @@ var init_marked_esm = __esm({
|
|
|
52111
52102
|
_inlineComment = edit(_comment).replace("(?:-->|$)", "-->").getRegex();
|
|
52112
52103
|
tag = edit("^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", _inlineComment).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
|
|
52113
52104
|
_inlineLabel = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;
|
|
52114
|
-
link = edit(/^!?\[(label)\]\(\s*(href)(?:\
|
|
52105
|
+
link = edit(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", _inlineLabel).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
|
|
52115
52106
|
reflink = edit(/^!?\[(label)\]\[(ref)\]/).replace("label", _inlineLabel).replace("ref", _blockLabel).getRegex();
|
|
52116
52107
|
nolink = edit(/^!?\[(ref)\](?:\[\])?/).replace("ref", _blockLabel).getRegex();
|
|
52117
52108
|
reflinkSearch = edit("reflink|nolink(?!\\()", "g").replace("reflink", reflink).replace("nolink", nolink).getRegex();
|
|
@@ -53360,7 +53351,10 @@ ${text4}</tr>
|
|
|
53360
53351
|
out += ">" + text4 + "</a>";
|
|
53361
53352
|
return out;
|
|
53362
53353
|
}
|
|
53363
|
-
image({ href, title: title2, text: text4 }) {
|
|
53354
|
+
image({ href, title: title2, text: text4, tokens: tokens2 }) {
|
|
53355
|
+
if (tokens2) {
|
|
53356
|
+
text4 = this.parser.parseInline(tokens2, this.parser.textRenderer);
|
|
53357
|
+
}
|
|
53364
53358
|
const cleanHref = cleanUrl(href);
|
|
53365
53359
|
if (cleanHref === null) {
|
|
53366
53360
|
return escape2(text4);
|
|
@@ -197047,15 +197041,9 @@ var emoji_en_US_default = {
|
|
|
197047
197041
|
"face",
|
|
197048
197042
|
"grimace",
|
|
197049
197043
|
"teeth",
|
|
197050
|
-
"#1\xA0best",
|
|
197051
197044
|
"awkward",
|
|
197052
197045
|
"eek",
|
|
197053
|
-
"
|
|
197054
|
-
"friend",
|
|
197055
|
-
"mouth",
|
|
197056
|
-
"mutual",
|
|
197057
|
-
"nervous",
|
|
197058
|
-
"snapchat"
|
|
197046
|
+
"nervous"
|
|
197059
197047
|
],
|
|
197060
197048
|
"\u{1F925}": [
|
|
197061
197049
|
"lying_face",
|
|
@@ -197709,7 +197697,8 @@ var emoji_en_US_default = {
|
|
|
197709
197697
|
"fairy",
|
|
197710
197698
|
"fantasy",
|
|
197711
197699
|
"oni",
|
|
197712
|
-
"tale"
|
|
197700
|
+
"tale",
|
|
197701
|
+
"shrek"
|
|
197713
197702
|
],
|
|
197714
197703
|
"\u{1F47A}": [
|
|
197715
197704
|
"goblin",
|
|
@@ -200069,7 +200058,6 @@ var emoji_en_US_default = {
|
|
|
200069
200058
|
"guard",
|
|
200070
200059
|
"protect",
|
|
200071
200060
|
"british",
|
|
200072
|
-
"foot",
|
|
200073
200061
|
"guardsman"
|
|
200074
200062
|
],
|
|
200075
200063
|
"\u{1F482}\u200D\u2642\uFE0F": [
|
|
@@ -213747,6 +213735,12 @@ var emoji_en_US_default = {
|
|
|
213747
213735
|
"romania",
|
|
213748
213736
|
"romanian"
|
|
213749
213737
|
],
|
|
213738
|
+
"\u{1F1E8}\u{1F1F6}": [
|
|
213739
|
+
"flag_sark",
|
|
213740
|
+
"cq",
|
|
213741
|
+
"flag",
|
|
213742
|
+
"banner"
|
|
213743
|
+
],
|
|
213750
213744
|
"\u{1F1F7}\u{1F1F8}": [
|
|
213751
213745
|
"flag_serbia",
|
|
213752
213746
|
"rs",
|
|
@@ -215266,7 +215260,8 @@ var emoji_en_US_default = {
|
|
|
215266
215260
|
"monster",
|
|
215267
215261
|
"fairy",
|
|
215268
215262
|
"fantasy",
|
|
215269
|
-
"tale"
|
|
215263
|
+
"tale",
|
|
215264
|
+
"shrek"
|
|
215270
215265
|
],
|
|
215271
215266
|
"\u{1FAB8}": [
|
|
215272
215267
|
"coral",
|
|
@@ -215446,7 +215441,6 @@ var emoji_en_US_default = {
|
|
|
215446
215441
|
],
|
|
215447
215442
|
"\u{1FACE}": [
|
|
215448
215443
|
"moose",
|
|
215449
|
-
"shrek",
|
|
215450
215444
|
"canada",
|
|
215451
215445
|
"sweden",
|
|
215452
215446
|
"sven",
|
|
@@ -215687,6 +215681,35 @@ var emoji_en_US_default = {
|
|
|
215687
215681
|
"broken chain",
|
|
215688
215682
|
"constraint",
|
|
215689
215683
|
"break"
|
|
215684
|
+
],
|
|
215685
|
+
"\u{1FAE9}": [
|
|
215686
|
+
"face with bags under eyes",
|
|
215687
|
+
"tired",
|
|
215688
|
+
"sleepy",
|
|
215689
|
+
"exhausted"
|
|
215690
|
+
],
|
|
215691
|
+
"\u{1FAC6}": [
|
|
215692
|
+
"fingerprint"
|
|
215693
|
+
],
|
|
215694
|
+
"\u{1FABE}": [
|
|
215695
|
+
"leafless tree"
|
|
215696
|
+
],
|
|
215697
|
+
"\u{1FADC}": [
|
|
215698
|
+
"root vegetable",
|
|
215699
|
+
"radish"
|
|
215700
|
+
],
|
|
215701
|
+
"\u{1FA89}": [
|
|
215702
|
+
"harp",
|
|
215703
|
+
"music",
|
|
215704
|
+
"instrument"
|
|
215705
|
+
],
|
|
215706
|
+
"\u{1FA8F}": [
|
|
215707
|
+
"shovel",
|
|
215708
|
+
"tool",
|
|
215709
|
+
"dig"
|
|
215710
|
+
],
|
|
215711
|
+
"\u{1FADF}": [
|
|
215712
|
+
"splatter"
|
|
215690
215713
|
]
|
|
215691
215714
|
};
|
|
215692
215715
|
|