@coderminer/vue-markdown 1.0.0 → 1.0.1
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/CHANGELOG.md +116 -0
- package/README.md +7 -2
- package/README.zh-CN.md +6 -3
- package/dist/chunks/MarkdownBlockquote-DVXziX2t.js +0 -2
- package/dist/chunks/MarkdownBreak-BwCi2Itt.js +0 -2
- package/dist/chunks/MarkdownCode-B1k9tmW5.js +0 -2
- package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js +0 -2
- package/dist/chunks/MarkdownContent-BAK6dqo7.js +0 -2
- package/dist/chunks/MarkdownCustomTag-lZJHsD6f.js +46 -0
- package/dist/chunks/MarkdownEmphasis-CppivOEu.js +0 -2
- package/dist/chunks/MarkdownEmpty-Av5k6bqa.js +0 -2
- package/dist/chunks/MarkdownError-C0sPs5W0.js +0 -2
- package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js +0 -2
- package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js +0 -2
- package/dist/chunks/MarkdownHeading-DaNcP0_6.js +0 -2
- package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js +0 -2
- package/dist/chunks/MarkdownHtml-66lYkvwM.js +0 -2
- package/dist/chunks/MarkdownImage-BRy76svs.js +0 -2
- package/dist/chunks/MarkdownInlineCode-MXZYFwex.js +0 -2
- package/dist/chunks/MarkdownLink-Dbx3NwgV.js +0 -2
- package/dist/chunks/MarkdownList-BJ-_C71k.js +0 -2
- package/dist/chunks/MarkdownListItem-Z1EHIY26.js +0 -2
- package/dist/chunks/MarkdownLoading-D-RYtXxf.js +0 -2
- package/dist/chunks/MarkdownParagraph-BxLSmSaG.js +0 -2
- package/dist/chunks/MarkdownRenderer-OlkdsvI3.js +482 -0
- package/dist/chunks/MarkdownRoot-DEE6iVfh.js +0 -2
- package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js +0 -2
- package/dist/chunks/MarkdownStrong-uU5MzAoJ.js +0 -2
- package/dist/chunks/MarkdownTable-DmBTg_CR.js +0 -2
- package/dist/chunks/MarkdownTableCell-eiCJe847.js +0 -2
- package/dist/chunks/MarkdownTableRow-DuJaPntg.js +0 -2
- package/dist/chunks/MarkdownTableSection-PFHz-R33.js +0 -2
- package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js +0 -2
- package/dist/chunks/{MarkdownToc-BdOHF-Yo.js → MarkdownToc-DHWWoH6t.js} +1 -3
- package/dist/chunks/MarkdownTocItem-DT9mR3vL.js +0 -2
- package/dist/chunks/{MermaidLiveEditor-W-qf3G-5.js → MermaidLiveEditor-1TKkI5bp.js} +1 -3
- package/dist/chunks/{VueSyntaxHighlighter-DyLsYMwy.js → VueSyntaxHighlighter-BWpCO-cX.js} +1 -3
- package/dist/chunks/adapters-CMwX_NEI.js +0 -2
- package/dist/chunks/{blank-line-Cb-JBP_5.js → blank-line-CKKsFeKR.js} +1 -3
- package/dist/chunks/codemirror-DyphMAEg.js +0 -2
- package/dist/chunks/config-aRYo2R8_.js +0 -2
- package/dist/chunks/context-8NfW6fxI.js +0 -2
- package/dist/chunks/convert-hast-C4Rg2ZuF.js +6 -0
- package/dist/chunks/default-ZQ5aHh-N.js +3 -0
- package/dist/chunks/diagnostics-CtHoJyiX.js +0 -2
- package/dist/chunks/{export-DZQ3cUry.js → export-BrgMLgUp.js} +13 -14
- package/dist/chunks/hast-to-nodes-DuZsi4XT.js +29 -0
- package/dist/chunks/{lib-BQiWGWpu.js → hast-util-from-html-D3e_iQ89.js} +495 -494
- package/dist/chunks/highlightjs-BxJFpKS1.js +196 -0
- package/dist/chunks/{identity-jZEhX2d5.js → identity-Bi27FKyx.js} +7 -8
- package/dist/chunks/labels-BtHiUTQI.js +0 -2
- package/dist/chunks/lib-CCnkLL6S.js +252 -0
- package/dist/chunks/longest-streak-DZE_EqsU.js +0 -2
- package/dist/chunks/{micromark-factory-space-Db040TnW.js → micromark-factory-space-CpXAnYUY.js} +2 -4
- package/dist/chunks/{normalize-CRYv3Wqt.js → normalize-VKfQXZiK.js} +57 -51
- package/dist/chunks/{plugin-DqkFHyny.js → plugin-YWo5uqTh.js} +1 -2
- package/dist/chunks/preset-BjaOuJUL.js +0 -2
- package/dist/chunks/{registry-DLjr93-V.js → registry-B7BfEkuy.js} +1051 -1045
- package/dist/chunks/{render-Cs8iKrgz.js → render-DAqK0w5J.js} +524 -494
- package/dist/chunks/{default-DWVS-I_8.js → rolldown-runtime-QGRDbDUS.js} +1 -5
- package/dist/chunks/{runtime-DJMnzjah.js → runtime-D95F41zG.js} +145 -117
- package/dist/chunks/security-y4EwUyAs.js +0 -2
- package/dist/chunks/{shared-DNAvZ-UY.js → shared-NjFDPmkb.js} +18 -27
- package/dist/chunks/{space-separated-tokens-CmBjEPdR.js → space-separated-tokens-1ebNqf35.js} +1 -3
- package/dist/chunks/url-D2BoivaE.js +0 -2
- package/dist/chunks/{useActiveHeading-BaGVMJnB.js → useActiveHeading-CnyGTG1u.js} +165 -122
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/MarkdownCustomTag.js +1 -1
- package/dist/components/MarkdownMath.js +1 -1
- package/dist/components/MarkdownMermaid.d.ts +3 -3
- package/dist/components/MarkdownMermaid.js +1 -1
- package/dist/components/MarkdownRenderer.d.ts +16 -19
- package/dist/components/MarkdownRenderer.js +1 -1
- package/dist/components/MarkdownToc.js +1 -1
- package/dist/components/MermaidBlock.js +1 -1
- package/dist/components/MermaidLiveEditor.js +1 -1
- package/dist/components/VueSyntaxHighlighter.js +1 -1
- package/dist/components/context.d.ts +2 -2
- package/dist/components/index.js +6 -6
- package/dist/components/types.d.ts +34 -2
- package/dist/composables/useMarkdownDocument.d.ts +2 -0
- package/dist/core/hast-nodes.d.ts +0 -3
- package/dist/core/hast-to-nodes.d.ts +9 -0
- package/dist/core/normalize.d.ts +10 -0
- package/dist/core/parts.d.ts +1 -0
- package/dist/core/slugger.d.ts +7 -0
- package/dist/core/types.d.ts +3 -1
- package/dist/headless.js +8 -8
- package/dist/highlight/convert-hast.d.ts +8 -0
- package/dist/highlight/index.d.ts +2 -1
- package/dist/highlight/index.js +4 -3
- package/dist/highlight/shared.d.ts +0 -5
- package/dist/highlight/shiki.js +2 -3
- package/dist/html/index.js +0 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +47 -49
- package/dist/math/index.js +18 -16
- package/dist/mermaid/index.d.ts +2 -1
- package/dist/mermaid/index.js +8 -3
- package/dist/mermaid/plugin.d.ts +3 -0
- package/dist/mermaid/runtime.d.ts +3 -1
- package/dist/mermaid/sanitize-svg-lazy.d.ts +10 -0
- package/dist/mermaid/sanitize-svg.d.ts +3 -0
- package/dist/mermaid/sanitize.d.ts +6 -2
- package/dist/node-components.js +6 -6
- package/dist/pipeline.js +1 -1
- package/dist/plugins.js +1 -1
- package/dist/styles/components.css +25 -0
- package/package.json +6 -3
- package/dist/chunks/MarkdownBlockquote-DVXziX2t.js.map +0 -1
- package/dist/chunks/MarkdownBreak-BwCi2Itt.js.map +0 -1
- package/dist/chunks/MarkdownCode-B1k9tmW5.js.map +0 -1
- package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js.map +0 -1
- package/dist/chunks/MarkdownContent-BAK6dqo7.js.map +0 -1
- package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js +0 -42
- package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js.map +0 -1
- package/dist/chunks/MarkdownEmphasis-CppivOEu.js.map +0 -1
- package/dist/chunks/MarkdownEmpty-Av5k6bqa.js.map +0 -1
- package/dist/chunks/MarkdownError-C0sPs5W0.js.map +0 -1
- package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js.map +0 -1
- package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js.map +0 -1
- package/dist/chunks/MarkdownHeading-DaNcP0_6.js.map +0 -1
- package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js.map +0 -1
- package/dist/chunks/MarkdownHtml-66lYkvwM.js.map +0 -1
- package/dist/chunks/MarkdownImage-BRy76svs.js.map +0 -1
- package/dist/chunks/MarkdownInlineCode-MXZYFwex.js.map +0 -1
- package/dist/chunks/MarkdownLink-Dbx3NwgV.js.map +0 -1
- package/dist/chunks/MarkdownList-BJ-_C71k.js.map +0 -1
- package/dist/chunks/MarkdownListItem-Z1EHIY26.js.map +0 -1
- package/dist/chunks/MarkdownLoading-D-RYtXxf.js.map +0 -1
- package/dist/chunks/MarkdownParagraph-BxLSmSaG.js.map +0 -1
- package/dist/chunks/MarkdownRenderer-DLRRfsdI.js +0 -416
- package/dist/chunks/MarkdownRenderer-DLRRfsdI.js.map +0 -1
- package/dist/chunks/MarkdownRoot-DEE6iVfh.js.map +0 -1
- package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js.map +0 -1
- package/dist/chunks/MarkdownStrong-uU5MzAoJ.js.map +0 -1
- package/dist/chunks/MarkdownTable-DmBTg_CR.js.map +0 -1
- package/dist/chunks/MarkdownTableCell-eiCJe847.js.map +0 -1
- package/dist/chunks/MarkdownTableRow-DuJaPntg.js.map +0 -1
- package/dist/chunks/MarkdownTableSection-PFHz-R33.js.map +0 -1
- package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js.map +0 -1
- package/dist/chunks/MarkdownToc-BdOHF-Yo.js.map +0 -1
- package/dist/chunks/MarkdownTocItem-DT9mR3vL.js.map +0 -1
- package/dist/chunks/MermaidLiveEditor-W-qf3G-5.js.map +0 -1
- package/dist/chunks/VueSyntaxHighlighter-DyLsYMwy.js.map +0 -1
- package/dist/chunks/adapters-CMwX_NEI.js.map +0 -1
- package/dist/chunks/blank-line-Cb-JBP_5.js.map +0 -1
- package/dist/chunks/codemirror-DyphMAEg.js.map +0 -1
- package/dist/chunks/config-aRYo2R8_.js.map +0 -1
- package/dist/chunks/context-8NfW6fxI.js.map +0 -1
- package/dist/chunks/default-DWVS-I_8.js.map +0 -1
- package/dist/chunks/diagnostics-CtHoJyiX.js.map +0 -1
- package/dist/chunks/export-DZQ3cUry.js.map +0 -1
- package/dist/chunks/hast-nodes-C0bX3M5Z.js +0 -35
- package/dist/chunks/hast-nodes-C0bX3M5Z.js.map +0 -1
- package/dist/chunks/highlightjs-BEh-YwEG.js +0 -6041
- package/dist/chunks/highlightjs-BEh-YwEG.js.map +0 -1
- package/dist/chunks/identity-jZEhX2d5.js.map +0 -1
- package/dist/chunks/labels-BtHiUTQI.js.map +0 -1
- package/dist/chunks/lib-BQiWGWpu.js.map +0 -1
- package/dist/chunks/lib-LwqA_W3J.js +0 -127
- package/dist/chunks/lib-LwqA_W3J.js.map +0 -1
- package/dist/chunks/longest-streak-DZE_EqsU.js.map +0 -1
- package/dist/chunks/micromark-factory-space-Db040TnW.js.map +0 -1
- package/dist/chunks/normalize-CRYv3Wqt.js.map +0 -1
- package/dist/chunks/plugin-DqkFHyny.js.map +0 -1
- package/dist/chunks/preset-BjaOuJUL.js.map +0 -1
- package/dist/chunks/registry-DLjr93-V.js.map +0 -1
- package/dist/chunks/render-Cs8iKrgz.js.map +0 -1
- package/dist/chunks/runtime-DJMnzjah.js.map +0 -1
- package/dist/chunks/security-y4EwUyAs.js.map +0 -1
- package/dist/chunks/shared-DNAvZ-UY.js.map +0 -1
- package/dist/chunks/space-separated-tokens-CmBjEPdR.js.map +0 -1
- package/dist/chunks/url-D2BoivaE.js.map +0 -1
- package/dist/chunks/useActiveHeading-BaGVMJnB.js.map +0 -1
- package/dist/highlight/shiki.js.map +0 -1
- package/dist/html/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/math/index.js.map +0 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
+
import "./default-ZQ5aHh-N.js";
|
|
3
|
+
import { n as t } from "./shared-NjFDPmkb.js";
|
|
4
|
+
import { t as n } from "./convert-hast-C4Rg2ZuF.js";
|
|
5
|
+
import r from "highlight.js/lib/languages/bash";
|
|
6
|
+
import i from "highlight.js/lib/languages/c";
|
|
7
|
+
import a from "highlight.js/lib/languages/cpp";
|
|
8
|
+
import o from "highlight.js/lib/languages/csharp";
|
|
9
|
+
import s from "highlight.js/lib/languages/css";
|
|
10
|
+
import c from "highlight.js/lib/languages/diff";
|
|
11
|
+
import l from "highlight.js/lib/languages/go";
|
|
12
|
+
import u from "highlight.js/lib/languages/ini";
|
|
13
|
+
import d from "highlight.js/lib/languages/java";
|
|
14
|
+
import f from "highlight.js/lib/languages/javascript";
|
|
15
|
+
import p from "highlight.js/lib/languages/json";
|
|
16
|
+
import m from "highlight.js/lib/languages/kotlin";
|
|
17
|
+
import h from "highlight.js/lib/languages/less";
|
|
18
|
+
import g from "highlight.js/lib/languages/lua";
|
|
19
|
+
import _ from "highlight.js/lib/languages/markdown";
|
|
20
|
+
import v from "highlight.js/lib/languages/php";
|
|
21
|
+
import y from "highlight.js/lib/languages/python";
|
|
22
|
+
import b from "highlight.js/lib/languages/ruby";
|
|
23
|
+
import x from "highlight.js/lib/languages/rust";
|
|
24
|
+
import S from "highlight.js/lib/languages/scss";
|
|
25
|
+
import C from "highlight.js/lib/languages/shell";
|
|
26
|
+
import w from "highlight.js/lib/languages/sql";
|
|
27
|
+
import T from "highlight.js/lib/languages/swift";
|
|
28
|
+
import E from "highlight.js/lib/languages/typescript";
|
|
29
|
+
import D from "highlight.js/lib/languages/xml";
|
|
30
|
+
import O from "highlight.js/lib/languages/yaml";
|
|
31
|
+
import k from "highlight.js/lib/core";
|
|
32
|
+
// node_modules/lowlight/lib/index.js
|
|
33
|
+
var A = {}, j = "hljs-";
|
|
34
|
+
function M(e) {
|
|
35
|
+
let t = k.newInstance();
|
|
36
|
+
return e && a(e), {
|
|
37
|
+
highlight: n,
|
|
38
|
+
highlightAuto: r,
|
|
39
|
+
listLanguages: i,
|
|
40
|
+
register: a,
|
|
41
|
+
registerAlias: o,
|
|
42
|
+
registered: s
|
|
43
|
+
};
|
|
44
|
+
function n(e, n, r) {
|
|
45
|
+
let i = r || A, a = typeof i.prefix == "string" ? i.prefix : j;
|
|
46
|
+
if (!t.getLanguage(e)) throw Error("Unknown language: `" + e + "` is not registered");
|
|
47
|
+
t.configure({
|
|
48
|
+
__emitter: N,
|
|
49
|
+
classPrefix: a
|
|
50
|
+
});
|
|
51
|
+
let o = t.highlight(n, {
|
|
52
|
+
ignoreIllegals: !0,
|
|
53
|
+
language: e
|
|
54
|
+
});
|
|
55
|
+
/* c8 ignore next 5 */
|
|
56
|
+
if (o.errorRaised) throw Error("Could not highlight with `Highlight.js`", { cause: o.errorRaised });
|
|
57
|
+
let s = o._emitter.root, c = s.data;
|
|
58
|
+
return c.language = o.language, c.relevance = o.relevance, s;
|
|
59
|
+
}
|
|
60
|
+
function r(e, r) {
|
|
61
|
+
let a = (r || A).subset || i(), o = -1, s = 0, c;
|
|
62
|
+
for (; ++o < a.length;) {
|
|
63
|
+
let i = a[o];
|
|
64
|
+
if (!t.getLanguage(i)) continue;
|
|
65
|
+
let l = n(i, e, r);
|
|
66
|
+
l.data && l.data.relevance !== void 0 && l.data.relevance > s && (s = l.data.relevance, c = l);
|
|
67
|
+
}
|
|
68
|
+
return c || {
|
|
69
|
+
type: "root",
|
|
70
|
+
children: [],
|
|
71
|
+
data: {
|
|
72
|
+
language: void 0,
|
|
73
|
+
relevance: s
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function i() {
|
|
78
|
+
return t.listLanguages();
|
|
79
|
+
}
|
|
80
|
+
function a(e, n) {
|
|
81
|
+
if (typeof e == "string") t.registerLanguage(e, n);
|
|
82
|
+
else {
|
|
83
|
+
let n;
|
|
84
|
+
for (n in e) Object.hasOwn(e, n) && t.registerLanguage(n, e[n]);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function o(e, n) {
|
|
88
|
+
if (typeof e == "string") t.registerAliases(typeof n == "string" ? n : [...n], { languageName: e });
|
|
89
|
+
else {
|
|
90
|
+
let n;
|
|
91
|
+
for (n in e) if (Object.hasOwn(e, n)) {
|
|
92
|
+
let r = e[n];
|
|
93
|
+
t.registerAliases(typeof r == "string" ? r : [...r], { languageName: n });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function s(e) {
|
|
98
|
+
return !!t.getLanguage(e);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
var N = class {
|
|
102
|
+
constructor(e) {
|
|
103
|
+
this.options = e, this.root = {
|
|
104
|
+
type: "root",
|
|
105
|
+
children: [],
|
|
106
|
+
data: {
|
|
107
|
+
language: void 0,
|
|
108
|
+
relevance: 0
|
|
109
|
+
}
|
|
110
|
+
}, this.stack = [this.root];
|
|
111
|
+
}
|
|
112
|
+
addText(e) {
|
|
113
|
+
if (e === "") return;
|
|
114
|
+
let t = this.stack[this.stack.length - 1], n = t.children[t.children.length - 1];
|
|
115
|
+
n && n.type === "text" ? n.value += e : t.children.push({
|
|
116
|
+
type: "text",
|
|
117
|
+
value: e
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
startScope(e) {
|
|
121
|
+
this.openNode(String(e));
|
|
122
|
+
}
|
|
123
|
+
endScope() {
|
|
124
|
+
this.closeNode();
|
|
125
|
+
}
|
|
126
|
+
__addSublanguage(e, t) {
|
|
127
|
+
let n = this.stack[this.stack.length - 1], r = e.root.children;
|
|
128
|
+
t ? n.children.push({
|
|
129
|
+
type: "element",
|
|
130
|
+
tagName: "span",
|
|
131
|
+
properties: { className: [t] },
|
|
132
|
+
children: r
|
|
133
|
+
}) : n.children.push(...r);
|
|
134
|
+
}
|
|
135
|
+
openNode(e) {
|
|
136
|
+
let t = this, n = e.split(".").map(function(e, n) {
|
|
137
|
+
return n ? e + "_".repeat(n) : t.options.classPrefix + e;
|
|
138
|
+
}), r = this.stack[this.stack.length - 1], i = {
|
|
139
|
+
type: "element",
|
|
140
|
+
tagName: "span",
|
|
141
|
+
properties: { className: n },
|
|
142
|
+
children: []
|
|
143
|
+
};
|
|
144
|
+
r.children.push(i), this.stack.push(i);
|
|
145
|
+
}
|
|
146
|
+
closeNode() {
|
|
147
|
+
this.stack.pop();
|
|
148
|
+
}
|
|
149
|
+
finalize() {}
|
|
150
|
+
toHTML() {
|
|
151
|
+
return "";
|
|
152
|
+
}
|
|
153
|
+
}, P = /* @__PURE__ */ e({
|
|
154
|
+
default: () => L,
|
|
155
|
+
highlightjs: () => L
|
|
156
|
+
}), F = {
|
|
157
|
+
bash: r,
|
|
158
|
+
c: i,
|
|
159
|
+
cpp: a,
|
|
160
|
+
csharp: o,
|
|
161
|
+
css: s,
|
|
162
|
+
diff: c,
|
|
163
|
+
go: l,
|
|
164
|
+
ini: u,
|
|
165
|
+
java: d,
|
|
166
|
+
javascript: f,
|
|
167
|
+
json: p,
|
|
168
|
+
kotlin: m,
|
|
169
|
+
less: h,
|
|
170
|
+
lua: g,
|
|
171
|
+
markdown: _,
|
|
172
|
+
php: v,
|
|
173
|
+
python: y,
|
|
174
|
+
ruby: b,
|
|
175
|
+
rust: x,
|
|
176
|
+
scss: S,
|
|
177
|
+
shell: C,
|
|
178
|
+
sql: w,
|
|
179
|
+
swift: T,
|
|
180
|
+
typescript: E,
|
|
181
|
+
xml: D,
|
|
182
|
+
yaml: O
|
|
183
|
+
}, I = M();
|
|
184
|
+
for (let e of Object.keys(F)) I.register(e, F[e]);
|
|
185
|
+
I.registerAlias("javascript", ["js", "jsx"]), I.registerAlias("typescript", ["ts", "tsx"]), I.registerAlias("xml", ["html", "svg"]), I.registerAlias("bash", ["sh", "zsh"]);
|
|
186
|
+
var L = {
|
|
187
|
+
id: "highlight.js",
|
|
188
|
+
languages: Object.keys(F),
|
|
189
|
+
highlight(e, r) {
|
|
190
|
+
return !r || !I.registered(r) ? t(e, r) : {
|
|
191
|
+
language: r,
|
|
192
|
+
nodes: n(I.highlight(r, e).children)
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
export { P as n, L as t };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e, r as t, t as n } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
2
|
import { n as r, t as i } from "./diagnostics-CtHoJyiX.js";
|
|
3
3
|
import { n as a, t as o } from "./security-y4EwUyAs.js";
|
|
4
4
|
import { t as s } from "./objectSpread2-CtBNx0TF.js";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import "./default-ZQ5aHh-N.js";
|
|
6
|
+
import { r as c, t as l } from "./lib-CCnkLL6S.js";
|
|
7
|
+
import { c as u, d, f, g as p, h as m, l as h, m as g, n as _, p as v, r as y, s as b, t as x, u as S } from "./micromark-factory-space-CpXAnYUY.js";
|
|
8
|
+
import { a as C, c as w, i as T, n as E, o as D, r as O, s as k, t as A } from "./blank-line-CKKsFeKR.js";
|
|
8
9
|
import { t as j } from "./asyncToGenerator-ChigusFD.js";
|
|
9
10
|
// node_modules/bail/index.js
|
|
10
11
|
function M(e) {
|
|
11
12
|
if (e) throw e;
|
|
12
13
|
}
|
|
13
14
|
// node_modules/is-plain-obj/index.js
|
|
14
|
-
var N = /* @__PURE__ */
|
|
15
|
+
var N = /* @__PURE__ */ t((/* @__PURE__ */ n(((e, t) => {
|
|
15
16
|
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
16
17
|
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
17
18
|
}, s = function(e) {
|
|
@@ -3962,7 +3963,7 @@ function rn(e, t) {
|
|
|
3962
3963
|
return n.consume(e), e;
|
|
3963
3964
|
}
|
|
3964
3965
|
// node_modules/micromark/lib/constructs.js
|
|
3965
|
-
var an = /* @__PURE__ */
|
|
3966
|
+
var an = /* @__PURE__ */ e({
|
|
3966
3967
|
attentionMarkers: () => pn,
|
|
3967
3968
|
contentInitial: () => sn,
|
|
3968
3969
|
disable: () => mn,
|
|
@@ -6240,5 +6241,3 @@ function Ti(e, t, n = "") {
|
|
|
6240
6241
|
return `${t}\u001d${n}\u001d${e}`;
|
|
6241
6242
|
}
|
|
6242
6243
|
export { Ci as a, $ as c, bi as i, R as l, wi as n, xi as o, Si as r, yi as s, Ti as t };
|
|
6243
|
-
|
|
6244
|
-
//# sourceMappingURL=identity-jZEhX2d5.js.map
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { t as e } from "./objectSpread2-CtBNx0TF.js";
|
|
2
|
+
// node_modules/unist-util-stringify-position/lib/index.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? r(e.position) : "start" in e || "end" in e ? r(e) : "line" in e || "column" in e ? n(e) : "";
|
|
5
|
+
}
|
|
6
|
+
function n(e) {
|
|
7
|
+
return i(e && e.line) + ":" + i(e && e.column);
|
|
8
|
+
}
|
|
9
|
+
function r(e) {
|
|
10
|
+
return n(e && e.start) + "-" + n(e && e.end);
|
|
11
|
+
}
|
|
12
|
+
function i(e) {
|
|
13
|
+
return e && typeof e == "number" ? e : 1;
|
|
14
|
+
}
|
|
15
|
+
// node_modules/vfile-message/lib/index.js
|
|
16
|
+
var a = class extends Error {
|
|
17
|
+
constructor(n, r, i) {
|
|
18
|
+
super(), typeof r == "string" && (i = r, r = void 0);
|
|
19
|
+
let a = "", o = {}, s = !1;
|
|
20
|
+
if (r && (o = "line" in r && "column" in r || "start" in r && "end" in r ? { place: r } : "type" in r ? {
|
|
21
|
+
ancestors: [r],
|
|
22
|
+
place: r.position
|
|
23
|
+
} : e({}, r)), typeof n == "string" ? a = n : !o.cause && n && (s = !0, a = n.message, o.cause = n), !o.ruleId && !o.source && typeof i == "string") {
|
|
24
|
+
let e = i.indexOf(":");
|
|
25
|
+
e === -1 ? o.ruleId = i : (o.source = i.slice(0, e), o.ruleId = i.slice(e + 1));
|
|
26
|
+
}
|
|
27
|
+
if (!o.place && o.ancestors && o.ancestors) {
|
|
28
|
+
let e = o.ancestors[o.ancestors.length - 1];
|
|
29
|
+
e && (o.place = e.position);
|
|
30
|
+
}
|
|
31
|
+
let c = o.place && "start" in o.place ? o.place.start : o.place;
|
|
32
|
+
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = c ? c.column : void 0, this.fatal = void 0, this.file = "", this.message = a, this.line = c ? c.line : void 0, this.name = t(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = s && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
a.prototype.file = "", a.prototype.name = "", a.prototype.reason = "", a.prototype.message = "", a.prototype.stack = "", a.prototype.column = void 0, a.prototype.line = void 0, a.prototype.ancestors = void 0, a.prototype.cause = void 0, a.prototype.fatal = void 0, a.prototype.place = void 0, a.prototype.ruleId = void 0, a.prototype.source = void 0;
|
|
36
|
+
// node_modules/vfile/lib/minpath.browser.js
|
|
37
|
+
var o = {
|
|
38
|
+
basename: s,
|
|
39
|
+
dirname: c,
|
|
40
|
+
extname: l,
|
|
41
|
+
join: u,
|
|
42
|
+
sep: "/"
|
|
43
|
+
};
|
|
44
|
+
function s(e, t) {
|
|
45
|
+
if (t !== void 0 && typeof t != "string") throw TypeError("\"ext\" argument must be a string");
|
|
46
|
+
p(e);
|
|
47
|
+
let n = 0, r = -1, i = e.length, a;
|
|
48
|
+
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
49
|
+
for (; i--;) if (e.codePointAt(i) === 47) {
|
|
50
|
+
if (a) {
|
|
51
|
+
n = i + 1;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
} else r < 0 && (a = !0, r = i + 1);
|
|
55
|
+
return r < 0 ? "" : e.slice(n, r);
|
|
56
|
+
}
|
|
57
|
+
if (t === e) return "";
|
|
58
|
+
let o = -1, s = t.length - 1;
|
|
59
|
+
for (; i--;) if (e.codePointAt(i) === 47) {
|
|
60
|
+
if (a) {
|
|
61
|
+
n = i + 1;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
} else o < 0 && (a = !0, o = i + 1), s > -1 && (e.codePointAt(i) === t.codePointAt(s--) ? s < 0 && (r = i) : (s = -1, r = o));
|
|
65
|
+
return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
|
|
66
|
+
}
|
|
67
|
+
function c(e) {
|
|
68
|
+
if (p(e), e.length === 0) return ".";
|
|
69
|
+
let t = -1, n = e.length, r;
|
|
70
|
+
for (; --n;) if (e.codePointAt(n) === 47) {
|
|
71
|
+
if (r) {
|
|
72
|
+
t = n;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
} else r || (r = !0);
|
|
76
|
+
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
77
|
+
}
|
|
78
|
+
function l(e) {
|
|
79
|
+
p(e);
|
|
80
|
+
let t = e.length, n = -1, r = 0, i = -1, a = 0, o;
|
|
81
|
+
for (; t--;) {
|
|
82
|
+
let s = e.codePointAt(t);
|
|
83
|
+
if (s === 47) {
|
|
84
|
+
if (o) {
|
|
85
|
+
r = t + 1;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
} else n < 0 && (o = !0, n = t + 1), s === 46 ? i < 0 ? i = t : a !== 1 && (a = 1) : i > -1 && (a = -1);
|
|
89
|
+
}
|
|
90
|
+
return i < 0 || n < 0 || a === 0 || a === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
91
|
+
}
|
|
92
|
+
function u(...e) {
|
|
93
|
+
let t = -1, n;
|
|
94
|
+
for (; ++t < e.length;) p(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
95
|
+
return n === void 0 ? "." : d(n);
|
|
96
|
+
}
|
|
97
|
+
function d(e) {
|
|
98
|
+
p(e);
|
|
99
|
+
let t = e.codePointAt(0) === 47, n = f(e, !t);
|
|
100
|
+
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
101
|
+
}
|
|
102
|
+
function f(e, t) {
|
|
103
|
+
let n = "", r = 0, i = -1, a = 0, o = -1, s, c;
|
|
104
|
+
for (; ++o <= e.length;) {
|
|
105
|
+
if (o < e.length) s = e.codePointAt(o);
|
|
106
|
+
else if (s === 47) break;
|
|
107
|
+
else s = 47;
|
|
108
|
+
if (s === 47) {
|
|
109
|
+
if (i !== o - 1 && a !== 1) {
|
|
110
|
+
if (i !== o - 1 && a === 2) {
|
|
111
|
+
if (n.length < 2 || r !== 2 || n.codePointAt(n.length - 1) !== 46 || n.codePointAt(n.length - 2) !== 46) {
|
|
112
|
+
if (n.length > 2) {
|
|
113
|
+
if (c = n.lastIndexOf("/"), c !== n.length - 1) {
|
|
114
|
+
c < 0 ? (n = "", r = 0) : (n = n.slice(0, c), r = n.length - 1 - n.lastIndexOf("/")), i = o, a = 0;
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
} else if (n.length > 0) {
|
|
118
|
+
n = "", r = 0, i = o, a = 0;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
t && (n = n.length > 0 ? n + "/.." : "..", r = 2);
|
|
123
|
+
} else n.length > 0 ? n += "/" + e.slice(i + 1, o) : n = e.slice(i + 1, o), r = o - i - 1;
|
|
124
|
+
}
|
|
125
|
+
i = o, a = 0;
|
|
126
|
+
} else s === 46 && a > -1 ? a++ : a = -1;
|
|
127
|
+
}
|
|
128
|
+
return n;
|
|
129
|
+
}
|
|
130
|
+
function p(e) {
|
|
131
|
+
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
132
|
+
}
|
|
133
|
+
// node_modules/vfile/lib/minproc.browser.js
|
|
134
|
+
var m = { cwd: h };
|
|
135
|
+
function h() {
|
|
136
|
+
return "/";
|
|
137
|
+
}
|
|
138
|
+
// node_modules/vfile/lib/minurl.shared.js
|
|
139
|
+
function g(e) {
|
|
140
|
+
return !!(typeof e == "object" && e && "href" in e && e.href && "protocol" in e && e.protocol && e.auth === void 0);
|
|
141
|
+
}
|
|
142
|
+
// node_modules/vfile/lib/minurl.browser.js
|
|
143
|
+
function _(e) {
|
|
144
|
+
if (typeof e == "string") e = new URL(e);
|
|
145
|
+
else if (!g(e)) {
|
|
146
|
+
let t = /* @__PURE__ */ TypeError("The \"path\" argument must be of type string or an instance of URL. Received `" + e + "`");
|
|
147
|
+
throw t.code = "ERR_INVALID_ARG_TYPE", t;
|
|
148
|
+
}
|
|
149
|
+
if (e.protocol !== "file:") {
|
|
150
|
+
let e = /* @__PURE__ */ TypeError("The URL must be of scheme file");
|
|
151
|
+
throw e.code = "ERR_INVALID_URL_SCHEME", e;
|
|
152
|
+
}
|
|
153
|
+
return v(e);
|
|
154
|
+
}
|
|
155
|
+
function v(e) {
|
|
156
|
+
if (e.hostname !== "") {
|
|
157
|
+
let e = /* @__PURE__ */ TypeError("File URL host must be \"localhost\" or empty on darwin");
|
|
158
|
+
throw e.code = "ERR_INVALID_FILE_URL_HOST", e;
|
|
159
|
+
}
|
|
160
|
+
let t = e.pathname, n = -1;
|
|
161
|
+
for (; ++n < t.length;) if (t.codePointAt(n) === 37 && t.codePointAt(n + 1) === 50) {
|
|
162
|
+
let e = t.codePointAt(n + 2);
|
|
163
|
+
if (e === 70 || e === 102) {
|
|
164
|
+
let e = /* @__PURE__ */ TypeError("File URL path must not include encoded / characters");
|
|
165
|
+
throw e.code = "ERR_INVALID_FILE_URL_PATH", e;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return decodeURIComponent(t);
|
|
169
|
+
}
|
|
170
|
+
// node_modules/vfile/lib/index.js
|
|
171
|
+
var y = [
|
|
172
|
+
"history",
|
|
173
|
+
"path",
|
|
174
|
+
"basename",
|
|
175
|
+
"stem",
|
|
176
|
+
"extname",
|
|
177
|
+
"dirname"
|
|
178
|
+
], b = class {
|
|
179
|
+
constructor(e) {
|
|
180
|
+
let t;
|
|
181
|
+
t = e ? g(e) ? { path: e } : typeof e == "string" || w(e) ? { value: e } : e : {}, this.cwd = "cwd" in t ? "" : m.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
182
|
+
let n = -1;
|
|
183
|
+
for (; ++n < y.length;) {
|
|
184
|
+
let e = y[n];
|
|
185
|
+
e in t && t[e] !== void 0 && t[e] !== null && (this[e] = e === "history" ? [...t[e]] : t[e]);
|
|
186
|
+
}
|
|
187
|
+
let r;
|
|
188
|
+
for (r in t) y.includes(r) || (this[r] = t[r]);
|
|
189
|
+
}
|
|
190
|
+
get basename() {
|
|
191
|
+
return typeof this.path == "string" ? o.basename(this.path) : void 0;
|
|
192
|
+
}
|
|
193
|
+
set basename(e) {
|
|
194
|
+
S(e, "basename"), x(e, "basename"), this.path = o.join(this.dirname || "", e);
|
|
195
|
+
}
|
|
196
|
+
get dirname() {
|
|
197
|
+
return typeof this.path == "string" ? o.dirname(this.path) : void 0;
|
|
198
|
+
}
|
|
199
|
+
set dirname(e) {
|
|
200
|
+
C(this.basename, "dirname"), this.path = o.join(e || "", this.basename);
|
|
201
|
+
}
|
|
202
|
+
get extname() {
|
|
203
|
+
return typeof this.path == "string" ? o.extname(this.path) : void 0;
|
|
204
|
+
}
|
|
205
|
+
set extname(e) {
|
|
206
|
+
if (x(e, "extname"), C(this.dirname, "extname"), e) {
|
|
207
|
+
if (e.codePointAt(0) !== 46) throw Error("`extname` must start with `.`");
|
|
208
|
+
if (e.includes(".", 1)) throw Error("`extname` cannot contain multiple dots");
|
|
209
|
+
}
|
|
210
|
+
this.path = o.join(this.dirname, this.stem + (e || ""));
|
|
211
|
+
}
|
|
212
|
+
get path() {
|
|
213
|
+
return this.history[this.history.length - 1];
|
|
214
|
+
}
|
|
215
|
+
set path(e) {
|
|
216
|
+
g(e) && (e = _(e)), S(e, "path"), this.path !== e && this.history.push(e);
|
|
217
|
+
}
|
|
218
|
+
get stem() {
|
|
219
|
+
return typeof this.path == "string" ? o.basename(this.path, this.extname) : void 0;
|
|
220
|
+
}
|
|
221
|
+
set stem(e) {
|
|
222
|
+
S(e, "stem"), x(e, "stem"), this.path = o.join(this.dirname || "", e + (this.extname || ""));
|
|
223
|
+
}
|
|
224
|
+
fail(e, t, n) {
|
|
225
|
+
let r = this.message(e, t, n);
|
|
226
|
+
throw r.fatal = !0, r;
|
|
227
|
+
}
|
|
228
|
+
info(e, t, n) {
|
|
229
|
+
let r = this.message(e, t, n);
|
|
230
|
+
return r.fatal = void 0, r;
|
|
231
|
+
}
|
|
232
|
+
message(e, t, n) {
|
|
233
|
+
let r = new a(e, t, n);
|
|
234
|
+
return this.path && (r.name = this.path + ":" + r.name, r.file = this.path), r.fatal = !1, this.messages.push(r), r;
|
|
235
|
+
}
|
|
236
|
+
toString(e) {
|
|
237
|
+
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
function x(e, t) {
|
|
241
|
+
if (e && e.includes(o.sep)) throw Error("`" + t + "` cannot be a path: did not expect `" + o.sep + "`");
|
|
242
|
+
}
|
|
243
|
+
function S(e, t) {
|
|
244
|
+
if (!e) throw Error("`" + t + "` cannot be empty");
|
|
245
|
+
}
|
|
246
|
+
function C(e, t) {
|
|
247
|
+
if (!e) throw Error("Setting `" + t + "` requires `path` to be set too");
|
|
248
|
+
}
|
|
249
|
+
function w(e) {
|
|
250
|
+
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
251
|
+
}
|
|
252
|
+
export { a as n, t as r, b as t };
|
package/dist/chunks/{micromark-factory-space-Db040TnW.js → micromark-factory-space-CpXAnYUY.js}
RENAMED
|
@@ -65,9 +65,9 @@ function v() {
|
|
|
65
65
|
function y(e) {
|
|
66
66
|
return typeof e == "object" && !!e && "type" in e;
|
|
67
67
|
}
|
|
68
|
-
// node_modules/unist-util-visit-parents/lib/color.
|
|
68
|
+
// node_modules/unist-util-visit-parents/lib/color.js
|
|
69
69
|
function b(e) {
|
|
70
|
-
return
|
|
70
|
+
return e;
|
|
71
71
|
}
|
|
72
72
|
// node_modules/unist-util-visit-parents/lib/index.js
|
|
73
73
|
var x = [], S = "skip";
|
|
@@ -135,5 +135,3 @@ function D(e, t, n, r, i, a) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
export { u as _, C as a, t as c, i as d, a as f, l as g, c as h, S as i, n as l, s as m, D as n, p as o, o as p, T as r, e as s, E as t, r as u, d as v };
|
|
138
|
-
|
|
139
|
-
//# sourceMappingURL=micromark-factory-space-Db040TnW.js.map
|