@shell-shock/preset-cli 0.9.10 → 0.9.12
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.cjs +16 -0
- package/dist/_virtual/_rolldown/runtime.mjs +45 -0
- package/dist/components/upgrade-builtin.cjs +1 -1
- package/dist/components/upgrade-builtin.mjs +1 -1
- package/dist/components/upgrade-builtin.mjs.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs +94 -0
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +167 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +167 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +36 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +36 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +32 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +33 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +133 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +134 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +32 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +31 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +169 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +167 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +98 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +95 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +23 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +23 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +1 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +36 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +36 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +373 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +374 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +60 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +59 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +59 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +59 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +338 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +333 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +4095 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +4093 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +1 -0
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +10 -0
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +10 -0
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +449 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +450 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +47 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +123 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +123 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +246 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +244 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +92 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +3 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +9 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +205 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +189 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +19 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +61 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +43 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +44 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +488 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +489 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +148 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +149 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +51 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +52 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +126 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +127 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +217 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +218 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +274 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +274 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +107 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +108 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +36 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +72 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +53 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +53 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +158 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +140 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +141 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +139 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +140 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +81 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +82 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +14 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +55 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +55 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +49 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +82 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +83 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +84 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +85 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +42 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +42 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +74 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +21 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +17 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +74 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +74 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +57 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +57 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +18 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +18 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +175 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +175 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +19 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +15 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +104 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +104 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +73 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +68 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +266 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +262 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +575 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +543 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +27 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +21 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +105 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +94 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +33 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +34 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +99 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +93 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +2544 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +2545 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +296 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +297 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +28 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +2069 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +2069 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +156 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +157 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +166 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +167 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +299 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +295 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +25 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +21 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +15 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +17 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -0
- package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/changelog-command.cjs +5 -4
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -3
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
- package/dist/{plugin-changelog → packages/plugin-changelog}/dist/index.cjs +1 -1
- package/dist/packages/unified/dist/html-Di3_LwV3.cjs +337 -0
- package/dist/packages/unified/dist/html-Di3_LwV3.mjs +338 -0
- package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +1 -0
- package/dist/packages/unified/dist/markdown/index.cjs +1 -0
- package/dist/packages/unified/dist/markdown/index.mjs +3 -0
- package/dist/packages/unified/dist/markdown-OuY_JOk0.cjs +82 -0
- package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs +83 -0
- package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs.map +1 -0
- package/package.json +39 -12
- package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs +0 -10
- package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs.map +0 -1
- package/dist/unified/dist/markdown-Bs-BRrSC.cjs +0 -10
- /package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/index.cjs +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const require_utils = require('../common/utils.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs
|
|
4
|
+
const QUOTE_TEST_RE = /['"]/;
|
|
5
|
+
const QUOTE_RE = /['"]/g;
|
|
6
|
+
const APOSTROPHE = "’";
|
|
7
|
+
function replaceAt(str, index, ch) {
|
|
8
|
+
return str.slice(0, index) + ch + str.slice(index + 1);
|
|
9
|
+
}
|
|
10
|
+
function process_inlines(tokens, state) {
|
|
11
|
+
let j;
|
|
12
|
+
const stack = [];
|
|
13
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
14
|
+
const token = tokens[i];
|
|
15
|
+
const thisLevel = tokens[i].level;
|
|
16
|
+
for (j = stack.length - 1; j >= 0; j--) if (stack[j].level <= thisLevel) break;
|
|
17
|
+
stack.length = j + 1;
|
|
18
|
+
if (token.type !== "text") continue;
|
|
19
|
+
let text = token.content;
|
|
20
|
+
let pos = 0;
|
|
21
|
+
let max = text.length;
|
|
22
|
+
OUTER: while (pos < max) {
|
|
23
|
+
QUOTE_RE.lastIndex = pos;
|
|
24
|
+
const t = QUOTE_RE.exec(text);
|
|
25
|
+
if (!t) break;
|
|
26
|
+
let canOpen = true;
|
|
27
|
+
let canClose = true;
|
|
28
|
+
pos = t.index + 1;
|
|
29
|
+
const isSingle = t[0] === "'";
|
|
30
|
+
let lastChar = 32;
|
|
31
|
+
if (t.index - 1 >= 0) lastChar = text.charCodeAt(t.index - 1);
|
|
32
|
+
else for (j = i - 1; j >= 0; j--) {
|
|
33
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
|
|
34
|
+
if (!tokens[j].content) continue;
|
|
35
|
+
lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
let nextChar = 32;
|
|
39
|
+
if (pos < max) nextChar = text.charCodeAt(pos);
|
|
40
|
+
else for (j = i + 1; j < tokens.length; j++) {
|
|
41
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
|
|
42
|
+
if (!tokens[j].content) continue;
|
|
43
|
+
nextChar = tokens[j].content.charCodeAt(0);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
const isLastPunctChar = require_utils.isMdAsciiPunct(lastChar) || require_utils.isPunctChar(String.fromCharCode(lastChar));
|
|
47
|
+
const isNextPunctChar = require_utils.isMdAsciiPunct(nextChar) || require_utils.isPunctChar(String.fromCharCode(nextChar));
|
|
48
|
+
const isLastWhiteSpace = require_utils.isWhiteSpace(lastChar);
|
|
49
|
+
const isNextWhiteSpace = require_utils.isWhiteSpace(nextChar);
|
|
50
|
+
if (isNextWhiteSpace) canOpen = false;
|
|
51
|
+
else if (isNextPunctChar) {
|
|
52
|
+
if (!(isLastWhiteSpace || isLastPunctChar)) canOpen = false;
|
|
53
|
+
}
|
|
54
|
+
if (isLastWhiteSpace) canClose = false;
|
|
55
|
+
else if (isLastPunctChar) {
|
|
56
|
+
if (!(isNextWhiteSpace || isNextPunctChar)) canClose = false;
|
|
57
|
+
}
|
|
58
|
+
if (nextChar === 34 && t[0] === "\"") {
|
|
59
|
+
if (lastChar >= 48 && lastChar <= 57) canClose = canOpen = false;
|
|
60
|
+
}
|
|
61
|
+
if (canOpen && canClose) {
|
|
62
|
+
canOpen = isLastPunctChar;
|
|
63
|
+
canClose = isNextPunctChar;
|
|
64
|
+
}
|
|
65
|
+
if (!canOpen && !canClose) {
|
|
66
|
+
if (isSingle) token.content = replaceAt(token.content, t.index, APOSTROPHE);
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
if (canClose) for (j = stack.length - 1; j >= 0; j--) {
|
|
70
|
+
let item = stack[j];
|
|
71
|
+
if (stack[j].level < thisLevel) break;
|
|
72
|
+
if (item.single === isSingle && stack[j].level === thisLevel) {
|
|
73
|
+
item = stack[j];
|
|
74
|
+
let openQuote;
|
|
75
|
+
let closeQuote;
|
|
76
|
+
if (isSingle) {
|
|
77
|
+
openQuote = state.md.options.quotes[2];
|
|
78
|
+
closeQuote = state.md.options.quotes[3];
|
|
79
|
+
} else {
|
|
80
|
+
openQuote = state.md.options.quotes[0];
|
|
81
|
+
closeQuote = state.md.options.quotes[1];
|
|
82
|
+
}
|
|
83
|
+
token.content = replaceAt(token.content, t.index, closeQuote);
|
|
84
|
+
tokens[item.token].content = replaceAt(tokens[item.token].content, item.pos, openQuote);
|
|
85
|
+
pos += closeQuote.length - 1;
|
|
86
|
+
if (item.token === i) pos += openQuote.length - 1;
|
|
87
|
+
text = token.content;
|
|
88
|
+
max = text.length;
|
|
89
|
+
stack.length = j;
|
|
90
|
+
continue OUTER;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (canOpen) stack.push({
|
|
94
|
+
token: i,
|
|
95
|
+
pos: t.index,
|
|
96
|
+
single: isSingle,
|
|
97
|
+
level: thisLevel
|
|
98
|
+
});
|
|
99
|
+
else if (canClose && isSingle) token.content = replaceAt(token.content, t.index, APOSTROPHE);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function smartquotes(state) {
|
|
104
|
+
if (!state.md.options.typographer) return;
|
|
105
|
+
for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
|
|
106
|
+
if (state.tokens[blkIdx].type !== "inline" || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) continue;
|
|
107
|
+
process_inlines(state.tokens[blkIdx].children, state);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
//#endregion
|
|
112
|
+
exports.default = smartquotes;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { isMdAsciiPunct, isPunctChar, isWhiteSpace } from "../common/utils.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs
|
|
4
|
+
const QUOTE_TEST_RE = /['"]/;
|
|
5
|
+
const QUOTE_RE = /['"]/g;
|
|
6
|
+
const APOSTROPHE = "’";
|
|
7
|
+
function replaceAt(str, index, ch) {
|
|
8
|
+
return str.slice(0, index) + ch + str.slice(index + 1);
|
|
9
|
+
}
|
|
10
|
+
function process_inlines(tokens, state) {
|
|
11
|
+
let j;
|
|
12
|
+
const stack = [];
|
|
13
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
14
|
+
const token = tokens[i];
|
|
15
|
+
const thisLevel = tokens[i].level;
|
|
16
|
+
for (j = stack.length - 1; j >= 0; j--) if (stack[j].level <= thisLevel) break;
|
|
17
|
+
stack.length = j + 1;
|
|
18
|
+
if (token.type !== "text") continue;
|
|
19
|
+
let text = token.content;
|
|
20
|
+
let pos = 0;
|
|
21
|
+
let max = text.length;
|
|
22
|
+
OUTER: while (pos < max) {
|
|
23
|
+
QUOTE_RE.lastIndex = pos;
|
|
24
|
+
const t = QUOTE_RE.exec(text);
|
|
25
|
+
if (!t) break;
|
|
26
|
+
let canOpen = true;
|
|
27
|
+
let canClose = true;
|
|
28
|
+
pos = t.index + 1;
|
|
29
|
+
const isSingle = t[0] === "'";
|
|
30
|
+
let lastChar = 32;
|
|
31
|
+
if (t.index - 1 >= 0) lastChar = text.charCodeAt(t.index - 1);
|
|
32
|
+
else for (j = i - 1; j >= 0; j--) {
|
|
33
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
|
|
34
|
+
if (!tokens[j].content) continue;
|
|
35
|
+
lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
let nextChar = 32;
|
|
39
|
+
if (pos < max) nextChar = text.charCodeAt(pos);
|
|
40
|
+
else for (j = i + 1; j < tokens.length; j++) {
|
|
41
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
|
|
42
|
+
if (!tokens[j].content) continue;
|
|
43
|
+
nextChar = tokens[j].content.charCodeAt(0);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));
|
|
47
|
+
const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));
|
|
48
|
+
const isLastWhiteSpace = isWhiteSpace(lastChar);
|
|
49
|
+
const isNextWhiteSpace = isWhiteSpace(nextChar);
|
|
50
|
+
if (isNextWhiteSpace) canOpen = false;
|
|
51
|
+
else if (isNextPunctChar) {
|
|
52
|
+
if (!(isLastWhiteSpace || isLastPunctChar)) canOpen = false;
|
|
53
|
+
}
|
|
54
|
+
if (isLastWhiteSpace) canClose = false;
|
|
55
|
+
else if (isLastPunctChar) {
|
|
56
|
+
if (!(isNextWhiteSpace || isNextPunctChar)) canClose = false;
|
|
57
|
+
}
|
|
58
|
+
if (nextChar === 34 && t[0] === "\"") {
|
|
59
|
+
if (lastChar >= 48 && lastChar <= 57) canClose = canOpen = false;
|
|
60
|
+
}
|
|
61
|
+
if (canOpen && canClose) {
|
|
62
|
+
canOpen = isLastPunctChar;
|
|
63
|
+
canClose = isNextPunctChar;
|
|
64
|
+
}
|
|
65
|
+
if (!canOpen && !canClose) {
|
|
66
|
+
if (isSingle) token.content = replaceAt(token.content, t.index, APOSTROPHE);
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
if (canClose) for (j = stack.length - 1; j >= 0; j--) {
|
|
70
|
+
let item = stack[j];
|
|
71
|
+
if (stack[j].level < thisLevel) break;
|
|
72
|
+
if (item.single === isSingle && stack[j].level === thisLevel) {
|
|
73
|
+
item = stack[j];
|
|
74
|
+
let openQuote;
|
|
75
|
+
let closeQuote;
|
|
76
|
+
if (isSingle) {
|
|
77
|
+
openQuote = state.md.options.quotes[2];
|
|
78
|
+
closeQuote = state.md.options.quotes[3];
|
|
79
|
+
} else {
|
|
80
|
+
openQuote = state.md.options.quotes[0];
|
|
81
|
+
closeQuote = state.md.options.quotes[1];
|
|
82
|
+
}
|
|
83
|
+
token.content = replaceAt(token.content, t.index, closeQuote);
|
|
84
|
+
tokens[item.token].content = replaceAt(tokens[item.token].content, item.pos, openQuote);
|
|
85
|
+
pos += closeQuote.length - 1;
|
|
86
|
+
if (item.token === i) pos += openQuote.length - 1;
|
|
87
|
+
text = token.content;
|
|
88
|
+
max = text.length;
|
|
89
|
+
stack.length = j;
|
|
90
|
+
continue OUTER;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (canOpen) stack.push({
|
|
94
|
+
token: i,
|
|
95
|
+
pos: t.index,
|
|
96
|
+
single: isSingle,
|
|
97
|
+
level: thisLevel
|
|
98
|
+
});
|
|
99
|
+
else if (canClose && isSingle) token.content = replaceAt(token.content, t.index, APOSTROPHE);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function smartquotes(state) {
|
|
104
|
+
if (!state.md.options.typographer) return;
|
|
105
|
+
for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
|
|
106
|
+
if (state.tokens[blkIdx].type !== "inline" || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) continue;
|
|
107
|
+
process_inlines(state.tokens[blkIdx].children, state);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
//#endregion
|
|
112
|
+
export { smartquotes as default };
|
|
113
|
+
//# sourceMappingURL=smartquotes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartquotes.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs"],"sourcesContent":["// Convert straight quotation marks to typographic ones\n//\n\nimport { isWhiteSpace, isPunctChar, isMdAsciiPunct } from '../common/utils.mjs'\n\nconst QUOTE_TEST_RE = /['\"]/\nconst QUOTE_RE = /['\"]/g\nconst APOSTROPHE = '\\u2019' /* ’ */\n\nfunction replaceAt (str, index, ch) {\n return str.slice(0, index) + ch + str.slice(index + 1)\n}\n\nfunction process_inlines (tokens, state) {\n let j\n\n const stack = []\n\n for (let i = 0; i < tokens.length; i++) {\n const token = tokens[i]\n\n const thisLevel = tokens[i].level\n\n for (j = stack.length - 1; j >= 0; j--) {\n if (stack[j].level <= thisLevel) { break }\n }\n stack.length = j + 1\n\n if (token.type !== 'text') { continue }\n\n let text = token.content\n let pos = 0\n let max = text.length\n\n /* eslint no-labels:0,block-scoped-var:0 */\n OUTER:\n while (pos < max) {\n QUOTE_RE.lastIndex = pos\n const t = QUOTE_RE.exec(text)\n if (!t) { break }\n\n let canOpen = true\n let canClose = true\n pos = t.index + 1\n const isSingle = (t[0] === \"'\")\n\n // Find previous character,\n // default to space if it's the beginning of the line\n //\n let lastChar = 0x20\n\n if (t.index - 1 >= 0) {\n lastChar = text.charCodeAt(t.index - 1)\n } else {\n for (j = i - 1; j >= 0; j--) {\n if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break // lastChar defaults to 0x20\n if (!tokens[j].content) continue // should skip all tokens except 'text', 'html_inline' or 'code_inline'\n\n lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1)\n break\n }\n }\n\n // Find next character,\n // default to space if it's the end of the line\n //\n let nextChar = 0x20\n\n if (pos < max) {\n nextChar = text.charCodeAt(pos)\n } else {\n for (j = i + 1; j < tokens.length; j++) {\n if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break // nextChar defaults to 0x20\n if (!tokens[j].content) continue // should skip all tokens except 'text', 'html_inline' or 'code_inline'\n\n nextChar = tokens[j].content.charCodeAt(0)\n break\n }\n }\n\n const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar))\n const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar))\n\n const isLastWhiteSpace = isWhiteSpace(lastChar)\n const isNextWhiteSpace = isWhiteSpace(nextChar)\n\n if (isNextWhiteSpace) {\n canOpen = false\n } else if (isNextPunctChar) {\n if (!(isLastWhiteSpace || isLastPunctChar)) {\n canOpen = false\n }\n }\n\n if (isLastWhiteSpace) {\n canClose = false\n } else if (isLastPunctChar) {\n if (!(isNextWhiteSpace || isNextPunctChar)) {\n canClose = false\n }\n }\n\n if (nextChar === 0x22 /* \" */ && t[0] === '\"') {\n if (lastChar >= 0x30 /* 0 */ && lastChar <= 0x39 /* 9 */) {\n // special case: 1\"\" - count first quote as an inch\n canClose = canOpen = false\n }\n }\n\n if (canOpen && canClose) {\n // Replace quotes in the middle of punctuation sequence, but not\n // in the middle of the words, i.e.:\n //\n // 1. foo \" bar \" baz - not replaced\n // 2. foo-\"-bar-\"-baz - replaced\n // 3. foo\"bar\"baz - not replaced\n //\n canOpen = isLastPunctChar\n canClose = isNextPunctChar\n }\n\n if (!canOpen && !canClose) {\n // middle of word\n if (isSingle) {\n token.content = replaceAt(token.content, t.index, APOSTROPHE)\n }\n continue\n }\n\n if (canClose) {\n // this could be a closing quote, rewind the stack to get a match\n for (j = stack.length - 1; j >= 0; j--) {\n let item = stack[j]\n if (stack[j].level < thisLevel) { break }\n if (item.single === isSingle && stack[j].level === thisLevel) {\n item = stack[j]\n\n let openQuote\n let closeQuote\n if (isSingle) {\n openQuote = state.md.options.quotes[2]\n closeQuote = state.md.options.quotes[3]\n } else {\n openQuote = state.md.options.quotes[0]\n closeQuote = state.md.options.quotes[1]\n }\n\n // replace token.content *before* tokens[item.token].content,\n // because, if they are pointing at the same token, replaceAt\n // could mess up indices when quote length != 1\n token.content = replaceAt(token.content, t.index, closeQuote)\n tokens[item.token].content = replaceAt(\n tokens[item.token].content, item.pos, openQuote)\n\n pos += closeQuote.length - 1\n if (item.token === i) { pos += openQuote.length - 1 }\n\n text = token.content\n max = text.length\n\n stack.length = j\n continue OUTER\n }\n }\n }\n\n if (canOpen) {\n stack.push({\n token: i,\n pos: t.index,\n single: isSingle,\n level: thisLevel\n })\n } else if (canClose && isSingle) {\n token.content = replaceAt(token.content, t.index, APOSTROPHE)\n }\n }\n }\n}\n\nexport default function smartquotes (state) {\n /* eslint max-depth:0 */\n if (!state.md.options.typographer) { return }\n\n for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {\n if (state.tokens[blkIdx].type !== 'inline' ||\n !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) {\n continue\n }\n\n process_inlines(state.tokens[blkIdx].children, state)\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAKA,MAAM,gBAAgB;AACtB,MAAM,WAAW;AACjB,MAAM,aAAa;AAEnB,SAAS,UAAW,KAAK,OAAO,IAAI;AAClC,QAAO,IAAI,MAAM,GAAG,MAAM,GAAG,KAAK,IAAI,MAAM,QAAQ,EAAE;;AAGxD,SAAS,gBAAiB,QAAQ,OAAO;CACvC,IAAI;CAEJ,MAAM,QAAQ,EAAE;AAEhB,MAAK,IAAI,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;EACtC,MAAM,QAAQ,OAAO;EAErB,MAAM,YAAY,OAAO,GAAG;AAE5B,OAAK,IAAI,MAAM,SAAS,GAAG,KAAK,GAAG,IACjC,KAAI,MAAM,GAAG,SAAS,UAAa;AAErC,QAAM,SAAS,IAAI;AAEnB,MAAI,MAAM,SAAS,OAAU;EAE7B,IAAI,OAAO,MAAM;EACjB,IAAI,MAAM;EACV,IAAI,MAAM,KAAK;AAGf,QACA,QAAO,MAAM,KAAK;AAChB,YAAS,YAAY;GACrB,MAAM,IAAI,SAAS,KAAK,KAAK;AAC7B,OAAI,CAAC,EAAK;GAEV,IAAI,UAAU;GACd,IAAI,WAAW;AACf,SAAM,EAAE,QAAQ;GAChB,MAAM,WAAY,EAAE,OAAO;GAK3B,IAAI,WAAW;AAEf,OAAI,EAAE,QAAQ,KAAK,EACjB,YAAW,KAAK,WAAW,EAAE,QAAQ,EAAE;OAEvC,MAAK,IAAI,IAAI,GAAG,KAAK,GAAG,KAAK;AAC3B,QAAI,OAAO,GAAG,SAAS,eAAe,OAAO,GAAG,SAAS,YAAa;AACtE,QAAI,CAAC,OAAO,GAAG,QAAS;AAExB,eAAW,OAAO,GAAG,QAAQ,WAAW,OAAO,GAAG,QAAQ,SAAS,EAAE;AACrE;;GAOJ,IAAI,WAAW;AAEf,OAAI,MAAM,IACR,YAAW,KAAK,WAAW,IAAI;OAE/B,MAAK,IAAI,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtC,QAAI,OAAO,GAAG,SAAS,eAAe,OAAO,GAAG,SAAS,YAAa;AACtE,QAAI,CAAC,OAAO,GAAG,QAAS;AAExB,eAAW,OAAO,GAAG,QAAQ,WAAW,EAAE;AAC1C;;GAIJ,MAAM,kBAAkB,eAAe,SAAS,IAAI,YAAY,OAAO,aAAa,SAAS,CAAC;GAC9F,MAAM,kBAAkB,eAAe,SAAS,IAAI,YAAY,OAAO,aAAa,SAAS,CAAC;GAE9F,MAAM,mBAAmB,aAAa,SAAS;GAC/C,MAAM,mBAAmB,aAAa,SAAS;AAE/C,OAAI,iBACF,WAAU;YACD,iBACT;QAAI,EAAE,oBAAoB,iBACxB,WAAU;;AAId,OAAI,iBACF,YAAW;YACF,iBACT;QAAI,EAAE,oBAAoB,iBACxB,YAAW;;AAIf,OAAI,aAAa,MAAgB,EAAE,OAAO,MACxC;QAAI,YAAY,MAAgB,YAAY,GAE1C,YAAW,UAAU;;AAIzB,OAAI,WAAW,UAAU;AAQvB,cAAU;AACV,eAAW;;AAGb,OAAI,CAAC,WAAW,CAAC,UAAU;AAEzB,QAAI,SACF,OAAM,UAAU,UAAU,MAAM,SAAS,EAAE,OAAO,WAAW;AAE/D;;AAGF,OAAI,SAEF,MAAK,IAAI,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK;IACtC,IAAI,OAAO,MAAM;AACjB,QAAI,MAAM,GAAG,QAAQ,UAAa;AAClC,QAAI,KAAK,WAAW,YAAY,MAAM,GAAG,UAAU,WAAW;AAC5D,YAAO,MAAM;KAEb,IAAI;KACJ,IAAI;AACJ,SAAI,UAAU;AACZ,kBAAY,MAAM,GAAG,QAAQ,OAAO;AACpC,mBAAa,MAAM,GAAG,QAAQ,OAAO;YAChC;AACL,kBAAY,MAAM,GAAG,QAAQ,OAAO;AACpC,mBAAa,MAAM,GAAG,QAAQ,OAAO;;AAMvC,WAAM,UAAU,UAAU,MAAM,SAAS,EAAE,OAAO,WAAW;AAC7D,YAAO,KAAK,OAAO,UAAU,UAC3B,OAAO,KAAK,OAAO,SAAS,KAAK,KAAK,UAAU;AAElD,YAAO,WAAW,SAAS;AAC3B,SAAI,KAAK,UAAU,EAAK,QAAO,UAAU,SAAS;AAElD,YAAO,MAAM;AACb,WAAM,KAAK;AAEX,WAAM,SAAS;AACf,cAAS;;;AAKf,OAAI,QACF,OAAM,KAAK;IACT,OAAO;IACP,KAAK,EAAE;IACP,QAAQ;IACR,OAAO;IACR,CAAC;YACO,YAAY,SACrB,OAAM,UAAU,UAAU,MAAM,SAAS,EAAE,OAAO,WAAW;;;;AAMrE,SAAwB,YAAa,OAAO;AAE1C,KAAI,CAAC,MAAM,GAAG,QAAQ,YAAe;AAErC,MAAK,IAAI,SAAS,MAAM,OAAO,SAAS,GAAG,UAAU,GAAG,UAAU;AAChE,MAAI,MAAM,OAAO,QAAQ,SAAS,YAC9B,CAAC,cAAc,KAAK,MAAM,OAAO,QAAQ,QAAQ,CACnD;AAGF,kBAAgB,MAAM,OAAO,QAAQ,UAAU,MAAM"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_token = require('../token.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs
|
|
4
|
+
function StateCore(src, md, env) {
|
|
5
|
+
this.src = src;
|
|
6
|
+
this.env = env;
|
|
7
|
+
this.tokens = [];
|
|
8
|
+
this.inlineMode = false;
|
|
9
|
+
this.md = md;
|
|
10
|
+
}
|
|
11
|
+
StateCore.prototype.Token = require_token.default;
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.default = StateCore;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Token from "../token.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs
|
|
4
|
+
function StateCore(src, md, env) {
|
|
5
|
+
this.src = src;
|
|
6
|
+
this.env = env;
|
|
7
|
+
this.tokens = [];
|
|
8
|
+
this.inlineMode = false;
|
|
9
|
+
this.md = md;
|
|
10
|
+
}
|
|
11
|
+
StateCore.prototype.Token = Token;
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { StateCore as default };
|
|
15
|
+
//# sourceMappingURL=state_core.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state_core.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs"],"sourcesContent":["// Core state object\n//\n\nimport Token from '../token.mjs'\n\nfunction StateCore (src, md, env) {\n this.src = src\n this.env = env\n this.tokens = []\n this.inlineMode = false\n this.md = md // link to parser instance\n}\n\n// re-export Token class to use in core rules\nStateCore.prototype.Token = Token\n\nexport default StateCore\n"],"x_google_ignoreList":[0],"mappings":";;;AAKA,SAAS,UAAW,KAAK,IAAI,KAAK;AAChC,MAAK,MAAM;AACX,MAAK,MAAM;AACX,MAAK,SAAS,EAAE;AAChB,MAAK,aAAa;AAClB,MAAK,KAAK;;AAIZ,UAAU,UAAU,QAAQ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs
|
|
3
|
+
function text_join(state) {
|
|
4
|
+
let curr, last;
|
|
5
|
+
const blockTokens = state.tokens;
|
|
6
|
+
const l = blockTokens.length;
|
|
7
|
+
for (let j = 0; j < l; j++) {
|
|
8
|
+
if (blockTokens[j].type !== "inline") continue;
|
|
9
|
+
const tokens = blockTokens[j].children;
|
|
10
|
+
const max = tokens.length;
|
|
11
|
+
for (curr = 0; curr < max; curr++) if (tokens[curr].type === "text_special") tokens[curr].type = "text";
|
|
12
|
+
for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
13
|
+
else {
|
|
14
|
+
if (curr !== last) tokens[last] = tokens[curr];
|
|
15
|
+
last++;
|
|
16
|
+
}
|
|
17
|
+
if (curr !== last) tokens.length = last;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.default = text_join;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs
|
|
2
|
+
function text_join(state) {
|
|
3
|
+
let curr, last;
|
|
4
|
+
const blockTokens = state.tokens;
|
|
5
|
+
const l = blockTokens.length;
|
|
6
|
+
for (let j = 0; j < l; j++) {
|
|
7
|
+
if (blockTokens[j].type !== "inline") continue;
|
|
8
|
+
const tokens = blockTokens[j].children;
|
|
9
|
+
const max = tokens.length;
|
|
10
|
+
for (curr = 0; curr < max; curr++) if (tokens[curr].type === "text_special") tokens[curr].type = "text";
|
|
11
|
+
for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
12
|
+
else {
|
|
13
|
+
if (curr !== last) tokens[last] = tokens[curr];
|
|
14
|
+
last++;
|
|
15
|
+
}
|
|
16
|
+
if (curr !== last) tokens.length = last;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { text_join as default };
|
|
22
|
+
//# sourceMappingURL=text_join.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text_join.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs"],"sourcesContent":["// Join raw text tokens with the rest of the text\n//\n// This is set as a separate rule to provide an opportunity for plugins\n// to run text replacements after text join, but before escape join.\n//\n// For example, `\\:)` shouldn't be replaced with an emoji.\n//\n\nexport default function text_join (state) {\n let curr, last\n const blockTokens = state.tokens\n const l = blockTokens.length\n\n for (let j = 0; j < l; j++) {\n if (blockTokens[j].type !== 'inline') continue\n\n const tokens = blockTokens[j].children\n const max = tokens.length\n\n for (curr = 0; curr < max; curr++) {\n if (tokens[curr].type === 'text_special') {\n tokens[curr].type = 'text'\n }\n }\n\n for (curr = last = 0; curr < max; curr++) {\n if (tokens[curr].type === 'text' &&\n curr + 1 < max &&\n tokens[curr + 1].type === 'text') {\n // collapse two adjacent text nodes\n tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content\n } else {\n if (curr !== last) { tokens[last] = tokens[curr] }\n\n last++\n }\n }\n\n if (curr !== last) {\n tokens.length = last\n }\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";AAQA,SAAwB,UAAW,OAAO;CACxC,IAAI,MAAM;CACV,MAAM,cAAc,MAAM;CAC1B,MAAM,IAAI,YAAY;AAEtB,MAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK;AAC1B,MAAI,YAAY,GAAG,SAAS,SAAU;EAEtC,MAAM,SAAS,YAAY,GAAG;EAC9B,MAAM,MAAM,OAAO;AAEnB,OAAK,OAAO,GAAG,OAAO,KAAK,OACzB,KAAI,OAAO,MAAM,SAAS,eACxB,QAAO,MAAM,OAAO;AAIxB,OAAK,OAAO,OAAO,GAAG,OAAO,KAAK,OAChC,KAAI,OAAO,MAAM,SAAS,UACtB,OAAO,IAAI,OACX,OAAO,OAAO,GAAG,SAAS,OAE5B,QAAO,OAAO,GAAG,UAAU,OAAO,MAAM,UAAU,OAAO,OAAO,GAAG;OAC9D;AACL,OAAI,SAAS,KAAQ,QAAO,QAAQ,OAAO;AAE3C;;AAIJ,MAAI,SAAS,KACX,QAAO,SAAS"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs
|
|
3
|
+
const EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;
|
|
4
|
+
const AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
5
|
+
function autolink(state, silent) {
|
|
6
|
+
let pos = state.pos;
|
|
7
|
+
if (state.src.charCodeAt(pos) !== 60) return false;
|
|
8
|
+
const start = state.pos;
|
|
9
|
+
const max = state.posMax;
|
|
10
|
+
for (;;) {
|
|
11
|
+
if (++pos >= max) return false;
|
|
12
|
+
const ch = state.src.charCodeAt(pos);
|
|
13
|
+
if (ch === 60) return false;
|
|
14
|
+
if (ch === 62) break;
|
|
15
|
+
}
|
|
16
|
+
const url = state.src.slice(start + 1, pos);
|
|
17
|
+
if (AUTOLINK_RE.test(url)) {
|
|
18
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
19
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
20
|
+
if (!silent) {
|
|
21
|
+
const token_o = state.push("link_open", "a", 1);
|
|
22
|
+
token_o.attrs = [["href", fullUrl]];
|
|
23
|
+
token_o.markup = "autolink";
|
|
24
|
+
token_o.info = "auto";
|
|
25
|
+
const token_t = state.push("text", "", 0);
|
|
26
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
27
|
+
const token_c = state.push("link_close", "a", -1);
|
|
28
|
+
token_c.markup = "autolink";
|
|
29
|
+
token_c.info = "auto";
|
|
30
|
+
}
|
|
31
|
+
state.pos += url.length + 2;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (EMAIL_RE.test(url)) {
|
|
35
|
+
const fullUrl = state.md.normalizeLink("mailto:" + url);
|
|
36
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
37
|
+
if (!silent) {
|
|
38
|
+
const token_o = state.push("link_open", "a", 1);
|
|
39
|
+
token_o.attrs = [["href", fullUrl]];
|
|
40
|
+
token_o.markup = "autolink";
|
|
41
|
+
token_o.info = "auto";
|
|
42
|
+
const token_t = state.push("text", "", 0);
|
|
43
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
44
|
+
const token_c = state.push("link_close", "a", -1);
|
|
45
|
+
token_c.markup = "autolink";
|
|
46
|
+
token_c.info = "auto";
|
|
47
|
+
}
|
|
48
|
+
state.pos += url.length + 2;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.default = autolink;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs
|
|
2
|
+
const EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;
|
|
3
|
+
const AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
4
|
+
function autolink(state, silent) {
|
|
5
|
+
let pos = state.pos;
|
|
6
|
+
if (state.src.charCodeAt(pos) !== 60) return false;
|
|
7
|
+
const start = state.pos;
|
|
8
|
+
const max = state.posMax;
|
|
9
|
+
for (;;) {
|
|
10
|
+
if (++pos >= max) return false;
|
|
11
|
+
const ch = state.src.charCodeAt(pos);
|
|
12
|
+
if (ch === 60) return false;
|
|
13
|
+
if (ch === 62) break;
|
|
14
|
+
}
|
|
15
|
+
const url = state.src.slice(start + 1, pos);
|
|
16
|
+
if (AUTOLINK_RE.test(url)) {
|
|
17
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
18
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
19
|
+
if (!silent) {
|
|
20
|
+
const token_o = state.push("link_open", "a", 1);
|
|
21
|
+
token_o.attrs = [["href", fullUrl]];
|
|
22
|
+
token_o.markup = "autolink";
|
|
23
|
+
token_o.info = "auto";
|
|
24
|
+
const token_t = state.push("text", "", 0);
|
|
25
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
26
|
+
const token_c = state.push("link_close", "a", -1);
|
|
27
|
+
token_c.markup = "autolink";
|
|
28
|
+
token_c.info = "auto";
|
|
29
|
+
}
|
|
30
|
+
state.pos += url.length + 2;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
if (EMAIL_RE.test(url)) {
|
|
34
|
+
const fullUrl = state.md.normalizeLink("mailto:" + url);
|
|
35
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
36
|
+
if (!silent) {
|
|
37
|
+
const token_o = state.push("link_open", "a", 1);
|
|
38
|
+
token_o.attrs = [["href", fullUrl]];
|
|
39
|
+
token_o.markup = "autolink";
|
|
40
|
+
token_o.info = "auto";
|
|
41
|
+
const token_t = state.push("text", "", 0);
|
|
42
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
43
|
+
const token_c = state.push("link_close", "a", -1);
|
|
44
|
+
token_c.markup = "autolink";
|
|
45
|
+
token_c.info = "auto";
|
|
46
|
+
}
|
|
47
|
+
state.pos += url.length + 2;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { autolink as default };
|
|
55
|
+
//# sourceMappingURL=autolink.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autolink.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs"],"sourcesContent":["// Process autolinks '<protocol:...>'\n\n/* eslint max-len:0 */\nconst EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/\n/* eslint-disable-next-line no-control-regex */\nconst AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\\x00-\\x20]*)$/\n\nexport default function autolink (state, silent) {\n let pos = state.pos\n\n if (state.src.charCodeAt(pos) !== 0x3C/* < */) { return false }\n\n const start = state.pos\n const max = state.posMax\n\n for (;;) {\n if (++pos >= max) return false\n\n const ch = state.src.charCodeAt(pos)\n\n if (ch === 0x3C /* < */) return false\n if (ch === 0x3E /* > */) break\n }\n\n const url = state.src.slice(start + 1, pos)\n\n if (AUTOLINK_RE.test(url)) {\n const fullUrl = state.md.normalizeLink(url)\n if (!state.md.validateLink(fullUrl)) { return false }\n\n if (!silent) {\n const token_o = state.push('link_open', 'a', 1)\n token_o.attrs = [['href', fullUrl]]\n token_o.markup = 'autolink'\n token_o.info = 'auto'\n\n const token_t = state.push('text', '', 0)\n token_t.content = state.md.normalizeLinkText(url)\n\n const token_c = state.push('link_close', 'a', -1)\n token_c.markup = 'autolink'\n token_c.info = 'auto'\n }\n\n state.pos += url.length + 2\n return true\n }\n\n if (EMAIL_RE.test(url)) {\n const fullUrl = state.md.normalizeLink('mailto:' + url)\n if (!state.md.validateLink(fullUrl)) { return false }\n\n if (!silent) {\n const token_o = state.push('link_open', 'a', 1)\n token_o.attrs = [['href', fullUrl]]\n token_o.markup = 'autolink'\n token_o.info = 'auto'\n\n const token_t = state.push('text', '', 0)\n token_t.content = state.md.normalizeLinkText(url)\n\n const token_c = state.push('link_close', 'a', -1)\n token_c.markup = 'autolink'\n token_c.info = 'auto'\n }\n\n state.pos += url.length + 2\n return true\n }\n\n return false\n}\n"],"x_google_ignoreList":[0],"mappings":";AAGA,MAAM,WAAc;AAEpB,MAAM,cAAc;AAEpB,SAAwB,SAAU,OAAO,QAAQ;CAC/C,IAAI,MAAM,MAAM;AAEhB,KAAI,MAAM,IAAI,WAAW,IAAI,KAAK,GAAe,QAAO;CAExD,MAAM,QAAQ,MAAM;CACpB,MAAM,MAAM,MAAM;AAElB,UAAS;AACP,MAAI,EAAE,OAAO,IAAK,QAAO;EAEzB,MAAM,KAAK,MAAM,IAAI,WAAW,IAAI;AAEpC,MAAI,OAAO,GAAc,QAAO;AAChC,MAAI,OAAO,GAAc;;CAG3B,MAAM,MAAM,MAAM,IAAI,MAAM,QAAQ,GAAG,IAAI;AAE3C,KAAI,YAAY,KAAK,IAAI,EAAE;EACzB,MAAM,UAAU,MAAM,GAAG,cAAc,IAAI;AAC3C,MAAI,CAAC,MAAM,GAAG,aAAa,QAAQ,CAAI,QAAO;AAE9C,MAAI,CAAC,QAAQ;GACX,MAAM,UAAY,MAAM,KAAK,aAAa,KAAK,EAAE;AACjD,WAAQ,QAAU,CAAC,CAAC,QAAQ,QAAQ,CAAC;AACrC,WAAQ,SAAU;AAClB,WAAQ,OAAU;GAElB,MAAM,UAAY,MAAM,KAAK,QAAQ,IAAI,EAAE;AAC3C,WAAQ,UAAU,MAAM,GAAG,kBAAkB,IAAI;GAEjD,MAAM,UAAY,MAAM,KAAK,cAAc,KAAK,GAAG;AACnD,WAAQ,SAAU;AAClB,WAAQ,OAAU;;AAGpB,QAAM,OAAO,IAAI,SAAS;AAC1B,SAAO;;AAGT,KAAI,SAAS,KAAK,IAAI,EAAE;EACtB,MAAM,UAAU,MAAM,GAAG,cAAc,YAAY,IAAI;AACvD,MAAI,CAAC,MAAM,GAAG,aAAa,QAAQ,CAAI,QAAO;AAE9C,MAAI,CAAC,QAAQ;GACX,MAAM,UAAY,MAAM,KAAK,aAAa,KAAK,EAAE;AACjD,WAAQ,QAAU,CAAC,CAAC,QAAQ,QAAQ,CAAC;AACrC,WAAQ,SAAU;AAClB,WAAQ,OAAU;GAElB,MAAM,UAAY,MAAM,KAAK,QAAQ,IAAI,EAAE;AAC3C,WAAQ,UAAU,MAAM,GAAG,kBAAkB,IAAI;GAEjD,MAAM,UAAY,MAAM,KAAK,cAAc,KAAK,GAAG;AACnD,WAAQ,SAAU;AAClB,WAAQ,OAAU;;AAGpB,QAAM,OAAO,IAAI,SAAS;AAC1B,SAAO;;AAGT,QAAO"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs
|
|
3
|
+
function backtick(state, silent) {
|
|
4
|
+
let pos = state.pos;
|
|
5
|
+
if (state.src.charCodeAt(pos) !== 96) return false;
|
|
6
|
+
const start = pos;
|
|
7
|
+
pos++;
|
|
8
|
+
const max = state.posMax;
|
|
9
|
+
while (pos < max && state.src.charCodeAt(pos) === 96) pos++;
|
|
10
|
+
const marker = state.src.slice(start, pos);
|
|
11
|
+
const openerLength = marker.length;
|
|
12
|
+
if (state.backticksScanned && (state.backticks[openerLength] || 0) <= start) {
|
|
13
|
+
if (!silent) state.pending += marker;
|
|
14
|
+
state.pos += openerLength;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
let matchEnd = pos;
|
|
18
|
+
let matchStart;
|
|
19
|
+
while ((matchStart = state.src.indexOf("`", matchEnd)) !== -1) {
|
|
20
|
+
matchEnd = matchStart + 1;
|
|
21
|
+
while (matchEnd < max && state.src.charCodeAt(matchEnd) === 96) matchEnd++;
|
|
22
|
+
const closerLength = matchEnd - matchStart;
|
|
23
|
+
if (closerLength === openerLength) {
|
|
24
|
+
if (!silent) {
|
|
25
|
+
const token = state.push("code_inline", "code", 0);
|
|
26
|
+
token.markup = marker;
|
|
27
|
+
token.content = state.src.slice(pos, matchStart).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
28
|
+
}
|
|
29
|
+
state.pos = matchEnd;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
state.backticks[closerLength] = matchStart;
|
|
33
|
+
}
|
|
34
|
+
state.backticksScanned = true;
|
|
35
|
+
if (!silent) state.pending += marker;
|
|
36
|
+
state.pos += openerLength;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.default = backtick;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs
|
|
2
|
+
function backtick(state, silent) {
|
|
3
|
+
let pos = state.pos;
|
|
4
|
+
if (state.src.charCodeAt(pos) !== 96) return false;
|
|
5
|
+
const start = pos;
|
|
6
|
+
pos++;
|
|
7
|
+
const max = state.posMax;
|
|
8
|
+
while (pos < max && state.src.charCodeAt(pos) === 96) pos++;
|
|
9
|
+
const marker = state.src.slice(start, pos);
|
|
10
|
+
const openerLength = marker.length;
|
|
11
|
+
if (state.backticksScanned && (state.backticks[openerLength] || 0) <= start) {
|
|
12
|
+
if (!silent) state.pending += marker;
|
|
13
|
+
state.pos += openerLength;
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
let matchEnd = pos;
|
|
17
|
+
let matchStart;
|
|
18
|
+
while ((matchStart = state.src.indexOf("`", matchEnd)) !== -1) {
|
|
19
|
+
matchEnd = matchStart + 1;
|
|
20
|
+
while (matchEnd < max && state.src.charCodeAt(matchEnd) === 96) matchEnd++;
|
|
21
|
+
const closerLength = matchEnd - matchStart;
|
|
22
|
+
if (closerLength === openerLength) {
|
|
23
|
+
if (!silent) {
|
|
24
|
+
const token = state.push("code_inline", "code", 0);
|
|
25
|
+
token.markup = marker;
|
|
26
|
+
token.content = state.src.slice(pos, matchStart).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
27
|
+
}
|
|
28
|
+
state.pos = matchEnd;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
state.backticks[closerLength] = matchStart;
|
|
32
|
+
}
|
|
33
|
+
state.backticksScanned = true;
|
|
34
|
+
if (!silent) state.pending += marker;
|
|
35
|
+
state.pos += openerLength;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { backtick as default };
|
|
41
|
+
//# sourceMappingURL=backticks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backticks.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs"],"sourcesContent":["// Parse backticks\n\nexport default function backtick (state, silent) {\n let pos = state.pos\n const ch = state.src.charCodeAt(pos)\n\n if (ch !== 0x60/* ` */) { return false }\n\n const start = pos\n pos++\n const max = state.posMax\n\n // scan marker length\n while (pos < max && state.src.charCodeAt(pos) === 0x60/* ` */) { pos++ }\n\n const marker = state.src.slice(start, pos)\n const openerLength = marker.length\n\n if (state.backticksScanned && (state.backticks[openerLength] || 0) <= start) {\n if (!silent) state.pending += marker\n state.pos += openerLength\n return true\n }\n\n let matchEnd = pos\n let matchStart\n\n // Nothing found in the cache, scan until the end of the line (or until marker is found)\n while ((matchStart = state.src.indexOf('`', matchEnd)) !== -1) {\n matchEnd = matchStart + 1\n\n // scan marker length\n while (matchEnd < max && state.src.charCodeAt(matchEnd) === 0x60/* ` */) { matchEnd++ }\n\n const closerLength = matchEnd - matchStart\n\n if (closerLength === openerLength) {\n // Found matching closer length.\n if (!silent) {\n const token = state.push('code_inline', 'code', 0)\n token.markup = marker\n token.content = state.src.slice(pos, matchStart)\n .replace(/\\n/g, ' ')\n .replace(/^ (.+) $/, '$1')\n }\n state.pos = matchEnd\n return true\n }\n\n // Some different length found, put it in cache as upper limit of where closer can be found\n state.backticks[closerLength] = matchStart\n }\n\n // Scanned through the end, didn't find anything\n state.backticksScanned = true\n\n if (!silent) state.pending += marker\n state.pos += openerLength\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,SAAU,OAAO,QAAQ;CAC/C,IAAI,MAAM,MAAM;AAGhB,KAFW,MAAM,IAAI,WAAW,IAAI,KAEzB,GAAe,QAAO;CAEjC,MAAM,QAAQ;AACd;CACA,MAAM,MAAM,MAAM;AAGlB,QAAO,MAAM,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,GAAe;CAEjE,MAAM,SAAS,MAAM,IAAI,MAAM,OAAO,IAAI;CAC1C,MAAM,eAAe,OAAO;AAE5B,KAAI,MAAM,qBAAqB,MAAM,UAAU,iBAAiB,MAAM,OAAO;AAC3E,MAAI,CAAC,OAAQ,OAAM,WAAW;AAC9B,QAAM,OAAO;AACb,SAAO;;CAGT,IAAI,WAAW;CACf,IAAI;AAGJ,SAAQ,aAAa,MAAM,IAAI,QAAQ,KAAK,SAAS,MAAM,IAAI;AAC7D,aAAW,aAAa;AAGxB,SAAO,WAAW,OAAO,MAAM,IAAI,WAAW,SAAS,KAAK,GAAe;EAE3E,MAAM,eAAe,WAAW;AAEhC,MAAI,iBAAiB,cAAc;AAEjC,OAAI,CAAC,QAAQ;IACX,MAAM,QAAQ,MAAM,KAAK,eAAe,QAAQ,EAAE;AAClD,UAAM,SAAS;AACf,UAAM,UAAU,MAAM,IAAI,MAAM,KAAK,WAAW,CAC7C,QAAQ,OAAO,IAAI,CACnB,QAAQ,YAAY,KAAK;;AAE9B,SAAM,MAAM;AACZ,UAAO;;AAIT,QAAM,UAAU,gBAAgB;;AAIlC,OAAM,mBAAmB;AAEzB,KAAI,CAAC,OAAQ,OAAM,WAAW;AAC9B,OAAM,OAAO;AACb,QAAO"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs
|
|
3
|
+
function processDelimiters(delimiters) {
|
|
4
|
+
const openersBottom = {};
|
|
5
|
+
const max = delimiters.length;
|
|
6
|
+
if (!max) return;
|
|
7
|
+
let headerIdx = 0;
|
|
8
|
+
let lastTokenIdx = -2;
|
|
9
|
+
const jumps = [];
|
|
10
|
+
for (let closerIdx = 0; closerIdx < max; closerIdx++) {
|
|
11
|
+
const closer = delimiters[closerIdx];
|
|
12
|
+
jumps.push(0);
|
|
13
|
+
if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) headerIdx = closerIdx;
|
|
14
|
+
lastTokenIdx = closer.token;
|
|
15
|
+
closer.length = closer.length || 0;
|
|
16
|
+
if (!closer.close) continue;
|
|
17
|
+
if (!openersBottom.hasOwnProperty(closer.marker)) openersBottom[closer.marker] = [
|
|
18
|
+
-1,
|
|
19
|
+
-1,
|
|
20
|
+
-1,
|
|
21
|
+
-1,
|
|
22
|
+
-1,
|
|
23
|
+
-1
|
|
24
|
+
];
|
|
25
|
+
const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];
|
|
26
|
+
let openerIdx = headerIdx - jumps[headerIdx] - 1;
|
|
27
|
+
let newMinOpenerIdx = openerIdx;
|
|
28
|
+
for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {
|
|
29
|
+
const opener = delimiters[openerIdx];
|
|
30
|
+
if (opener.marker !== closer.marker) continue;
|
|
31
|
+
if (opener.open && opener.end < 0) {
|
|
32
|
+
let isOddMatch = false;
|
|
33
|
+
if (opener.close || closer.open) {
|
|
34
|
+
if ((opener.length + closer.length) % 3 === 0) {
|
|
35
|
+
if (opener.length % 3 !== 0 || closer.length % 3 !== 0) isOddMatch = true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (!isOddMatch) {
|
|
39
|
+
const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;
|
|
40
|
+
jumps[closerIdx] = closerIdx - openerIdx + lastJump;
|
|
41
|
+
jumps[openerIdx] = lastJump;
|
|
42
|
+
closer.open = false;
|
|
43
|
+
opener.end = closerIdx;
|
|
44
|
+
opener.close = false;
|
|
45
|
+
newMinOpenerIdx = -1;
|
|
46
|
+
lastTokenIdx = -2;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (newMinOpenerIdx !== -1) openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function link_pairs(state) {
|
|
55
|
+
const tokens_meta = state.tokens_meta;
|
|
56
|
+
const max = state.tokens_meta.length;
|
|
57
|
+
processDelimiters(state.delimiters);
|
|
58
|
+
for (let curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) processDelimiters(tokens_meta[curr].delimiters);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
exports.default = link_pairs;
|