@burdenoff/microfe-store 2026.720.2 → 2026.720.4
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/_rolldown/runtime.js +20 -0
- package/dist/components/MarkdownEditor.d.ts +12 -0
- package/dist/components/MarkdownEditor.js +117 -0
- package/dist/components/MarkdownEditor.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
- package/dist/node_modules/bail/index.js +8 -0
- package/dist/node_modules/bail/index.js.map +1 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
- package/dist/node_modules/devlop/lib/default.js +7 -0
- package/dist/node_modules/devlop/lib/default.js.map +1 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
- package/dist/node_modules/extend/index.js +42 -0
- package/dist/node_modules/extend/index.js.map +1 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
- package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
- package/dist/node_modules/is-plain-obj/index.js +10 -0
- package/dist/node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
- package/dist/node_modules/micromark/lib/constructs.js +82 -0
- package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
- package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
- package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
- package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
- package/dist/node_modules/micromark/lib/parse.js +31 -0
- package/dist/node_modules/micromark/lib/parse.js.map +1 -0
- package/dist/node_modules/micromark/lib/postprocess.js +10 -0
- package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
- package/dist/node_modules/micromark/lib/preprocess.js +34 -0
- package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
- package/dist/node_modules/micromark-factory-destination/index.js +28 -0
- package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-label/index.js +22 -0
- package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-space/index.js +16 -0
- package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
- package/dist/node_modules/micromark-util-character/index.js +26 -0
- package/dist/node_modules/micromark-util-character/index.js.map +1 -0
- package/dist/node_modules/micromark-util-chunked/index.js +13 -0
- package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
- package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
- package/dist/node_modules/property-information/index.js +28 -0
- package/dist/node_modules/property-information/index.js.map +1 -0
- package/dist/node_modules/property-information/lib/aria.js +63 -0
- package/dist/node_modules/property-information/lib/aria.js.map +1 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/find.js.map +1 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
- package/dist/node_modules/property-information/lib/html.js +328 -0
- package/dist/node_modules/property-information/lib/html.js.map +1 -0
- package/dist/node_modules/property-information/lib/normalize.js +8 -0
- package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/svg.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/create.js +16 -0
- package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/info.js +11 -0
- package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/merge.js +11 -0
- package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/schema.js +11 -0
- package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/types.js +18 -0
- package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
- package/dist/node_modules/property-information/lib/xlink.js +21 -0
- package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
- package/dist/node_modules/property-information/lib/xml.js +17 -0
- package/dist/node_modules/property-information/lib/xml.js.map +1 -0
- package/dist/node_modules/property-information/lib/xmlns.js +16 -0
- package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
- package/dist/node_modules/react-markdown/lib/index.js +142 -0
- package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
- package/dist/node_modules/remark-parse/lib/index.js +18 -0
- package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
- package/dist/node_modules/remark-rehype/lib/index.js +20 -0
- package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
- package/dist/node_modules/space-separated-tokens/index.js +8 -0
- package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
- package/dist/node_modules/style-to-js/cjs/index.js +21 -0
- package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/dist/node_modules/style-to-object/cjs/index.js +25 -0
- package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/dist/node_modules/trim-lines/index.js +23 -0
- package/dist/node_modules/trim-lines/index.js.map +1 -0
- package/dist/node_modules/trough/lib/index.js +52 -0
- package/dist/node_modules/trough/lib/index.js.map +1 -0
- package/dist/node_modules/unified/lib/callable-instance.js +11 -0
- package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
- package/dist/node_modules/unified/lib/index.js +163 -0
- package/dist/node_modules/unified/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.js +49 -0
- package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-position/lib/index.js +24 -0
- package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
- package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/dist/node_modules/vfile/lib/index.js +91 -0
- package/dist/node_modules/vfile/lib/index.js.map +1 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
- package/dist/node_modules/vfile-message/lib/index.js +26 -0
- package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
- package/dist/pages/AdminStoresPage.js +203 -207
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +173 -172
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +472 -422
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +104 -103
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../micromark-util-sanitize-uri/index.js";
|
|
2
|
+
import t from "../../@ungap/structured-clone/esm/index.js";
|
|
3
|
+
//#region node_modules/mdast-util-to-hast/lib/footer.js
|
|
4
|
+
function n(e, t) {
|
|
5
|
+
let n = [{
|
|
6
|
+
type: "text",
|
|
7
|
+
value: "↩"
|
|
8
|
+
}];
|
|
9
|
+
return t > 1 && n.push({
|
|
10
|
+
type: "element",
|
|
11
|
+
tagName: "sup",
|
|
12
|
+
properties: {},
|
|
13
|
+
children: [{
|
|
14
|
+
type: "text",
|
|
15
|
+
value: String(t)
|
|
16
|
+
}]
|
|
17
|
+
}), n;
|
|
18
|
+
}
|
|
19
|
+
function r(e, t) {
|
|
20
|
+
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
21
|
+
}
|
|
22
|
+
function i(i) {
|
|
23
|
+
let a = typeof i.options.clobberPrefix == "string" ? i.options.clobberPrefix : "user-content-", o = i.options.footnoteBackContent || n, s = i.options.footnoteBackLabel || r, c = i.options.footnoteLabel || "Footnotes", l = i.options.footnoteLabelTagName || "h2", u = i.options.footnoteLabelProperties || { className: ["sr-only"] }, d = [], f = -1;
|
|
24
|
+
for (; ++f < i.footnoteOrder.length;) {
|
|
25
|
+
let t = i.footnoteById.get(i.footnoteOrder[f]);
|
|
26
|
+
if (!t) continue;
|
|
27
|
+
let n = i.all(t), r = String(t.identifier).toUpperCase(), c = e(r.toLowerCase()), l = 0, u = [], p = i.footnoteCounts.get(r);
|
|
28
|
+
for (; p !== void 0 && ++l <= p;) {
|
|
29
|
+
u.length > 0 && u.push({
|
|
30
|
+
type: "text",
|
|
31
|
+
value: " "
|
|
32
|
+
});
|
|
33
|
+
let e = typeof o == "string" ? o : o(f, l);
|
|
34
|
+
typeof e == "string" && (e = {
|
|
35
|
+
type: "text",
|
|
36
|
+
value: e
|
|
37
|
+
}), u.push({
|
|
38
|
+
type: "element",
|
|
39
|
+
tagName: "a",
|
|
40
|
+
properties: {
|
|
41
|
+
href: "#" + a + "fnref-" + c + (l > 1 ? "-" + l : ""),
|
|
42
|
+
dataFootnoteBackref: "",
|
|
43
|
+
ariaLabel: typeof s == "string" ? s : s(f, l),
|
|
44
|
+
className: ["data-footnote-backref"]
|
|
45
|
+
},
|
|
46
|
+
children: Array.isArray(e) ? e : [e]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
let m = n[n.length - 1];
|
|
50
|
+
if (m && m.type === "element" && m.tagName === "p") {
|
|
51
|
+
let e = m.children[m.children.length - 1];
|
|
52
|
+
e && e.type === "text" ? e.value += " " : m.children.push({
|
|
53
|
+
type: "text",
|
|
54
|
+
value: " "
|
|
55
|
+
}), m.children.push(...u);
|
|
56
|
+
} else n.push(...u);
|
|
57
|
+
let h = {
|
|
58
|
+
type: "element",
|
|
59
|
+
tagName: "li",
|
|
60
|
+
properties: { id: a + "fn-" + c },
|
|
61
|
+
children: i.wrap(n, !0)
|
|
62
|
+
};
|
|
63
|
+
i.patch(t, h), d.push(h);
|
|
64
|
+
}
|
|
65
|
+
if (d.length !== 0) return {
|
|
66
|
+
type: "element",
|
|
67
|
+
tagName: "section",
|
|
68
|
+
properties: {
|
|
69
|
+
dataFootnotes: !0,
|
|
70
|
+
className: ["footnotes"]
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
{
|
|
74
|
+
type: "element",
|
|
75
|
+
tagName: l,
|
|
76
|
+
properties: {
|
|
77
|
+
...t(u),
|
|
78
|
+
id: "footnote-label"
|
|
79
|
+
},
|
|
80
|
+
children: [{
|
|
81
|
+
type: "text",
|
|
82
|
+
value: c
|
|
83
|
+
}]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: "text",
|
|
87
|
+
value: "\n"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "element",
|
|
91
|
+
tagName: "ol",
|
|
92
|
+
properties: {},
|
|
93
|
+
children: i.wrap(d, !0)
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "text",
|
|
97
|
+
value: "\n"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { i as footer };
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.js","names":["structuredClone"],"sources":["../../../../node_modules/mdast-util-to-hast/lib/footer.js"],"sourcesContent":["/**\n * @import {ElementContent, Element} from 'hast'\n * @import {State} from './state.js'\n */\n\n/**\n * @callback FootnoteBackContentTemplate\n * Generate content for the backreference dynamically.\n *\n * For the following markdown:\n *\n * ```markdown\n * Alpha[^micromark], bravo[^micromark], and charlie[^remark].\n *\n * [^remark]: things about remark\n * [^micromark]: things about micromark\n * ```\n *\n * This function will be called with:\n *\n * * `0` and `0` for the backreference from `things about micromark` to\n * `alpha`, as it is the first used definition, and the first call to it\n * * `0` and `1` for the backreference from `things about micromark` to\n * `bravo`, as it is the first used definition, and the second call to it\n * * `1` and `0` for the backreference from `things about remark` to\n * `charlie`, as it is the second used definition\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {Array<ElementContent> | ElementContent | string}\n * Content for the backreference when linking back from definitions to their\n * reference.\n *\n * @callback FootnoteBackLabelTemplate\n * Generate a back label dynamically.\n *\n * For the following markdown:\n *\n * ```markdown\n * Alpha[^micromark], bravo[^micromark], and charlie[^remark].\n *\n * [^remark]: things about remark\n * [^micromark]: things about micromark\n * ```\n *\n * This function will be called with:\n *\n * * `0` and `0` for the backreference from `things about micromark` to\n * `alpha`, as it is the first used definition, and the first call to it\n * * `0` and `1` for the backreference from `things about micromark` to\n * `bravo`, as it is the first used definition, and the second call to it\n * * `1` and `0` for the backreference from `things about remark` to\n * `charlie`, as it is the second used definition\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {string}\n * Back label to use when linking back from definitions to their reference.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Generate the default content that GitHub uses on backreferences.\n *\n * @param {number} _\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {Array<ElementContent>}\n * Content.\n */\nexport function defaultFootnoteBackContent(_, rereferenceIndex) {\n /** @type {Array<ElementContent>} */\n const result = [{type: 'text', value: '↩'}]\n\n if (rereferenceIndex > 1) {\n result.push({\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [{type: 'text', value: String(rereferenceIndex)}]\n })\n }\n\n return result\n}\n\n/**\n * Generate the default label that GitHub uses on backreferences.\n *\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {string}\n * Label.\n */\nexport function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n return (\n 'Back to reference ' +\n (referenceIndex + 1) +\n (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n )\n}\n\n/**\n * Generate a hast footer for called footnote definitions.\n *\n * @param {State} state\n * Info passed around.\n * @returns {Element | undefined}\n * `section` element or `undefined`.\n */\n// eslint-disable-next-line complexity\nexport function footer(state) {\n const clobberPrefix =\n typeof state.options.clobberPrefix === 'string'\n ? state.options.clobberPrefix\n : 'user-content-'\n const footnoteBackContent =\n state.options.footnoteBackContent || defaultFootnoteBackContent\n const footnoteBackLabel =\n state.options.footnoteBackLabel || defaultFootnoteBackLabel\n const footnoteLabel = state.options.footnoteLabel || 'Footnotes'\n const footnoteLabelTagName = state.options.footnoteLabelTagName || 'h2'\n const footnoteLabelProperties = state.options.footnoteLabelProperties || {\n className: ['sr-only']\n }\n /** @type {Array<ElementContent>} */\n const listItems = []\n let referenceIndex = -1\n\n while (++referenceIndex < state.footnoteOrder.length) {\n const definition = state.footnoteById.get(\n state.footnoteOrder[referenceIndex]\n )\n\n if (!definition) {\n continue\n }\n\n const content = state.all(definition)\n const id = String(definition.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n let rereferenceIndex = 0\n /** @type {Array<ElementContent>} */\n const backReferences = []\n const counts = state.footnoteCounts.get(id)\n\n // eslint-disable-next-line no-unmodified-loop-condition\n while (counts !== undefined && ++rereferenceIndex <= counts) {\n if (backReferences.length > 0) {\n backReferences.push({type: 'text', value: ' '})\n }\n\n let children =\n typeof footnoteBackContent === 'string'\n ? footnoteBackContent\n : footnoteBackContent(referenceIndex, rereferenceIndex)\n\n if (typeof children === 'string') {\n children = {type: 'text', value: children}\n }\n\n backReferences.push({\n type: 'element',\n tagName: 'a',\n properties: {\n href:\n '#' +\n clobberPrefix +\n 'fnref-' +\n safeId +\n (rereferenceIndex > 1 ? '-' + rereferenceIndex : ''),\n dataFootnoteBackref: '',\n ariaLabel:\n typeof footnoteBackLabel === 'string'\n ? footnoteBackLabel\n : footnoteBackLabel(referenceIndex, rereferenceIndex),\n className: ['data-footnote-backref']\n },\n children: Array.isArray(children) ? children : [children]\n })\n }\n\n const tail = content[content.length - 1]\n\n if (tail && tail.type === 'element' && tail.tagName === 'p') {\n const tailTail = tail.children[tail.children.length - 1]\n if (tailTail && tailTail.type === 'text') {\n tailTail.value += ' '\n } else {\n tail.children.push({type: 'text', value: ' '})\n }\n\n tail.children.push(...backReferences)\n } else {\n content.push(...backReferences)\n }\n\n /** @type {Element} */\n const listItem = {\n type: 'element',\n tagName: 'li',\n properties: {id: clobberPrefix + 'fn-' + safeId},\n children: state.wrap(content, true)\n }\n\n state.patch(definition, listItem)\n\n listItems.push(listItem)\n }\n\n if (listItems.length === 0) {\n return\n }\n\n return {\n type: 'element',\n tagName: 'section',\n properties: {dataFootnotes: true, className: ['footnotes']},\n children: [\n {\n type: 'element',\n tagName: footnoteLabelTagName,\n properties: {\n ...structuredClone(footnoteLabelProperties),\n id: 'footnote-label'\n },\n children: [{type: 'text', value: footnoteLabel}]\n },\n {type: 'text', value: '\\n'},\n {\n type: 'element',\n tagName: 'ol',\n properties: {},\n children: state.wrap(listItems, true)\n },\n {type: 'text', value: '\\n'}\n ]\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AA8EA,SAAgB,EAA2B,GAAG,GAAkB;CAE9D,IAAM,IAAS,CAAC;EAAC,MAAM;EAAQ,OAAO;EAAI,CAAC;AAW3C,QATI,IAAmB,KACrB,EAAO,KAAK;EACV,MAAM;EACN,SAAS;EACT,YAAY,EAAE;EACd,UAAU,CAAC;GAAC,MAAM;GAAQ,OAAO,OAAO,EAAiB;GAAC,CAAC;EAC5D,CAAC,EAGG;;AAcT,SAAgB,EAAyB,GAAgB,GAAkB;AACzE,QACE,wBACC,IAAiB,MACjB,IAAmB,IAAI,MAAM,IAAmB;;AAarD,SAAgB,EAAO,GAAO;CAC5B,IAAM,IACJ,OAAO,EAAM,QAAQ,iBAAkB,WACnC,EAAM,QAAQ,gBACd,iBACA,IACJ,EAAM,QAAQ,uBAAuB,GACjC,IACJ,EAAM,QAAQ,qBAAqB,GAC/B,IAAgB,EAAM,QAAQ,iBAAiB,aAC/C,IAAuB,EAAM,QAAQ,wBAAwB,MAC7D,IAA0B,EAAM,QAAQ,2BAA2B,EACvE,WAAW,CAAC,UAAU,EACvB,EAEK,IAAY,EAAE,EAChB,IAAiB;AAErB,QAAO,EAAE,IAAiB,EAAM,cAAc,SAAQ;EACpD,IAAM,IAAa,EAAM,aAAa,IACpC,EAAM,cAAc,GACrB;AAED,MAAI,CAAC,EACH;EAGF,IAAM,IAAU,EAAM,IAAI,EAAW,EAC/B,IAAK,OAAO,EAAW,WAAW,CAAC,aAAa,EAChD,IAAS,EAAa,EAAG,aAAa,CAAC,EACzC,IAAmB,GAEjB,IAAiB,EAAE,EACnB,IAAS,EAAM,eAAe,IAAI,EAAG;AAG3C,SAAO,MAAW,KAAA,KAAa,EAAE,KAAoB,IAAQ;AAC3D,GAAI,EAAe,SAAS,KAC1B,EAAe,KAAK;IAAC,MAAM;IAAQ,OAAO;IAAI,CAAC;GAGjD,IAAI,IACF,OAAO,KAAwB,WAC3B,IACA,EAAoB,GAAgB,EAAiB;AAM3D,GAJI,OAAO,KAAa,aACtB,IAAW;IAAC,MAAM;IAAQ,OAAO;IAAS,GAG5C,EAAe,KAAK;IAClB,MAAM;IACN,SAAS;IACT,YAAY;KACV,MACE,MACA,IACA,WACA,KACC,IAAmB,IAAI,MAAM,IAAmB;KACnD,qBAAqB;KACrB,WACE,OAAO,KAAsB,WACzB,IACA,EAAkB,GAAgB,EAAiB;KACzD,WAAW,CAAC,wBAAwB;KACrC;IACD,UAAU,MAAM,QAAQ,EAAS,GAAG,IAAW,CAAC,EAAS;IAC1D,CAAC;;EAGJ,IAAM,IAAO,EAAQ,EAAQ,SAAS;AAEtC,MAAI,KAAQ,EAAK,SAAS,aAAa,EAAK,YAAY,KAAK;GAC3D,IAAM,IAAW,EAAK,SAAS,EAAK,SAAS,SAAS;AAOtD,GANI,KAAY,EAAS,SAAS,SAChC,EAAS,SAAS,MAElB,EAAK,SAAS,KAAK;IAAC,MAAM;IAAQ,OAAO;IAAI,CAAC,EAGhD,EAAK,SAAS,KAAK,GAAG,EAAe;QAErC,GAAQ,KAAK,GAAG,EAAe;EAIjC,IAAM,IAAW;GACf,MAAM;GACN,SAAS;GACT,YAAY,EAAC,IAAI,IAAgB,QAAQ,GAAO;GAChD,UAAU,EAAM,KAAK,GAAS,GAAK;GACpC;AAID,EAFA,EAAM,MAAM,GAAY,EAAS,EAEjC,EAAU,KAAK,EAAS;;AAGtB,OAAU,WAAW,EAIzB,QAAO;EACL,MAAM;EACN,SAAS;EACT,YAAY;GAAC,eAAe;GAAM,WAAW,CAAC,YAAY;GAAC;EAC3D,UAAU;GACR;IACE,MAAM;IACN,SAAS;IACT,YAAY;KACV,GAAGA,EAAgB,EAAwB;KAC3C,IAAI;KACL;IACD,UAAU,CAAC;KAAC,MAAM;KAAQ,OAAO;KAAc,CAAC;IACjD;GACD;IAAC,MAAM;IAAQ,OAAO;IAAK;GAC3B;IACE,MAAM;IACN,SAAS;IACT,YAAY,EAAE;IACd,UAAU,EAAM,KAAK,GAAW,GAAK;IACtC;GACD;IAAC,MAAM;IAAQ,OAAO;IAAK;GAC5B;EACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "blockquote",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.wrap(e.all(t), !0)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as blockquote };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=blockquote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockquote.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/blockquote.js"],"sourcesContent":["/**\n * @import {Element} from 'hast'\n * @import {Blockquote} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `blockquote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Blockquote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function blockquote(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'blockquote',\n properties: {},\n children: state.wrap(state.all(node), true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAW,GAAO,GAAM;CAEtC,IAAM,IAAS;EACb,MAAM;EACN,SAAS;EACT,YAAY,EAAE;EACd,UAAU,EAAM,KAAK,EAAM,IAAI,EAAK,EAAE,GAAK;EAC5C;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/break.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "br",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: []
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), [e.applyData(t, n), {
|
|
10
|
+
type: "text",
|
|
11
|
+
value: "\n"
|
|
12
|
+
}];
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as hardBreak };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=break.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"break.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/break.js"],"sourcesContent":["/**\n * @import {Element, Text} from 'hast'\n * @import {Break} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `break` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Break} node\n * mdast node.\n * @returns {Array<Element | Text>}\n * hast element content.\n */\nexport function hardBreak(state, node) {\n /** @type {Element} */\n const result = {type: 'element', tagName: 'br', properties: {}, children: []}\n state.patch(node, result)\n return [state.applyData(node, result), {type: 'text', value: '\\n'}]\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAU,GAAO,GAAM;CAErC,IAAM,IAAS;EAAC,MAAM;EAAW,SAAS;EAAM,YAAY,EAAE;EAAE,UAAU,EAAE;EAAC;AAE7E,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,CAAC,EAAM,UAAU,GAAM,EAAO,EAAE;EAAC,MAAM;EAAQ,OAAO;EAAK,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/code.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = t.value ? t.value + "\n" : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
|
|
4
|
+
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
5
|
+
let a = {
|
|
6
|
+
type: "element",
|
|
7
|
+
tagName: "code",
|
|
8
|
+
properties: r,
|
|
9
|
+
children: [{
|
|
10
|
+
type: "text",
|
|
11
|
+
value: n
|
|
12
|
+
}]
|
|
13
|
+
};
|
|
14
|
+
return t.meta && (a.data = { meta: t.meta }), e.patch(t, a), a = e.applyData(t, a), a = {
|
|
15
|
+
type: "element",
|
|
16
|
+
tagName: "pre",
|
|
17
|
+
properties: {},
|
|
18
|
+
children: [a]
|
|
19
|
+
}, e.patch(t, a), a;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { e as code };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/code.js"],"sourcesContent":["/**\n * @import {Element, Properties} from 'hast'\n * @import {Code} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `code` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Code} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function code(state, node) {\n const value = node.value ? node.value + '\\n' : ''\n /** @type {Properties} */\n const properties = {}\n // Someone can write `js python	ruby`.\n const language = node.lang ? node.lang.split(/\\s+/) : []\n\n // GH/CM still drop the non-first languages.\n if (language.length > 0) {\n properties.className = ['language-' + language[0]]\n }\n\n // Create `<code>`.\n /** @type {Element} */\n let result = {\n type: 'element',\n tagName: 'code',\n properties,\n children: [{type: 'text', value}]\n }\n\n if (node.meta) {\n result.data = {meta: node.meta}\n }\n\n state.patch(node, result)\n result = state.applyData(node, result)\n\n // Create `<pre>`.\n result = {type: 'element', tagName: 'pre', properties: {}, children: [result]}\n state.patch(node, result)\n return result\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAK,GAAO,GAAM;CAChC,IAAM,IAAQ,EAAK,QAAQ,EAAK,QAAQ,OAAO,IAEzC,IAAa,EAAE,EAEf,IAAW,EAAK,OAAO,EAAK,KAAK,MAAM,MAAM,GAAG,EAAE;AAGxD,CAAI,EAAS,SAAS,MACpB,EAAW,YAAY,CAAC,cAAc,EAAS,GAAG;CAKpD,IAAI,IAAS;EACX,MAAM;EACN,SAAS;EACT;EACA,UAAU,CAAC;GAAC,MAAM;GAAQ;GAAM,CAAC;EAClC;AAYD,QAVI,EAAK,SACP,EAAO,OAAO,EAAC,MAAM,EAAK,MAAK,GAGjC,EAAM,MAAM,GAAM,EAAO,EACzB,IAAS,EAAM,UAAU,GAAM,EAAO,EAGtC,IAAS;EAAC,MAAM;EAAW,SAAS;EAAO,YAAY,EAAE;EAAE,UAAU,CAAC,EAAO;EAAC,EAC9E,EAAM,MAAM,GAAM,EAAO,EAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/delete.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "del",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as strikethrough };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/delete.js"],"sourcesContent":["/**\n * @import {Element} from 'hast'\n * @import {Delete} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `delete` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Delete} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function strikethrough(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'del',\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAc,GAAO,GAAM;CAEzC,IAAM,IAAS;EACb,MAAM;EACN,SAAS;EACT,YAAY,EAAE;EACd,UAAU,EAAM,IAAI,EAAK;EAC1B;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "em",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as emphasis };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=emphasis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emphasis.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/emphasis.js"],"sourcesContent":["/**\n * @import {Element} from 'hast'\n * @import {Emphasis} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `emphasis` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Emphasis} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function emphasis(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'em',\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAS,GAAO,GAAM;CAEpC,IAAM,IAAS;EACb,MAAM;EACN,SAAS;EACT,YAAY,EAAE;EACd,UAAU,EAAM,IAAI,EAAK;EAC1B;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
|
|
2
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = typeof t.options.clobberPrefix == "string" ? t.options.clobberPrefix : "user-content-", i = String(n.identifier).toUpperCase(), a = e(i.toLowerCase()), o = t.footnoteOrder.indexOf(i), s, c = t.footnoteCounts.get(i);
|
|
5
|
+
c === void 0 ? (c = 0, t.footnoteOrder.push(i), s = t.footnoteOrder.length) : s = o + 1, c += 1, t.footnoteCounts.set(i, c);
|
|
6
|
+
let l = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "a",
|
|
9
|
+
properties: {
|
|
10
|
+
href: "#" + r + "fn-" + a,
|
|
11
|
+
id: r + "fnref-" + a + (c > 1 ? "-" + c : ""),
|
|
12
|
+
dataFootnoteRef: !0,
|
|
13
|
+
ariaDescribedBy: ["footnote-label"]
|
|
14
|
+
},
|
|
15
|
+
children: [{
|
|
16
|
+
type: "text",
|
|
17
|
+
value: String(s)
|
|
18
|
+
}]
|
|
19
|
+
};
|
|
20
|
+
t.patch(n, l);
|
|
21
|
+
let u = {
|
|
22
|
+
type: "element",
|
|
23
|
+
tagName: "sup",
|
|
24
|
+
properties: {},
|
|
25
|
+
children: [l]
|
|
26
|
+
};
|
|
27
|
+
return t.patch(n, u), t.applyData(n, u);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as footnoteReference };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=footnote-reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footnote-reference.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js"],"sourcesContent":["/**\n * @import {Element} from 'hast'\n * @import {FootnoteReference} from 'mdast'\n * @import {State} from '../state.js'\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `footnoteReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {FootnoteReference} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function footnoteReference(state, node) {\n const clobberPrefix =\n typeof state.options.clobberPrefix === 'string'\n ? state.options.clobberPrefix\n : 'user-content-'\n const id = String(node.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n const index = state.footnoteOrder.indexOf(id)\n /** @type {number} */\n let counter\n\n let reuseCounter = state.footnoteCounts.get(id)\n\n if (reuseCounter === undefined) {\n reuseCounter = 0\n state.footnoteOrder.push(id)\n counter = state.footnoteOrder.length\n } else {\n counter = index + 1\n }\n\n reuseCounter += 1\n state.footnoteCounts.set(id, reuseCounter)\n\n /** @type {Element} */\n const link = {\n type: 'element',\n tagName: 'a',\n properties: {\n href: '#' + clobberPrefix + 'fn-' + safeId,\n id:\n clobberPrefix +\n 'fnref-' +\n safeId +\n (reuseCounter > 1 ? '-' + reuseCounter : ''),\n dataFootnoteRef: true,\n ariaDescribedBy: ['footnote-label']\n },\n children: [{type: 'text', value: String(counter)}]\n }\n state.patch(node, link)\n\n /** @type {Element} */\n const sup = {\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [link]\n }\n state.patch(node, sup)\n return state.applyData(node, sup)\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBA,SAAgB,EAAkB,GAAO,GAAM;CAC7C,IAAM,IACJ,OAAO,EAAM,QAAQ,iBAAkB,WACnC,EAAM,QAAQ,gBACd,iBACA,IAAK,OAAO,EAAK,WAAW,CAAC,aAAa,EAC1C,IAAS,EAAa,EAAG,aAAa,CAAC,EACvC,IAAQ,EAAM,cAAc,QAAQ,EAAG,EAEzC,GAEA,IAAe,EAAM,eAAe,IAAI,EAAG;AAW/C,CATI,MAAiB,KAAA,KACnB,IAAe,GACf,EAAM,cAAc,KAAK,EAAG,EAC5B,IAAU,EAAM,cAAc,UAE9B,IAAU,IAAQ,GAGpB,KAAgB,GAChB,EAAM,eAAe,IAAI,GAAI,EAAa;CAG1C,IAAM,IAAO;EACX,MAAM;EACN,SAAS;EACT,YAAY;GACV,MAAM,MAAM,IAAgB,QAAQ;GACpC,IACE,IACA,WACA,KACC,IAAe,IAAI,MAAM,IAAe;GAC3C,iBAAiB;GACjB,iBAAiB,CAAC,iBAAiB;GACpC;EACD,UAAU,CAAC;GAAC,MAAM;GAAQ,OAAO,OAAO,EAAQ;GAAC,CAAC;EACnD;AACD,GAAM,MAAM,GAAM,EAAK;CAGvB,IAAM,IAAM;EACV,MAAM;EACN,SAAS;EACT,YAAY,EAAE;EACd,UAAU,CAAC,EAAK;EACjB;AAED,QADA,EAAM,MAAM,GAAM,EAAI,EACf,EAAM,UAAU,GAAM,EAAI"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/heading.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "h" + t.depth,
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as heading };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/heading.js"],"sourcesContent":["/**\n * @import {Element} from 'hast'\n * @import {Heading} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `heading` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Heading} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function heading(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'h' + node.depth,\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAQ,GAAO,GAAM;CAEnC,IAAM,IAAS;EACb,MAAM;EACN,SAAS,MAAM,EAAK;EACpB,YAAY,EAAE;EACd,UAAU,EAAM,IAAI,EAAK;EAC1B;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/html.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (e.options.allowDangerousHtml) {
|
|
4
|
+
let n = {
|
|
5
|
+
type: "raw",
|
|
6
|
+
value: t.value
|
|
7
|
+
};
|
|
8
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as html };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/html.js"],"sourcesContent":["/**\n * @import {Element} from 'hast'\n * @import {Html} from 'mdast'\n * @import {State} from '../state.js'\n * @import {Raw} from '../../index.js'\n */\n\n/**\n * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise\n * nothing).\n *\n * @param {State} state\n * Info passed around.\n * @param {Html} node\n * mdast node.\n * @returns {Element | Raw | undefined}\n * hast node.\n */\nexport function html(state, node) {\n if (state.options.allowDangerousHtml) {\n /** @type {Raw} */\n const result = {type: 'raw', value: node.value}\n state.patch(node, result)\n return state.applyData(node, result)\n }\n\n return undefined\n}\n"],"x_google_ignoreList":[0],"mappings":";AAkBA,SAAgB,EAAK,GAAO,GAAM;AAChC,KAAI,EAAM,QAAQ,oBAAoB;EAEpC,IAAM,IAAS;GAAC,MAAM;GAAO,OAAO,EAAK;GAAM;AAE/C,SADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
|
|
2
|
+
import { revert as t } from "../revert.js";
|
|
3
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = String(r.identifier).toUpperCase(), a = n.definitionById.get(i);
|
|
6
|
+
if (!a) return t(n, r);
|
|
7
|
+
let o = {
|
|
8
|
+
src: e(a.url || ""),
|
|
9
|
+
alt: r.alt
|
|
10
|
+
};
|
|
11
|
+
a.title !== null && a.title !== void 0 && (o.title = a.title);
|
|
12
|
+
let s = {
|
|
13
|
+
type: "element",
|
|
14
|
+
tagName: "img",
|
|
15
|
+
properties: o,
|
|
16
|
+
children: []
|
|
17
|
+
};
|
|
18
|
+
return n.patch(r, s), n.applyData(r, s);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as imageReference };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=image-reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-reference.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/image-reference.js"],"sourcesContent":["/**\n * @import {ElementContent, Element, Properties} from 'hast'\n * @import {ImageReference} from 'mdast'\n * @import {State} from '../state.js'\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `imageReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ImageReference} node\n * mdast node.\n * @returns {Array<ElementContent> | ElementContent}\n * hast node.\n */\nexport function imageReference(state, node) {\n const id = String(node.identifier).toUpperCase()\n const definition = state.definitionById.get(id)\n\n if (!definition) {\n return revert(state, node)\n }\n\n /** @type {Properties} */\n const properties = {src: normalizeUri(definition.url || ''), alt: node.alt}\n\n if (definition.title !== null && definition.title !== undefined) {\n properties.title = definition.title\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'img', properties, children: []}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAmBA,SAAgB,EAAe,GAAO,GAAM;CAC1C,IAAM,IAAK,OAAO,EAAK,WAAW,CAAC,aAAa,EAC1C,IAAa,EAAM,eAAe,IAAI,EAAG;AAE/C,KAAI,CAAC,EACH,QAAO,EAAO,GAAO,EAAK;CAI5B,IAAM,IAAa;EAAC,KAAK,EAAa,EAAW,OAAO,GAAG;EAAE,KAAK,EAAK;EAAI;AAE3E,CAAI,EAAW,UAAU,QAAQ,EAAW,UAAU,KAAA,MACpD,EAAW,QAAQ,EAAW;CAIhC,IAAM,IAAS;EAAC,MAAM;EAAW,SAAS;EAAO;EAAY,UAAU,EAAE;EAAC;AAE1E,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
|
|
2
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/image.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = { src: e(n.url) };
|
|
5
|
+
n.alt !== null && n.alt !== void 0 && (r.alt = n.alt), n.title !== null && n.title !== void 0 && (r.title = n.title);
|
|
6
|
+
let i = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "img",
|
|
9
|
+
properties: r,
|
|
10
|
+
children: []
|
|
11
|
+
};
|
|
12
|
+
return t.patch(n, i), t.applyData(n, i);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as image };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/image.js"],"sourcesContent":["/**\n * @import {Element, Properties} from 'hast'\n * @import {Image} from 'mdast'\n * @import {State} from '../state.js'\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `image` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Image} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function image(state, node) {\n /** @type {Properties} */\n const properties = {src: normalizeUri(node.url)}\n\n if (node.alt !== null && node.alt !== undefined) {\n properties.alt = node.alt\n }\n\n if (node.title !== null && node.title !== undefined) {\n properties.title = node.title\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'img', properties, children: []}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBA,SAAgB,EAAM,GAAO,GAAM;CAEjC,IAAM,IAAa,EAAC,KAAK,EAAa,EAAK,IAAI,EAAC;AAMhD,CAJI,EAAK,QAAQ,QAAQ,EAAK,QAAQ,KAAA,MACpC,EAAW,MAAM,EAAK,MAGpB,EAAK,UAAU,QAAQ,EAAK,UAAU,KAAA,MACxC,EAAW,QAAQ,EAAK;CAI1B,IAAM,IAAS;EAAC,MAAM;EAAW,SAAS;EAAO;EAAY,UAAU,EAAE;EAAC;AAE1E,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { blockquote as e } from "./blockquote.js";
|
|
2
|
+
import { hardBreak as t } from "./break.js";
|
|
3
|
+
import { code as n } from "./code.js";
|
|
4
|
+
import { strikethrough as r } from "./delete.js";
|
|
5
|
+
import { emphasis as i } from "./emphasis.js";
|
|
6
|
+
import { footnoteReference as a } from "./footnote-reference.js";
|
|
7
|
+
import { heading as o } from "./heading.js";
|
|
8
|
+
import { html as s } from "./html.js";
|
|
9
|
+
import { imageReference as c } from "./image-reference.js";
|
|
10
|
+
import { image as l } from "./image.js";
|
|
11
|
+
import { inlineCode as u } from "./inline-code.js";
|
|
12
|
+
import { linkReference as d } from "./link-reference.js";
|
|
13
|
+
import { link as f } from "./link.js";
|
|
14
|
+
import { listItem as p } from "./list-item.js";
|
|
15
|
+
import { list as m } from "./list.js";
|
|
16
|
+
import { paragraph as h } from "./paragraph.js";
|
|
17
|
+
import { root as g } from "./root.js";
|
|
18
|
+
import { strong as _ } from "./strong.js";
|
|
19
|
+
import { table as v } from "./table.js";
|
|
20
|
+
import { tableRow as y } from "./table-row.js";
|
|
21
|
+
import { tableCell as b } from "./table-cell.js";
|
|
22
|
+
import { text as x } from "./text.js";
|
|
23
|
+
import { thematicBreak as S } from "./thematic-break.js";
|
|
24
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/index.js
|
|
25
|
+
var C = {
|
|
26
|
+
blockquote: e,
|
|
27
|
+
break: t,
|
|
28
|
+
code: n,
|
|
29
|
+
delete: r,
|
|
30
|
+
emphasis: i,
|
|
31
|
+
footnoteReference: a,
|
|
32
|
+
heading: o,
|
|
33
|
+
html: s,
|
|
34
|
+
imageReference: c,
|
|
35
|
+
image: l,
|
|
36
|
+
inlineCode: u,
|
|
37
|
+
linkReference: d,
|
|
38
|
+
link: f,
|
|
39
|
+
listItem: p,
|
|
40
|
+
list: m,
|
|
41
|
+
paragraph: h,
|
|
42
|
+
root: g,
|
|
43
|
+
strong: _,
|
|
44
|
+
table: v,
|
|
45
|
+
tableCell: b,
|
|
46
|
+
tableRow: y,
|
|
47
|
+
text: x,
|
|
48
|
+
thematicBreak: S,
|
|
49
|
+
toml: w,
|
|
50
|
+
yaml: w,
|
|
51
|
+
definition: w,
|
|
52
|
+
footnoteDefinition: w
|
|
53
|
+
};
|
|
54
|
+
function w() {}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { C as handlers };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/index.js"],"sourcesContent":["/**\n * @import {Handlers} from '../state.js'\n */\n\nimport {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {strikethrough} from './delete.js'\nimport {emphasis} from './emphasis.js'\nimport {footnoteReference} from './footnote-reference.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {imageReference} from './image-reference.js'\nimport {image} from './image.js'\nimport {inlineCode} from './inline-code.js'\nimport {linkReference} from './link-reference.js'\nimport {link} from './link.js'\nimport {listItem} from './list-item.js'\nimport {list} from './list.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {table} from './table.js'\nimport {tableRow} from './table-row.js'\nimport {tableCell} from './table-cell.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default handlers for nodes.\n *\n * @satisfies {Handlers}\n */\nexport const handlers = {\n blockquote,\n break: hardBreak,\n code,\n delete: strikethrough,\n emphasis,\n footnoteReference,\n heading,\n html,\n imageReference,\n image,\n inlineCode,\n linkReference,\n link,\n listItem,\n list,\n paragraph,\n // @ts-expect-error: root is different, but hard to type.\n root,\n strong,\n table,\n tableCell,\n tableRow,\n text,\n thematicBreak,\n toml: ignore,\n yaml: ignore,\n definition: ignore,\n footnoteDefinition: ignore\n}\n\n// Return nothing for nodes that are ignored.\nfunction ignore() {\n return undefined\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiCA,IAAa,IAAW;CACtB;CACA,OAAO;CACP;CACA,QAAQ;CACR;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,MAAM;CACN,MAAM;CACN,YAAY;CACZ,oBAAoB;CACrB;AAGD,SAAS,IAAS"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "text",
|
|
5
|
+
value: t.value.replace(/\r?\n|\r/g, " ")
|
|
6
|
+
};
|
|
7
|
+
e.patch(t, n);
|
|
8
|
+
let r = {
|
|
9
|
+
type: "element",
|
|
10
|
+
tagName: "code",
|
|
11
|
+
properties: {},
|
|
12
|
+
children: [n]
|
|
13
|
+
};
|
|
14
|
+
return e.patch(t, r), e.applyData(t, r);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as inlineCode };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=inline-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-code.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/inline-code.js"],"sourcesContent":["/**\n * @import {Element, Text} from 'hast'\n * @import {InlineCode} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `inlineCode` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {InlineCode} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function inlineCode(state, node) {\n /** @type {Text} */\n const text = {type: 'text', value: node.value.replace(/\\r?\\n|\\r/g, ' ')}\n state.patch(node, text)\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'code',\n properties: {},\n children: [text]\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAW,GAAO,GAAM;CAEtC,IAAM,IAAO;EAAC,MAAM;EAAQ,OAAO,EAAK,MAAM,QAAQ,aAAa,IAAI;EAAC;AACxE,GAAM,MAAM,GAAM,EAAK;CAGvB,IAAM,IAAS;EACb,MAAM;EACN,SAAS;EACT,YAAY,EAAE;EACd,UAAU,CAAC,EAAK;EACjB;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
|
|
2
|
+
import { revert as t } from "../revert.js";
|
|
3
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = String(r.identifier).toUpperCase(), a = n.definitionById.get(i);
|
|
6
|
+
if (!a) return t(n, r);
|
|
7
|
+
let o = { href: e(a.url || "") };
|
|
8
|
+
a.title !== null && a.title !== void 0 && (o.title = a.title);
|
|
9
|
+
let s = {
|
|
10
|
+
type: "element",
|
|
11
|
+
tagName: "a",
|
|
12
|
+
properties: o,
|
|
13
|
+
children: n.all(r)
|
|
14
|
+
};
|
|
15
|
+
return n.patch(r, s), n.applyData(r, s);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as linkReference };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=link-reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-reference.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/link-reference.js"],"sourcesContent":["/**\n * @import {ElementContent, Element, Properties} from 'hast'\n * @import {LinkReference} from 'mdast'\n * @import {State} from '../state.js'\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `linkReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {LinkReference} node\n * mdast node.\n * @returns {Array<ElementContent> | ElementContent}\n * hast node.\n */\nexport function linkReference(state, node) {\n const id = String(node.identifier).toUpperCase()\n const definition = state.definitionById.get(id)\n\n if (!definition) {\n return revert(state, node)\n }\n\n /** @type {Properties} */\n const properties = {href: normalizeUri(definition.url || '')}\n\n if (definition.title !== null && definition.title !== undefined) {\n properties.title = definition.title\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'a',\n properties,\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAmBA,SAAgB,EAAc,GAAO,GAAM;CACzC,IAAM,IAAK,OAAO,EAAK,WAAW,CAAC,aAAa,EAC1C,IAAa,EAAM,eAAe,IAAI,EAAG;AAE/C,KAAI,CAAC,EACH,QAAO,EAAO,GAAO,EAAK;CAI5B,IAAM,IAAa,EAAC,MAAM,EAAa,EAAW,OAAO,GAAG,EAAC;AAE7D,CAAI,EAAW,UAAU,QAAQ,EAAW,UAAU,KAAA,MACpD,EAAW,QAAQ,EAAW;CAIhC,IAAM,IAAS;EACb,MAAM;EACN,SAAS;EACT;EACA,UAAU,EAAM,IAAI,EAAK;EAC1B;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
|
|
2
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/link.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = { href: e(n.url) };
|
|
5
|
+
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
|
6
|
+
let i = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "a",
|
|
9
|
+
properties: r,
|
|
10
|
+
children: t.all(n)
|
|
11
|
+
};
|
|
12
|
+
return t.patch(n, i), t.applyData(n, i);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as link };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/link.js"],"sourcesContent":["/**\n * @import {Element, Properties} from 'hast'\n * @import {Link} from 'mdast'\n * @import {State} from '../state.js'\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `link` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Link} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function link(state, node) {\n /** @type {Properties} */\n const properties = {href: normalizeUri(node.url)}\n\n if (node.title !== null && node.title !== undefined) {\n properties.title = node.title\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'a',\n properties,\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBA,SAAgB,EAAK,GAAO,GAAM;CAEhC,IAAM,IAAa,EAAC,MAAM,EAAa,EAAK,IAAI,EAAC;AAEjD,CAAI,EAAK,UAAU,QAAQ,EAAK,UAAU,KAAA,MACxC,EAAW,QAAQ,EAAK;CAI1B,IAAM,IAAS;EACb,MAAM;EACN,SAAS;EACT;EACA,UAAU,EAAM,IAAI,EAAK;EAC1B;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/list-item.js
|
|
2
|
+
function e(e, r, i) {
|
|
3
|
+
let a = e.all(r), o = i ? t(i) : n(r), s = {}, c = [];
|
|
4
|
+
if (typeof r.checked == "boolean") {
|
|
5
|
+
let e = a[0], t;
|
|
6
|
+
e && e.type === "element" && e.tagName === "p" ? t = e : (t = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "p",
|
|
9
|
+
properties: {},
|
|
10
|
+
children: []
|
|
11
|
+
}, a.unshift(t)), t.children.length > 0 && t.children.unshift({
|
|
12
|
+
type: "text",
|
|
13
|
+
value: " "
|
|
14
|
+
}), t.children.unshift({
|
|
15
|
+
type: "element",
|
|
16
|
+
tagName: "input",
|
|
17
|
+
properties: {
|
|
18
|
+
type: "checkbox",
|
|
19
|
+
checked: r.checked,
|
|
20
|
+
disabled: !0
|
|
21
|
+
},
|
|
22
|
+
children: []
|
|
23
|
+
}), s.className = ["task-list-item"];
|
|
24
|
+
}
|
|
25
|
+
let l = -1;
|
|
26
|
+
for (; ++l < a.length;) {
|
|
27
|
+
let e = a[l];
|
|
28
|
+
(o || l !== 0 || e.type !== "element" || e.tagName !== "p") && c.push({
|
|
29
|
+
type: "text",
|
|
30
|
+
value: "\n"
|
|
31
|
+
}), e.type === "element" && e.tagName === "p" && !o ? c.push(...e.children) : c.push(e);
|
|
32
|
+
}
|
|
33
|
+
let u = a[a.length - 1];
|
|
34
|
+
u && (o || u.type !== "element" || u.tagName !== "p") && c.push({
|
|
35
|
+
type: "text",
|
|
36
|
+
value: "\n"
|
|
37
|
+
});
|
|
38
|
+
let d = {
|
|
39
|
+
type: "element",
|
|
40
|
+
tagName: "li",
|
|
41
|
+
properties: s,
|
|
42
|
+
children: c
|
|
43
|
+
};
|
|
44
|
+
return e.patch(r, d), e.applyData(r, d);
|
|
45
|
+
}
|
|
46
|
+
function t(e) {
|
|
47
|
+
let t = !1;
|
|
48
|
+
if (e.type === "list") {
|
|
49
|
+
t = e.spread || !1;
|
|
50
|
+
let r = e.children, i = -1;
|
|
51
|
+
for (; !t && ++i < r.length;) t = n(r[i]);
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
function n(e) {
|
|
56
|
+
return e.spread ?? e.children.length > 1;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { e as listItem };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/list-item.js"],"sourcesContent":["/**\n * @import {ElementContent, Element, Properties} from 'hast'\n * @import {ListItem, Parents} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array<ElementContent>} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: <https://github.com/sindresorhus/github-markdown-css>.\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === null || spread === undefined\n ? node.children.length > 1\n : spread\n}\n"],"x_google_ignoreList":[0],"mappings":";AAkBA,SAAgB,EAAS,GAAO,GAAM,GAAQ;CAC5C,IAAM,IAAU,EAAM,IAAI,EAAK,EACzB,IAAQ,IAAS,EAAU,EAAO,GAAG,EAAc,EAAK,EAExD,IAAa,EAAE,EAEf,IAAW,EAAE;AAEnB,KAAI,OAAO,EAAK,WAAY,WAAW;EACrC,IAAM,IAAO,EAAQ,IAEjB;AAsBJ,EApBI,KAAQ,EAAK,SAAS,aAAa,EAAK,YAAY,MACtD,IAAY,KAEZ,IAAY;GAAC,MAAM;GAAW,SAAS;GAAK,YAAY,EAAE;GAAE,UAAU,EAAE;GAAC,EACzE,EAAQ,QAAQ,EAAU,GAGxB,EAAU,SAAS,SAAS,KAC9B,EAAU,SAAS,QAAQ;GAAC,MAAM;GAAQ,OAAO;GAAI,CAAC,EAGxD,EAAU,SAAS,QAAQ;GACzB,MAAM;GACN,SAAS;GACT,YAAY;IAAC,MAAM;IAAY,SAAS,EAAK;IAAS,UAAU;IAAK;GACrE,UAAU,EAAE;GACb,CAAC,EAIF,EAAW,YAAY,CAAC,iBAAiB;;CAG3C,IAAI,IAAQ;AAEZ,QAAO,EAAE,IAAQ,EAAQ,SAAQ;EAC/B,IAAM,IAAQ,EAAQ;AAYtB,GARE,KACA,MAAU,KACV,EAAM,SAAS,aACf,EAAM,YAAY,QAElB,EAAS,KAAK;GAAC,MAAM;GAAQ,OAAO;GAAK,CAAC,EAGxC,EAAM,SAAS,aAAa,EAAM,YAAY,OAAO,CAAC,IACxD,EAAS,KAAK,GAAG,EAAM,SAAS,GAEhC,EAAS,KAAK,EAAM;;CAIxB,IAAM,IAAO,EAAQ,EAAQ,SAAS;AAGtC,CAAI,MAAS,KAAS,EAAK,SAAS,aAAa,EAAK,YAAY,QAChE,EAAS,KAAK;EAAC,MAAM;EAAQ,OAAO;EAAK,CAAC;CAI5C,IAAM,IAAS;EAAC,MAAM;EAAW,SAAS;EAAM;EAAY;EAAS;AAErE,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO;;AAOtC,SAAS,EAAU,GAAM;CACvB,IAAI,IAAQ;AACZ,KAAI,EAAK,SAAS,QAAQ;AACxB,MAAQ,EAAK,UAAU;EACvB,IAAM,IAAW,EAAK,UAClB,IAAQ;AAEZ,SAAO,CAAC,KAAS,EAAE,IAAQ,EAAS,QAClC,KAAQ,EAAc,EAAS,GAAO;;AAI1C,QAAO;;AAOT,SAAS,EAAc,GAAM;AAG3B,QAFe,EAAK,UAGhB,EAAK,SAAS,SAAS"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-hast/lib/handlers/list.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {}, r = e.all(t), i = -1;
|
|
4
|
+
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length;) {
|
|
5
|
+
let e = r[i];
|
|
6
|
+
if (e.type === "element" && e.tagName === "li" && e.properties && Array.isArray(e.properties.className) && e.properties.className.includes("task-list-item")) {
|
|
7
|
+
n.className = ["contains-task-list"];
|
|
8
|
+
break;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
let a = {
|
|
12
|
+
type: "element",
|
|
13
|
+
tagName: t.ordered ? "ol" : "ul",
|
|
14
|
+
properties: n,
|
|
15
|
+
children: e.wrap(r, !0)
|
|
16
|
+
};
|
|
17
|
+
return e.patch(t, a), e.applyData(t, a);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as list };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","names":[],"sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/list.js"],"sourcesContent":["/**\n * @import {Element, Properties} from 'hast'\n * @import {List} from 'mdast'\n * @import {State} from '../state.js'\n */\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {List} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function list(state, node) {\n /** @type {Properties} */\n const properties = {}\n const results = state.all(node)\n let index = -1\n\n if (typeof node.start === 'number' && node.start !== 1) {\n properties.start = node.start\n }\n\n // Like GitHub, add a class for custom styling.\n while (++index < results.length) {\n const child = results[index]\n\n if (\n child.type === 'element' &&\n child.tagName === 'li' &&\n child.properties &&\n Array.isArray(child.properties.className) &&\n child.properties.className.includes('task-list-item')\n ) {\n properties.className = ['contains-task-list']\n break\n }\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: node.ordered ? 'ol' : 'ul',\n properties,\n children: state.wrap(results, true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAK,GAAO,GAAM;CAEhC,IAAM,IAAa,EAAE,EACf,IAAU,EAAM,IAAI,EAAK,EAC3B,IAAQ;AAOZ,MALI,OAAO,EAAK,SAAU,YAAY,EAAK,UAAU,MACnD,EAAW,QAAQ,EAAK,QAInB,EAAE,IAAQ,EAAQ,SAAQ;EAC/B,IAAM,IAAQ,EAAQ;AAEtB,MACE,EAAM,SAAS,aACf,EAAM,YAAY,QAClB,EAAM,cACN,MAAM,QAAQ,EAAM,WAAW,UAAU,IACzC,EAAM,WAAW,UAAU,SAAS,iBAAiB,EACrD;AACA,KAAW,YAAY,CAAC,qBAAqB;AAC7C;;;CAKJ,IAAM,IAAS;EACb,MAAM;EACN,SAAS,EAAK,UAAU,OAAO;EAC/B;EACA,UAAU,EAAM,KAAK,GAAS,GAAK;EACpC;AAED,QADA,EAAM,MAAM,GAAM,EAAO,EAClB,EAAM,UAAU,GAAM,EAAO"}
|