@easyv/biz-components 0.0.3 → 0.0.5
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/_virtual/index.es2.js +2 -2
- package/dist/_virtual/index.es3.js +2 -2
- package/dist/_virtual/index.es4.js +2 -2
- package/dist/components/AiMessageRender/AiMessageRender.d.ts +5 -0
- package/dist/components/AiMessageRender/AiMessageRender.es.js +42 -37
- package/dist/components/AiMessageRender/AiMessageRender.es.js.map +1 -1
- package/dist/components/AiMessageRender/index.less.es.js +197 -0
- package/dist/components/AiMessageRender/index.less.es.js.map +1 -0
- package/dist/components/ShadowDom/ShadowDom.d.ts +2 -0
- package/dist/components/ShadowDom/ShadowDom.es.js +16 -14
- package/dist/components/ShadowDom/ShadowDom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js +64 -89
- package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js.map +1 -1
- package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js +13 -0
- package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js +9 -0
- package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js +13 -0
- package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js +76 -0
- package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js +71 -0
- package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js +131 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js +96 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +51 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js +136 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js +59 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js +30 -0
- package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js +31 -0
- package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js +16 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +14 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +45 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js +35 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +34 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +35 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js +11 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +28 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js +34 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js +45 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +23 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +28 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +51 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js +23 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js +36 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js +8 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +10 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +34 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +7 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js +10 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js +19 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js +12 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js +7 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js +38 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +10 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js +14 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +16 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js +16 -0
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js +194 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js +193 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js +68 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js +72 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js +24 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js +146 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js +46 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js.map +1 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js +19 -0
- package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
- package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js +14 -0
- package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +1 -1
- package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/package.json +5 -2
- package/dist/components/AiMessageRender/index.css.es.js +0 -17
- package/dist/components/AiMessageRender/index.css.es.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { checkQuote as c } from "../util/check-quote.es.js";
|
|
2
|
+
n.peek = v;
|
|
3
|
+
function n(o, a, t, u) {
|
|
4
|
+
const f = c(t), l = f === '"' ? "Quote" : "Apostrophe", m = t.enter("image");
|
|
5
|
+
let i = t.enter("label");
|
|
6
|
+
const e = t.createTracker(u);
|
|
7
|
+
let r = e.move("![");
|
|
8
|
+
return r += e.move(
|
|
9
|
+
t.safe(o.alt, { before: r, after: "]", ...e.current() })
|
|
10
|
+
), r += e.move("]("), i(), // If there’s no url but there is a title…
|
|
11
|
+
!o.url && o.title || // If there are control characters or whitespace.
|
|
12
|
+
/[\0- \u007F]/.test(o.url) ? (i = t.enter("destinationLiteral"), r += e.move("<"), r += e.move(
|
|
13
|
+
t.safe(o.url, { before: r, after: ">", ...e.current() })
|
|
14
|
+
), r += e.move(">")) : (i = t.enter("destinationRaw"), r += e.move(
|
|
15
|
+
t.safe(o.url, {
|
|
16
|
+
before: r,
|
|
17
|
+
after: o.title ? " " : ")",
|
|
18
|
+
...e.current()
|
|
19
|
+
})
|
|
20
|
+
)), i(), o.title && (i = t.enter(`title${l}`), r += e.move(" " + f), r += e.move(
|
|
21
|
+
t.safe(o.title, {
|
|
22
|
+
before: r,
|
|
23
|
+
after: f,
|
|
24
|
+
...e.current()
|
|
25
|
+
})
|
|
26
|
+
), r += e.move(f), i()), r += e.move(")"), m(), r;
|
|
27
|
+
}
|
|
28
|
+
function v() {
|
|
29
|
+
return "!";
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
n as image
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=image.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Image, Parents} from 'mdast'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\nimage.peek = imagePeek\n\n/**\n * @param {Image} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function image(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('image')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n value += tracker.move(\n state.safe(node.alt, {before: value, after: ']', ...tracker.current()})\n )\n value += tracker.move('](')\n\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n exit()\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imagePeek() {\n return '!'\n}\n"],"names":["image","imagePeek","node","_","state","info","quote","checkQuote","suffix","exit","subexit","tracker","value"],"mappings":";AAOAA,EAAM,OAAOC;AASN,SAASD,EAAME,GAAMC,GAAGC,GAAOC,GAAM;AAC1C,QAAMC,IAAQC,EAAWH,CAAK,GACxBI,IAASF,MAAU,MAAM,UAAU,cACnCG,IAAOL,EAAM,MAAM,OAAO;AAChC,MAAIM,IAAUN,EAAM,MAAM,OAAO;AACjC,QAAMO,IAAUP,EAAM,cAAcC,CAAI;AACxC,MAAIO,IAAQD,EAAQ,KAAK,IAAI;AAC7B,SAAAC,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK,EAAC,QAAQU,GAAO,OAAO,KAAK,GAAGD,EAAQ,QAAO,EAAE,CAAC;AAAA,EAC1E,GACEC,KAASD,EAAQ,KAAK,IAAI,GAE1BD,EAAO;AAAA,EAIJ,CAACR,EAAK,OAAOA,EAAK;AAAA,EAEnB,eAAe,KAAKA,EAAK,GAAG,KAE5BQ,IAAUN,EAAM,MAAM,oBAAoB,GAC1CQ,KAASD,EAAQ,KAAK,GAAG,GACzBC,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK,EAAC,QAAQU,GAAO,OAAO,KAAK,GAAGD,EAAQ,QAAO,EAAE,CAAC;AAAA,EAC5E,GACIC,KAASD,EAAQ,KAAK,GAAG,MAGzBD,IAAUN,EAAM,MAAM,gBAAgB,GACtCQ,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK;AAAA,MACnB,QAAQU;AAAA,MACR,OAAOV,EAAK,QAAQ,MAAM;AAAA,MAC1B,GAAGS,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACP,IAGED,EAAO,GAEHR,EAAK,UACPQ,IAAUN,EAAM,MAAM,QAAQI,CAAM,EAAE,GACtCI,KAASD,EAAQ,KAAK,MAAML,CAAK,GACjCM,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,OAAO;AAAA,MACrB,QAAQU;AAAA,MACR,OAAON;AAAA,MACP,GAAGK,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACP,GACIC,KAASD,EAAQ,KAAKL,CAAK,GAC3BI,EAAO,IAGTE,KAASD,EAAQ,KAAK,GAAG,GACzBF,EAAI,GAEGG;AACT;AAKA,SAASX,IAAY;AACnB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { blockquote as o } from "./blockquote.es.js";
|
|
2
|
+
import { hardBreak as r } from "./break.es.js";
|
|
3
|
+
import { code as m } from "./code.es.js";
|
|
4
|
+
import { definition as i } from "./definition.es.js";
|
|
5
|
+
import { emphasis as t } from "./emphasis.es.js";
|
|
6
|
+
import { heading as e } from "./heading.es.js";
|
|
7
|
+
import { html as p } from "./html.es.js";
|
|
8
|
+
import { image as f } from "./image.es.js";
|
|
9
|
+
import { imageReference as a } from "./image-reference.es.js";
|
|
10
|
+
import { inlineCode as n } from "./inline-code.es.js";
|
|
11
|
+
import { link as l } from "./link.es.js";
|
|
12
|
+
import { linkReference as h } from "./link-reference.es.js";
|
|
13
|
+
import { list as c } from "./list.es.js";
|
|
14
|
+
import { listItem as d } from "./list-item.es.js";
|
|
15
|
+
import { paragraph as k } from "./paragraph.es.js";
|
|
16
|
+
import { root as s } from "./root.es.js";
|
|
17
|
+
import { strong as g } from "./strong.es.js";
|
|
18
|
+
import { text as b } from "./text.es.js";
|
|
19
|
+
import { thematicBreak as x } from "./thematic-break.es.js";
|
|
20
|
+
const L = {
|
|
21
|
+
blockquote: o,
|
|
22
|
+
break: r,
|
|
23
|
+
code: m,
|
|
24
|
+
definition: i,
|
|
25
|
+
emphasis: t,
|
|
26
|
+
hardBreak: r,
|
|
27
|
+
heading: e,
|
|
28
|
+
html: p,
|
|
29
|
+
image: f,
|
|
30
|
+
imageReference: a,
|
|
31
|
+
inlineCode: n,
|
|
32
|
+
link: l,
|
|
33
|
+
linkReference: h,
|
|
34
|
+
list: c,
|
|
35
|
+
listItem: d,
|
|
36
|
+
paragraph: k,
|
|
37
|
+
root: s,
|
|
38
|
+
strong: g,
|
|
39
|
+
text: b,
|
|
40
|
+
thematicBreak: x
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
L as handle
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js"],"sourcesContent":["import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {definition} from './definition.js'\nimport {emphasis} from './emphasis.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {image} from './image.js'\nimport {imageReference} from './image-reference.js'\nimport {inlineCode} from './inline-code.js'\nimport {link} from './link.js'\nimport {linkReference} from './link-reference.js'\nimport {list} from './list.js'\nimport {listItem} from './list-item.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default (CommonMark) handlers.\n */\nexport const handle = {\n blockquote,\n break: hardBreak,\n code,\n definition,\n emphasis,\n hardBreak,\n heading,\n html,\n image,\n imageReference,\n inlineCode,\n link,\n linkReference,\n list,\n listItem,\n paragraph,\n root,\n strong,\n text,\n thematicBreak\n}\n"],"names":["handle","blockquote","hardBreak","code","definition","emphasis","heading","html","image","imageReference","inlineCode","link","linkReference","list","listItem","paragraph","root","strong","text","thematicBreak"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBY,MAACA,IAAS;AAAA,EACpB,YAAAC;AAAA,EACA,OAAOC;AAAA,EACP,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAH;AAAA,EACA,SAAAI;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,eAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,eAAAC;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
u.peek = a;
|
|
2
|
+
function u(c, d, i) {
|
|
3
|
+
let e = c.value || "", n = "`", o = -1;
|
|
4
|
+
for (; new RegExp("(^|[^`])" + n + "([^`]|$)").test(e); )
|
|
5
|
+
n += "`";
|
|
6
|
+
for (/[^ \r\n]/.test(e) && (/^[ \r\n]/.test(e) && /[ \r\n]$/.test(e) || /^`|`$/.test(e)) && (e = " " + e + " "); ++o < i.unsafe.length; ) {
|
|
7
|
+
const r = i.unsafe[o], s = i.compilePattern(r);
|
|
8
|
+
let l;
|
|
9
|
+
if (r.atBreak)
|
|
10
|
+
for (; l = s.exec(e); ) {
|
|
11
|
+
let t = l.index;
|
|
12
|
+
e.charCodeAt(t) === 10 && e.charCodeAt(t - 1) === 13 && t--, e = e.slice(0, t) + " " + e.slice(l.index + 1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return n + e + n;
|
|
16
|
+
}
|
|
17
|
+
function a() {
|
|
18
|
+
return "`";
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
u as inlineCode
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=inline-code.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-code.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {InlineCode, Parents} from 'mdast'\n */\n\ninlineCode.peek = inlineCodePeek\n\n/**\n * @param {InlineCode} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nexport function inlineCode(node, _, state) {\n let value = node.value || ''\n let sequence = '`'\n let index = -1\n\n // If there is a single grave accent on its own in the code, use a fence of\n // two.\n // If there are two in a row, use one.\n while (new RegExp('(^|[^`])' + sequence + '([^`]|$)').test(value)) {\n sequence += '`'\n }\n\n // If this is not just spaces or eols (tabs don’t count), and either the\n // first or last character are a space, eol, or tick, then pad with spaces.\n if (\n /[^ \\r\\n]/.test(value) &&\n ((/^[ \\r\\n]/.test(value) && /[ \\r\\n]$/.test(value)) || /^`|`$/.test(value))\n ) {\n value = ' ' + value + ' '\n }\n\n // We have a potential problem: certain characters after eols could result in\n // blocks being seen.\n // For example, if someone injected the string `'\\n# b'`, then that would\n // result in an ATX heading.\n // We can’t escape characters in `inlineCode`, but because eols are\n // transformed to spaces when going from markdown to HTML anyway, we can swap\n // them out.\n while (++index < state.unsafe.length) {\n const pattern = state.unsafe[index]\n const expression = state.compilePattern(pattern)\n /** @type {RegExpExecArray | null} */\n let match\n\n // Only look for `atBreak`s.\n // Btw: note that `atBreak` patterns will always start the regex at LF or\n // CR.\n if (!pattern.atBreak) continue\n\n while ((match = expression.exec(value))) {\n let position = match.index\n\n // Support CRLF (patterns only look for one of the characters).\n if (\n value.charCodeAt(position) === 10 /* `\\n` */ &&\n value.charCodeAt(position - 1) === 13 /* `\\r` */\n ) {\n position--\n }\n\n value = value.slice(0, position) + ' ' + value.slice(match.index + 1)\n }\n }\n\n return sequence + value + sequence\n}\n\n/**\n * @returns {string}\n */\nfunction inlineCodePeek() {\n return '`'\n}\n"],"names":["inlineCode","inlineCodePeek","node","_","state","value","sequence","index","pattern","expression","match","position"],"mappings":"AAKAA,EAAW,OAAOC;AAQX,SAASD,EAAWE,GAAMC,GAAGC,GAAO;AACzC,MAAIC,IAAQH,EAAK,SAAS,IACtBI,IAAW,KACXC,IAAQ;AAKZ,SAAO,IAAI,OAAO,aAAaD,IAAW,UAAU,EAAE,KAAKD,CAAK;AAC9D,IAAAC,KAAY;AAmBd,OAbE,WAAW,KAAKD,CAAK,MACnB,WAAW,KAAKA,CAAK,KAAK,WAAW,KAAKA,CAAK,KAAM,QAAQ,KAAKA,CAAK,OAEzEA,IAAQ,MAAMA,IAAQ,MAUjB,EAAEE,IAAQH,EAAM,OAAO,UAAQ;AACpC,UAAMI,IAAUJ,EAAM,OAAOG,CAAK,GAC5BE,IAAaL,EAAM,eAAeI,CAAO;AAE/C,QAAIE;AAKJ,QAAKF,EAAQ;AAEb,aAAQE,IAAQD,EAAW,KAAKJ,CAAK,KAAI;AACvC,YAAIM,IAAWD,EAAM;AAGrB,QACEL,EAAM,WAAWM,CAAQ,MAAM,MAC/BN,EAAM,WAAWM,IAAW,CAAC,MAAM,MAEnCA,KAGFN,IAAQA,EAAM,MAAM,GAAGM,CAAQ,IAAI,MAAMN,EAAM,MAAMK,EAAM,QAAQ,CAAC;AAAA,MAC1E;AAAA,EACA;AAEE,SAAOJ,IAAWD,IAAQC;AAC5B;AAKA,SAASL,IAAiB;AACxB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
u.peek = a;
|
|
2
|
+
function u(c, v, e, l) {
|
|
3
|
+
const f = c.referenceType, k = e.enter("linkReference");
|
|
4
|
+
let o = e.enter("label");
|
|
5
|
+
const n = e.createTracker(l);
|
|
6
|
+
let r = n.move("[");
|
|
7
|
+
const t = e.containerPhrasing(c, {
|
|
8
|
+
before: r,
|
|
9
|
+
after: "]",
|
|
10
|
+
...n.current()
|
|
11
|
+
});
|
|
12
|
+
r += n.move(t + "]["), o();
|
|
13
|
+
const s = e.stack;
|
|
14
|
+
e.stack = [], o = e.enter("reference");
|
|
15
|
+
const i = e.safe(e.associationId(c), {
|
|
16
|
+
before: r,
|
|
17
|
+
after: "]",
|
|
18
|
+
...n.current()
|
|
19
|
+
});
|
|
20
|
+
return o(), e.stack = s, k(), f === "full" || !t || t !== i ? r += n.move(i + "]") : f === "shortcut" ? r = r.slice(0, -1) : r += n.move("]"), r;
|
|
21
|
+
}
|
|
22
|
+
function a() {
|
|
23
|
+
return "[";
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
u as linkReference
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=link-reference.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-reference.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {LinkReference, Parents} from 'mdast'\n */\n\nlinkReference.peek = linkReferencePeek\n\n/**\n * @param {LinkReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function linkReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('linkReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n const text = state.containerPhrasing(node, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(text + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !text || text !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction linkReferencePeek() {\n return '['\n}\n"],"names":["linkReference","linkReferencePeek","node","_","state","info","type","exit","subexit","tracker","value","text","stack","reference"],"mappings":"AAKAA,EAAc,OAAOC;AASd,SAASD,EAAcE,GAAMC,GAAGC,GAAOC,GAAM;AAClD,QAAMC,IAAOJ,EAAK,eACZK,IAAOH,EAAM,MAAM,eAAe;AACxC,MAAII,IAAUJ,EAAM,MAAM,OAAO;AACjC,QAAMK,IAAUL,EAAM,cAAcC,CAAI;AACxC,MAAIK,IAAQD,EAAQ,KAAK,GAAG;AAC5B,QAAME,IAAOP,EAAM,kBAAkBF,GAAM;AAAA,IACzC,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACnB,CAAA;AACD,EAAAC,KAASD,EAAQ,KAAKE,IAAO,IAAI,GAEjCH,EAAO;AAEP,QAAMI,IAAQR,EAAM;AACpB,EAAAA,EAAM,QAAQ,CAAA,GACdI,IAAUJ,EAAM,MAAM,WAAW;AAKjC,QAAMS,IAAYT,EAAM,KAAKA,EAAM,cAAcF,CAAI,GAAG;AAAA,IACtD,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACnB,CAAA;AACD,SAAAD,EAAO,GACPJ,EAAM,QAAQQ,GACdL,EAAI,GAEAD,MAAS,UAAU,CAACK,KAAQA,MAASE,IACvCH,KAASD,EAAQ,KAAKI,IAAY,GAAG,IAC5BP,MAAS,aAElBI,IAAQA,EAAM,MAAM,GAAG,EAAE,IAEzBA,KAASD,EAAQ,KAAK,GAAG,GAGpBC;AACT;AAKA,SAAST,IAAoB;AAC3B,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { checkQuote as a } from "../util/check-quote.es.js";
|
|
2
|
+
import { formatLinkAsAutolink as f } from "../util/format-link-as-autolink.es.js";
|
|
3
|
+
b.peek = p;
|
|
4
|
+
function b(o, c, e, m) {
|
|
5
|
+
const n = a(e), v = n === '"' ? "Quote" : "Apostrophe", r = e.createTracker(m);
|
|
6
|
+
let l, i;
|
|
7
|
+
if (f(o, e)) {
|
|
8
|
+
const k = e.stack;
|
|
9
|
+
e.stack = [], l = e.enter("autolink");
|
|
10
|
+
let u = r.move("<");
|
|
11
|
+
return u += r.move(
|
|
12
|
+
e.containerPhrasing(o, {
|
|
13
|
+
before: u,
|
|
14
|
+
after: ">",
|
|
15
|
+
...r.current()
|
|
16
|
+
})
|
|
17
|
+
), u += r.move(">"), l(), e.stack = k, u;
|
|
18
|
+
}
|
|
19
|
+
l = e.enter("link"), i = e.enter("label");
|
|
20
|
+
let t = r.move("[");
|
|
21
|
+
return t += r.move(
|
|
22
|
+
e.containerPhrasing(o, {
|
|
23
|
+
before: t,
|
|
24
|
+
after: "](",
|
|
25
|
+
...r.current()
|
|
26
|
+
})
|
|
27
|
+
), t += r.move("]("), i(), // If there’s no url but there is a title…
|
|
28
|
+
!o.url && o.title || // If there are control characters or whitespace.
|
|
29
|
+
/[\0- \u007F]/.test(o.url) ? (i = e.enter("destinationLiteral"), t += r.move("<"), t += r.move(
|
|
30
|
+
e.safe(o.url, { before: t, after: ">", ...r.current() })
|
|
31
|
+
), t += r.move(">")) : (i = e.enter("destinationRaw"), t += r.move(
|
|
32
|
+
e.safe(o.url, {
|
|
33
|
+
before: t,
|
|
34
|
+
after: o.title ? " " : ")",
|
|
35
|
+
...r.current()
|
|
36
|
+
})
|
|
37
|
+
)), i(), o.title && (i = e.enter(`title${v}`), t += r.move(" " + n), t += r.move(
|
|
38
|
+
e.safe(o.title, {
|
|
39
|
+
before: t,
|
|
40
|
+
after: n,
|
|
41
|
+
...r.current()
|
|
42
|
+
})
|
|
43
|
+
), t += r.move(n), i()), t += r.move(")"), l(), t;
|
|
44
|
+
}
|
|
45
|
+
function p(o, c, e) {
|
|
46
|
+
return f(o, e) ? "<" : "[";
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as link
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=link.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Link, Parents} from 'mdast'\n * @import {Exit} from '../types.js'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\nimport {formatLinkAsAutolink} from '../util/format-link-as-autolink.js'\n\nlink.peek = linkPeek\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function link(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const tracker = state.createTracker(info)\n /** @type {Exit} */\n let exit\n /** @type {Exit} */\n let subexit\n\n if (formatLinkAsAutolink(node, state)) {\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n exit = state.enter('autolink')\n let value = tracker.move('<')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '>',\n ...tracker.current()\n })\n )\n value += tracker.move('>')\n exit()\n state.stack = stack\n return value\n }\n\n exit = state.enter('link')\n subexit = state.enter('label')\n let value = tracker.move('[')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '](',\n ...tracker.current()\n })\n )\n value += tracker.move('](')\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n\n exit()\n return value\n}\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nfunction linkPeek(node, _, state) {\n return formatLinkAsAutolink(node, state) ? '<' : '['\n}\n"],"names":["link","linkPeek","node","_","state","info","quote","checkQuote","suffix","tracker","exit","subexit","formatLinkAsAutolink","stack","value"],"mappings":";;AASAA,EAAK,OAAOC;AASL,SAASD,EAAKE,GAAMC,GAAGC,GAAOC,GAAM;AACzC,QAAMC,IAAQC,EAAWH,CAAK,GACxBI,IAASF,MAAU,MAAM,UAAU,cACnCG,IAAUL,EAAM,cAAcC,CAAI;AAExC,MAAIK,GAEAC;AAEJ,MAAIC,EAAqBV,GAAME,CAAK,GAAG;AAErC,UAAMS,IAAQT,EAAM;AACpB,IAAAA,EAAM,QAAQ,CAAA,GACdM,IAAON,EAAM,MAAM,UAAU;AAC7B,QAAIU,IAAQL,EAAQ,KAAK,GAAG;AAC5B,WAAAK,KAASL,EAAQ;AAAA,MACfL,EAAM,kBAAkBF,GAAM;AAAA,QAC5B,QAAQY;AAAA,QACR,OAAO;AAAA,QACP,GAAGL,EAAQ,QAAO;AAAA,MACnB,CAAA;AAAA,IACP,GACIK,KAASL,EAAQ,KAAK,GAAG,GACzBC,EAAI,GACJN,EAAM,QAAQS,GACPC;AAAA,EACX;AAEE,EAAAJ,IAAON,EAAM,MAAM,MAAM,GACzBO,IAAUP,EAAM,MAAM,OAAO;AAC7B,MAAIU,IAAQL,EAAQ,KAAK,GAAG;AAC5B,SAAAK,KAASL,EAAQ;AAAA,IACfL,EAAM,kBAAkBF,GAAM;AAAA,MAC5B,QAAQY;AAAA,MACR,OAAO;AAAA,MACP,GAAGL,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACL,GACEK,KAASL,EAAQ,KAAK,IAAI,GAC1BE,EAAO;AAAA,EAIJ,CAACT,EAAK,OAAOA,EAAK;AAAA,EAEnB,eAAe,KAAKA,EAAK,GAAG,KAE5BS,IAAUP,EAAM,MAAM,oBAAoB,GAC1CU,KAASL,EAAQ,KAAK,GAAG,GACzBK,KAASL,EAAQ;AAAA,IACfL,EAAM,KAAKF,EAAK,KAAK,EAAC,QAAQY,GAAO,OAAO,KAAK,GAAGL,EAAQ,QAAO,EAAE,CAAC;AAAA,EAC5E,GACIK,KAASL,EAAQ,KAAK,GAAG,MAGzBE,IAAUP,EAAM,MAAM,gBAAgB,GACtCU,KAASL,EAAQ;AAAA,IACfL,EAAM,KAAKF,EAAK,KAAK;AAAA,MACnB,QAAQY;AAAA,MACR,OAAOZ,EAAK,QAAQ,MAAM;AAAA,MAC1B,GAAGO,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACP,IAGEE,EAAO,GAEHT,EAAK,UACPS,IAAUP,EAAM,MAAM,QAAQI,CAAM,EAAE,GACtCM,KAASL,EAAQ,KAAK,MAAMH,CAAK,GACjCQ,KAASL,EAAQ;AAAA,IACfL,EAAM,KAAKF,EAAK,OAAO;AAAA,MACrB,QAAQY;AAAA,MACR,OAAOR;AAAA,MACP,GAAGG,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACP,GACIK,KAASL,EAAQ,KAAKH,CAAK,GAC3BK,EAAO,IAGTG,KAASL,EAAQ,KAAK,GAAG,GAEzBC,EAAI,GACGI;AACT;AAQA,SAASb,EAASC,GAAMC,GAAGC,GAAO;AAChC,SAAOQ,EAAqBV,GAAME,CAAK,IAAI,MAAM;AACnD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { checkBullet as I } from "../util/check-bullet.es.js";
|
|
2
|
+
import { checkListItemIndent as k } from "../util/check-list-item-indent.es.js";
|
|
3
|
+
function b(l, e, t, m) {
|
|
4
|
+
const c = k(t);
|
|
5
|
+
let r = t.bulletCurrent || I(t);
|
|
6
|
+
e && e.type === "list" && e.ordered && (r = (typeof e.start == "number" && e.start > -1 ? e.start : 1) + (t.options.incrementListMarker === !1 ? 0 : e.children.indexOf(l)) + r);
|
|
7
|
+
let i = r.length + 1;
|
|
8
|
+
(c === "tab" || c === "mixed" && (e && e.type === "list" && e.spread || l.spread)) && (i = Math.ceil(i / 4) * 4);
|
|
9
|
+
const n = t.createTracker(m);
|
|
10
|
+
n.move(r + " ".repeat(i - r.length)), n.shift(i);
|
|
11
|
+
const u = t.enter("listItem"), f = t.indentLines(
|
|
12
|
+
t.containerFlow(l, n.current()),
|
|
13
|
+
d
|
|
14
|
+
);
|
|
15
|
+
return u(), f;
|
|
16
|
+
function d(o, h, s) {
|
|
17
|
+
return h ? (s ? "" : " ".repeat(i)) + o : (s ? r : r + " ".repeat(i - r.length)) + o;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
b as listItem
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=list-item.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js"],"sourcesContent":["/**\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n * @import {ListItem, Parents} from 'mdast'\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkListItemIndent} from '../util/check-list-item-indent.js'\n\n/**\n * @param {ListItem} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function listItem(node, parent, state, info) {\n const listItemIndent = checkListItemIndent(state)\n let bullet = state.bulletCurrent || checkBullet(state)\n\n // Add the marker value for ordered lists.\n if (parent && parent.type === 'list' && parent.ordered) {\n bullet =\n (typeof parent.start === 'number' && parent.start > -1\n ? parent.start\n : 1) +\n (state.options.incrementListMarker === false\n ? 0\n : parent.children.indexOf(node)) +\n bullet\n }\n\n let size = bullet.length + 1\n\n if (\n listItemIndent === 'tab' ||\n (listItemIndent === 'mixed' &&\n ((parent && parent.type === 'list' && parent.spread) || node.spread))\n ) {\n size = Math.ceil(size / 4) * 4\n }\n\n const tracker = state.createTracker(info)\n tracker.move(bullet + ' '.repeat(size - bullet.length))\n tracker.shift(size)\n const exit = state.enter('listItem')\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n\n return value\n\n /** @type {Map} */\n function map(line, index, blank) {\n if (index) {\n return (blank ? '' : ' '.repeat(size)) + line\n }\n\n return (blank ? bullet : bullet + ' '.repeat(size - bullet.length)) + line\n }\n}\n"],"names":["listItem","node","parent","state","info","listItemIndent","checkListItemIndent","bullet","checkBullet","size","tracker","exit","value","map","line","index","blank"],"mappings":";;AAeO,SAASA,EAASC,GAAMC,GAAQC,GAAOC,GAAM;AAClD,QAAMC,IAAiBC,EAAoBH,CAAK;AAChD,MAAII,IAASJ,EAAM,iBAAiBK,EAAYL,CAAK;AAGrD,EAAID,KAAUA,EAAO,SAAS,UAAUA,EAAO,YAC7CK,KACG,OAAOL,EAAO,SAAU,YAAYA,EAAO,QAAQ,KAChDA,EAAO,QACP,MACHC,EAAM,QAAQ,wBAAwB,KACnC,IACAD,EAAO,SAAS,QAAQD,CAAI,KAChCM;AAGJ,MAAIE,IAAOF,EAAO,SAAS;AAE3B,GACEF,MAAmB,SAClBA,MAAmB,YAChBH,KAAUA,EAAO,SAAS,UAAUA,EAAO,UAAWD,EAAK,aAE/DQ,IAAO,KAAK,KAAKA,IAAO,CAAC,IAAI;AAG/B,QAAMC,IAAUP,EAAM,cAAcC,CAAI;AACxC,EAAAM,EAAQ,KAAKH,IAAS,IAAI,OAAOE,IAAOF,EAAO,MAAM,CAAC,GACtDG,EAAQ,MAAMD,CAAI;AAClB,QAAME,IAAOR,EAAM,MAAM,UAAU,GAC7BS,IAAQT,EAAM;AAAA,IAClBA,EAAM,cAAcF,GAAMS,EAAQ,QAAO,CAAE;AAAA,IAC3CG;AAAA,EACJ;AACE,SAAAF,EAAI,GAEGC;AAGP,WAASC,EAAIC,GAAMC,GAAOC,GAAO;AAC/B,WAAID,KACMC,IAAQ,KAAK,IAAI,OAAOP,CAAI,KAAKK,KAGnCE,IAAQT,IAASA,IAAS,IAAI,OAAOE,IAAOF,EAAO,MAAM,KAAKO;AAAA,EAC1E;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { checkBullet as o } from "../util/check-bullet.es.js";
|
|
2
|
+
import { checkBulletOther as b } from "../util/check-bullet-other.es.js";
|
|
3
|
+
import { checkBulletOrdered as x } from "../util/check-bullet-ordered.es.js";
|
|
4
|
+
import { checkRule as g } from "../util/check-rule.es.js";
|
|
5
|
+
function C(l, h, e, u) {
|
|
6
|
+
const d = e.enter("list"), k = e.bulletCurrent;
|
|
7
|
+
let r = l.ordered ? x(e) : o(e);
|
|
8
|
+
const f = l.ordered ? r === "." ? ")" : "." : b(e);
|
|
9
|
+
let n = h && e.bulletLastUsed ? r === e.bulletLastUsed : !1;
|
|
10
|
+
if (!l.ordered) {
|
|
11
|
+
const c = l.children ? l.children[0] : void 0;
|
|
12
|
+
if (
|
|
13
|
+
// Bullet could be used as a thematic break marker:
|
|
14
|
+
(r === "*" || r === "-") && // Empty first list item:
|
|
15
|
+
c && (!c.children || !c.children[0]) && // Directly in two other list items:
|
|
16
|
+
e.stack[e.stack.length - 1] === "list" && e.stack[e.stack.length - 2] === "listItem" && e.stack[e.stack.length - 3] === "list" && e.stack[e.stack.length - 4] === "listItem" && // That are each the first child.
|
|
17
|
+
e.indexStack[e.indexStack.length - 1] === 0 && e.indexStack[e.indexStack.length - 2] === 0 && e.indexStack[e.indexStack.length - 3] === 0 && (n = !0), g(e) === r && c
|
|
18
|
+
) {
|
|
19
|
+
let t = -1;
|
|
20
|
+
for (; ++t < l.children.length; ) {
|
|
21
|
+
const i = l.children[t];
|
|
22
|
+
if (i && i.type === "listItem" && i.children && i.children[0] && i.children[0].type === "thematicBreak") {
|
|
23
|
+
n = !0;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
n && (r = f), e.bulletCurrent = r;
|
|
30
|
+
const m = e.containerFlow(l, u);
|
|
31
|
+
return e.bulletLastUsed = r, e.bulletCurrent = k, d(), m;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
C as list
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=list.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {List, Parents} from 'mdast'\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkBulletOther} from '../util/check-bullet-other.js'\nimport {checkBulletOrdered} from '../util/check-bullet-ordered.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {List} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function list(node, parent, state, info) {\n const exit = state.enter('list')\n const bulletCurrent = state.bulletCurrent\n /** @type {string} */\n let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state)\n /** @type {string} */\n const bulletOther = node.ordered\n ? bullet === '.'\n ? ')'\n : '.'\n : checkBulletOther(state)\n let useDifferentMarker =\n parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false\n\n if (!node.ordered) {\n const firstListItem = node.children ? node.children[0] : undefined\n\n // If there’s an empty first list item directly in two list items,\n // we have to use a different bullet:\n //\n // ```markdown\n // * - *\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (\n // Bullet could be used as a thematic break marker:\n (bullet === '*' || bullet === '-') &&\n // Empty first list item:\n firstListItem &&\n (!firstListItem.children || !firstListItem.children[0]) &&\n // Directly in two other list items:\n state.stack[state.stack.length - 1] === 'list' &&\n state.stack[state.stack.length - 2] === 'listItem' &&\n state.stack[state.stack.length - 3] === 'list' &&\n state.stack[state.stack.length - 4] === 'listItem' &&\n // That are each the first child.\n state.indexStack[state.indexStack.length - 1] === 0 &&\n state.indexStack[state.indexStack.length - 2] === 0 &&\n state.indexStack[state.indexStack.length - 3] === 0\n ) {\n useDifferentMarker = true\n }\n\n // If there’s a thematic break at the start of the first list item,\n // we have to use a different bullet:\n //\n // ```markdown\n // * ---\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (checkRule(state) === bullet && firstListItem) {\n let index = -1\n\n while (++index < node.children.length) {\n const item = node.children[index]\n\n if (\n item &&\n item.type === 'listItem' &&\n item.children &&\n item.children[0] &&\n item.children[0].type === 'thematicBreak'\n ) {\n useDifferentMarker = true\n break\n }\n }\n }\n }\n\n if (useDifferentMarker) {\n bullet = bulletOther\n }\n\n state.bulletCurrent = bullet\n const value = state.containerFlow(node, info)\n state.bulletLastUsed = bullet\n state.bulletCurrent = bulletCurrent\n exit()\n return value\n}\n"],"names":["list","node","parent","state","info","exit","bulletCurrent","bullet","checkBulletOrdered","checkBullet","bulletOther","checkBulletOther","useDifferentMarker","firstListItem","checkRule","index","item","value"],"mappings":";;;;AAiBO,SAASA,EAAKC,GAAMC,GAAQC,GAAOC,GAAM;AAC9C,QAAMC,IAAOF,EAAM,MAAM,MAAM,GACzBG,IAAgBH,EAAM;AAE5B,MAAII,IAASN,EAAK,UAAUO,EAAmBL,CAAK,IAAIM,EAAYN,CAAK;AAEzE,QAAMO,IAAcT,EAAK,UACrBM,MAAW,MACT,MACA,MACFI,EAAiBR,CAAK;AAC1B,MAAIS,IACFV,KAAUC,EAAM,iBAAiBI,MAAWJ,EAAM,iBAAiB;AAErE,MAAI,CAACF,EAAK,SAAS;AACjB,UAAMY,IAAgBZ,EAAK,WAAWA,EAAK,SAAS,CAAC,IAAI;AAqCzD;AAAA;AAAA,OAzBGM,MAAW,OAAOA,MAAW;AAAA,MAE9BM,MACC,CAACA,EAAc,YAAY,CAACA,EAAc,SAAS,CAAC;AAAA,MAErDV,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM,UACxCA,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM,cACxCA,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM,UACxCA,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM;AAAA,MAExCA,EAAM,WAAWA,EAAM,WAAW,SAAS,CAAC,MAAM,KAClDA,EAAM,WAAWA,EAAM,WAAW,SAAS,CAAC,MAAM,KAClDA,EAAM,WAAWA,EAAM,WAAW,SAAS,CAAC,MAAM,MAElDS,IAAqB,KAWnBE,EAAUX,CAAK,MAAMI,KAAUM;AAAA,MAAe;AAChD,UAAIE,IAAQ;AAEZ,aAAO,EAAEA,IAAQd,EAAK,SAAS,UAAQ;AACrC,cAAMe,IAAOf,EAAK,SAASc,CAAK;AAEhC,YACEC,KACAA,EAAK,SAAS,cACdA,EAAK,YACLA,EAAK,SAAS,CAAC,KACfA,EAAK,SAAS,CAAC,EAAE,SAAS,iBAC1B;AACA,UAAAJ,IAAqB;AACrB;AAAA,QACV;AAAA,MACA;AAAA,IACA;AAAA,EACA;AAEE,EAAIA,MACFL,IAASG,IAGXP,EAAM,gBAAgBI;AACtB,QAAMU,IAAQd,EAAM,cAAcF,GAAMG,CAAI;AAC5C,SAAAD,EAAM,iBAAiBI,GACvBJ,EAAM,gBAAgBG,GACtBD,EAAI,GACGY;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Paragraph, Parents} from 'mdast'\n */\n\n/**\n * @param {Paragraph} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function paragraph(node, _, state, info) {\n const exit = state.enter('paragraph')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, info)\n subexit()\n exit()\n return value\n}\n"],"names":["paragraph","node","_","state","info","exit","subexit","value"],"mappings":"AAYO,SAASA,EAAUC,GAAMC,GAAGC,GAAOC,GAAM;AAC9C,QAAMC,IAAOF,EAAM,MAAM,WAAW,GAC9BG,IAAUH,EAAM,MAAM,UAAU,GAChCI,IAAQJ,EAAM,kBAAkBF,GAAMG,CAAI;AAChD,SAAAE,EAAO,GACPD,EAAI,GACGE;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { phrasing as c } from "../../../../../mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js";
|
|
2
|
+
function e(r, a, n, o) {
|
|
3
|
+
return (r.children.some(function(i) {
|
|
4
|
+
return c(i);
|
|
5
|
+
}) ? n.containerPhrasing : n.containerFlow).call(n, r, o);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
e as root
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=root.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Root} from 'mdast'\n */\n\nimport {phrasing} from 'mdast-util-phrasing'\n\n/**\n * @param {Root} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function root(node, _, state, info) {\n // Note: `html` nodes are ambiguous.\n const hasPhrasing = node.children.some(function (d) {\n return phrasing(d)\n })\n\n const container = hasPhrasing ? state.containerPhrasing : state.containerFlow\n return container.call(state, node, info)\n}\n"],"names":["root","node","_","state","info","d","phrasing"],"mappings":";AAcO,SAASA,EAAKC,GAAMC,GAAGC,GAAOC,GAAM;AAOzC,UALoBH,EAAK,SAAS,KAAK,SAAUI,GAAG;AAClD,WAAOC,EAASD,CAAC;AAAA,EAClB,CAAA,IAE+BF,EAAM,oBAAoBA,EAAM,eAC/C,KAAKA,GAAOF,GAAMG,CAAI;AACzC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { checkStrong as l } from "../util/check-strong.es.js";
|
|
2
|
+
import { encodeCharacterReference as m } from "../util/encode-character-reference.es.js";
|
|
3
|
+
import { encodeInfo as g } from "../util/encode-info.es.js";
|
|
4
|
+
p.peek = k;
|
|
5
|
+
function p(c, h, o, n) {
|
|
6
|
+
const r = l(o), u = o.enter("strong"), t = o.createTracker(n), i = t.move(r + r);
|
|
7
|
+
let e = t.move(
|
|
8
|
+
o.containerPhrasing(c, {
|
|
9
|
+
after: r,
|
|
10
|
+
before: i,
|
|
11
|
+
...t.current()
|
|
12
|
+
})
|
|
13
|
+
);
|
|
14
|
+
const s = e.charCodeAt(0), a = g(
|
|
15
|
+
n.before.charCodeAt(n.before.length - 1),
|
|
16
|
+
s,
|
|
17
|
+
r
|
|
18
|
+
);
|
|
19
|
+
a.inside && (e = m(s) + e.slice(1));
|
|
20
|
+
const f = e.charCodeAt(e.length - 1), d = g(n.after.charCodeAt(0), f, r);
|
|
21
|
+
d.inside && (e = e.slice(0, -1) + m(f));
|
|
22
|
+
const b = t.move(r + r);
|
|
23
|
+
return u(), o.attentionEncodeSurroundingInfo = {
|
|
24
|
+
after: d.outside,
|
|
25
|
+
before: a.outside
|
|
26
|
+
}, i + e + b;
|
|
27
|
+
}
|
|
28
|
+
function k(c, h, o) {
|
|
29
|
+
return o.options.strong || "*";
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
p as strong
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=strong.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strong.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Strong} from 'mdast'\n */\n\nimport {checkStrong} from '../util/check-strong.js'\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {encodeInfo} from '../util/encode-info.js'\n\nstrong.peek = strongPeek\n\n/**\n * @param {Strong} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function strong(node, _, state, info) {\n const marker = checkStrong(state)\n const exit = state.enter('strong')\n const tracker = state.createTracker(info)\n const before = tracker.move(marker + marker)\n\n let between = tracker.move(\n state.containerPhrasing(node, {\n after: marker,\n before,\n ...tracker.current()\n })\n )\n const betweenHead = between.charCodeAt(0)\n const open = encodeInfo(\n info.before.charCodeAt(info.before.length - 1),\n betweenHead,\n marker\n )\n\n if (open.inside) {\n between = encodeCharacterReference(betweenHead) + between.slice(1)\n }\n\n const betweenTail = between.charCodeAt(between.length - 1)\n const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)\n\n if (close.inside) {\n between = between.slice(0, -1) + encodeCharacterReference(betweenTail)\n }\n\n const after = tracker.move(marker + marker)\n\n exit()\n\n state.attentionEncodeSurroundingInfo = {\n after: close.outside,\n before: open.outside\n }\n return before + between + after\n}\n\n/**\n * @param {Strong} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction strongPeek(_, _1, state) {\n return state.options.strong || '*'\n}\n"],"names":["strong","strongPeek","node","_","state","info","marker","checkStrong","exit","tracker","before","between","betweenHead","open","encodeInfo","encodeCharacterReference","betweenTail","close","after","_1"],"mappings":";;;AASAA,EAAO,OAAOC;AASP,SAASD,EAAOE,GAAMC,GAAGC,GAAOC,GAAM;AAC3C,QAAMC,IAASC,EAAYH,CAAK,GAC1BI,IAAOJ,EAAM,MAAM,QAAQ,GAC3BK,IAAUL,EAAM,cAAcC,CAAI,GAClCK,IAASD,EAAQ,KAAKH,IAASA,CAAM;AAE3C,MAAIK,IAAUF,EAAQ;AAAA,IACpBL,EAAM,kBAAkBF,GAAM;AAAA,MAC5B,OAAOI;AAAA,MACP,QAAAI;AAAA,MACA,GAAGD,EAAQ,QAAO;AAAA,IACnB,CAAA;AAAA,EACL;AACE,QAAMG,IAAcD,EAAQ,WAAW,CAAC,GAClCE,IAAOC;AAAA,IACXT,EAAK,OAAO,WAAWA,EAAK,OAAO,SAAS,CAAC;AAAA,IAC7CO;AAAA,IACAN;AAAA,EACJ;AAEE,EAAIO,EAAK,WACPF,IAAUI,EAAyBH,CAAW,IAAID,EAAQ,MAAM,CAAC;AAGnE,QAAMK,IAAcL,EAAQ,WAAWA,EAAQ,SAAS,CAAC,GACnDM,IAAQH,EAAWT,EAAK,MAAM,WAAW,CAAC,GAAGW,GAAaV,CAAM;AAEtE,EAAIW,EAAM,WACRN,IAAUA,EAAQ,MAAM,GAAG,EAAE,IAAII,EAAyBC,CAAW;AAGvE,QAAME,IAAQT,EAAQ,KAAKH,IAASA,CAAM;AAE1C,SAAAE,EAAI,GAEJJ,EAAM,iCAAiC;AAAA,IACrC,OAAOa,EAAM;AAAA,IACb,QAAQJ,EAAK;AAAA,EACjB,GACSH,IAASC,IAAUO;AAC5B;AAQA,SAASjB,EAAWE,GAAGgB,GAAIf,GAAO;AAChC,SAAOA,EAAM,QAAQ,UAAU;AACjC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Text} from 'mdast'\n */\n\n/**\n * @param {Text} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function text(node, _, state, info) {\n return state.safe(node.value, info)\n}\n"],"names":["text","node","_","state","info"],"mappings":"AAYO,SAASA,EAAKC,GAAMC,GAAGC,GAAOC,GAAM;AACzC,SAAOD,EAAM,KAAKF,EAAK,OAAOG,CAAI;AACpC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { checkRuleRepetition as r } from "../util/check-rule-repetition.es.js";
|
|
2
|
+
import { checkRule as c } from "../util/check-rule.es.js";
|
|
3
|
+
function u(i, p, e) {
|
|
4
|
+
const o = (c(e) + (e.options.ruleSpaces ? " " : "")).repeat(r(e));
|
|
5
|
+
return e.options.ruleSpaces ? o.slice(0, -1) : o;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
u as thematicBreak
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=thematic-break.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thematic-break.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {Parents, ThematicBreak} from 'mdast'\n */\n\nimport {checkRuleRepetition} from '../util/check-rule-repetition.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {ThematicBreak} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nexport function thematicBreak(_, _1, state) {\n const value = (\n checkRule(state) + (state.options.ruleSpaces ? ' ' : '')\n ).repeat(checkRuleRepetition(state))\n\n return state.options.ruleSpaces ? value.slice(0, -1) : value\n}\n"],"names":["thematicBreak","_","_1","state","value","checkRule","checkRuleRepetition"],"mappings":";;AAcO,SAASA,EAAcC,GAAGC,GAAIC,GAAO;AAC1C,QAAMC,KACJC,EAAUF,CAAK,KAAKA,EAAM,QAAQ,aAAa,MAAM,KACrD,OAAOG,EAAoBH,CAAK,CAAC;AAEnC,SAAOA,EAAM,QAAQ,aAAaC,EAAM,MAAM,GAAG,EAAE,IAAIA;AACzD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function t(r) {
|
|
2
|
+
const e = r.options.bulletOrdered || ".";
|
|
3
|
+
if (e !== "." && e !== ")")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize items with `" + e + "` for `options.bulletOrdered`, expected `.` or `)`"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
t as checkBulletOrdered
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-bullet-ordered.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-bullet-ordered.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['bulletOrdered'], null | undefined>}\n */\nexport function checkBulletOrdered(state) {\n const marker = state.options.bulletOrdered || '.'\n\n if (marker !== '.' && marker !== ')') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bulletOrdered`, expected `.` or `)`'\n )\n }\n\n return marker\n}\n"],"names":["checkBulletOrdered","state","marker"],"mappings":"AAQO,SAASA,EAAmBC,GAAO;AACxC,QAAMC,IAASD,EAAM,QAAQ,iBAAiB;AAE9C,MAAIC,MAAW,OAAOA,MAAW;AAC/B,UAAM,IAAI;AAAA,MACR,kCACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { checkBullet as o } from "./check-bullet.es.js";
|
|
2
|
+
function n(r) {
|
|
3
|
+
const t = o(r), e = r.options.bulletOther;
|
|
4
|
+
if (!e)
|
|
5
|
+
return t === "*" ? "-" : "*";
|
|
6
|
+
if (e !== "*" && e !== "+" && e !== "-")
|
|
7
|
+
throw new Error(
|
|
8
|
+
"Cannot serialize items with `" + e + "` for `options.bulletOther`, expected `*`, `+`, or `-`"
|
|
9
|
+
);
|
|
10
|
+
if (e === t)
|
|
11
|
+
throw new Error(
|
|
12
|
+
"Expected `bullet` (`" + t + "`) and `bulletOther` (`" + e + "`) to be different"
|
|
13
|
+
);
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
n as checkBulletOther
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=check-bullet-other.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-bullet-other.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\nimport {checkBullet} from './check-bullet.js'\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['bullet'], null | undefined>}\n */\nexport function checkBulletOther(state) {\n const bullet = checkBullet(state)\n const bulletOther = state.options.bulletOther\n\n if (!bulletOther) {\n return bullet === '*' ? '-' : '*'\n }\n\n if (bulletOther !== '*' && bulletOther !== '+' && bulletOther !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n bulletOther +\n '` for `options.bulletOther`, expected `*`, `+`, or `-`'\n )\n }\n\n if (bulletOther === bullet) {\n throw new Error(\n 'Expected `bullet` (`' +\n bullet +\n '`) and `bulletOther` (`' +\n bulletOther +\n '`) to be different'\n )\n }\n\n return bulletOther\n}\n"],"names":["checkBulletOther","state","bullet","checkBullet","bulletOther"],"mappings":";AAUO,SAASA,EAAiBC,GAAO;AACtC,QAAMC,IAASC,EAAYF,CAAK,GAC1BG,IAAcH,EAAM,QAAQ;AAElC,MAAI,CAACG;AACH,WAAOF,MAAW,MAAM,MAAM;AAGhC,MAAIE,MAAgB,OAAOA,MAAgB,OAAOA,MAAgB;AAChE,UAAM,IAAI;AAAA,MACR,kCACEA,IACA;AAAA,IACR;AAGE,MAAIA,MAAgBF;AAClB,UAAM,IAAI;AAAA,MACR,yBACEA,IACA,4BACAE,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function o(t) {
|
|
2
|
+
const e = t.options.bullet || "*";
|
|
3
|
+
if (e !== "*" && e !== "+" && e !== "-")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize items with `" + e + "` for `options.bullet`, expected `*`, `+`, or `-`"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
o as checkBullet
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-bullet.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-bullet.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['bullet'], null | undefined>}\n */\nexport function checkBullet(state) {\n const marker = state.options.bullet || '*'\n\n if (marker !== '*' && marker !== '+' && marker !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bullet`, expected `*`, `+`, or `-`'\n )\n }\n\n return marker\n}\n"],"names":["checkBullet","state","marker"],"mappings":"AAQO,SAASA,EAAYC,GAAO;AACjC,QAAMC,IAASD,EAAM,QAAQ,UAAU;AAEvC,MAAIC,MAAW,OAAOA,MAAW,OAAOA,MAAW;AACjD,UAAM,IAAI;AAAA,MACR,kCACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function r(o) {
|
|
2
|
+
const e = o.options.emphasis || "*";
|
|
3
|
+
if (e !== "*" && e !== "_")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize emphasis with `" + e + "` for `options.emphasis`, expected `*`, or `_`"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
r as checkEmphasis
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-emphasis.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-emphasis.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['emphasis'], null | undefined>}\n */\nexport function checkEmphasis(state) {\n const marker = state.options.emphasis || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize emphasis with `' +\n marker +\n '` for `options.emphasis`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n"],"names":["checkEmphasis","state","marker"],"mappings":"AAQO,SAASA,EAAcC,GAAO;AACnC,QAAMC,IAASD,EAAM,QAAQ,YAAY;AAEzC,MAAIC,MAAW,OAAOA,MAAW;AAC/B,UAAM,IAAI;AAAA,MACR,qCACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function n(o) {
|
|
2
|
+
const e = o.options.fence || "`";
|
|
3
|
+
if (e !== "`" && e !== "~")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize code with `" + e + "` for `options.fence`, expected `` ` `` or `~`"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as checkFence
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-fence.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-fence.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['fence'], null | undefined>}\n */\nexport function checkFence(state) {\n const marker = state.options.fence || '`'\n\n if (marker !== '`' && marker !== '~') {\n throw new Error(\n 'Cannot serialize code with `' +\n marker +\n '` for `options.fence`, expected `` ` `` or `~`'\n )\n }\n\n return marker\n}\n"],"names":["checkFence","state","marker"],"mappings":"AAQO,SAASA,EAAWC,GAAO;AAChC,QAAMC,IAASD,EAAM,QAAQ,SAAS;AAEtC,MAAIC,MAAW,OAAOA,MAAW;AAC/B,UAAM,IAAI;AAAA,MACR,iCACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function n(e) {
|
|
2
|
+
const t = e.options.listItemIndent || "one";
|
|
3
|
+
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize items with `" + t + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`"
|
|
6
|
+
);
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as checkListItemIndent
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-list-item-indent.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-list-item-indent.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['listItemIndent'], null | undefined>}\n */\nexport function checkListItemIndent(state) {\n const style = state.options.listItemIndent || 'one'\n\n if (style !== 'tab' && style !== 'one' && style !== 'mixed') {\n throw new Error(\n 'Cannot serialize items with `' +\n style +\n '` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`'\n )\n }\n\n return style\n}\n"],"names":["checkListItemIndent","state","style"],"mappings":"AAQO,SAASA,EAAoBC,GAAO;AACzC,QAAMC,IAAQD,EAAM,QAAQ,kBAAkB;AAE9C,MAAIC,MAAU,SAASA,MAAU,SAASA,MAAU;AAClD,UAAM,IAAI;AAAA,MACR,kCACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function e(t) {
|
|
2
|
+
const o = t.options.quote || '"';
|
|
3
|
+
if (o !== '"' && o !== "'")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize title with `" + o + "` for `options.quote`, expected `\"`, or `'`"
|
|
6
|
+
);
|
|
7
|
+
return o;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
e as checkQuote
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-quote.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-quote.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['quote'], null | undefined>}\n */\nexport function checkQuote(state) {\n const marker = state.options.quote || '\"'\n\n if (marker !== '\"' && marker !== \"'\") {\n throw new Error(\n 'Cannot serialize title with `' +\n marker +\n '` for `options.quote`, expected `\"`, or `\\'`'\n )\n }\n\n return marker\n}\n"],"names":["checkQuote","state","marker"],"mappings":"AAQO,SAASA,EAAWC,GAAO;AAChC,QAAMC,IAASD,EAAM,QAAQ,SAAS;AAEtC,MAAIC,MAAW,OAAOA,MAAW;AAC/B,UAAM,IAAI;AAAA,MACR,kCACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function o(t) {
|
|
2
|
+
const e = t.options.ruleRepetition || 3;
|
|
3
|
+
if (e < 3)
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize rules with repetition `" + e + "` for `options.ruleRepetition`, expected `3` or more"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
o as checkRuleRepetition
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-rule-repetition.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-rule-repetition.es.js","sources":["../../../../../../../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js"],"sourcesContent":["/**\n * @import {Options, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {State} state\n * @returns {Exclude<Options['ruleRepetition'], null | undefined>}\n */\nexport function checkRuleRepetition(state) {\n const repetition = state.options.ruleRepetition || 3\n\n if (repetition < 3) {\n throw new Error(\n 'Cannot serialize rules with repetition `' +\n repetition +\n '` for `options.ruleRepetition`, expected `3` or more'\n )\n }\n\n return repetition\n}\n"],"names":["checkRuleRepetition","state","repetition"],"mappings":"AAQO,SAASA,EAAoBC,GAAO;AACzC,QAAMC,IAAaD,EAAM,QAAQ,kBAAkB;AAEnD,MAAIC,IAAa;AACf,UAAM,IAAI;AAAA,MACR,6CACEA,IACA;AAAA,IACR;AAGE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function o(e) {
|
|
2
|
+
const r = e.options.rule || "*";
|
|
3
|
+
if (r !== "*" && r !== "-" && r !== "_")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize rules with `" + r + "` for `options.rule`, expected `*`, `-`, or `_`"
|
|
6
|
+
);
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
o as checkRule
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=check-rule.es.js.map
|