@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,83 @@
|
|
|
1
|
+
import { isSpace, normalizeReference } from "../common/utils.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs
|
|
4
|
+
function image(state, silent) {
|
|
5
|
+
let code, content, label, pos, ref, res, title, start;
|
|
6
|
+
let href = "";
|
|
7
|
+
const oldPos = state.pos;
|
|
8
|
+
const max = state.posMax;
|
|
9
|
+
if (state.src.charCodeAt(state.pos) !== 33) return false;
|
|
10
|
+
if (state.src.charCodeAt(state.pos + 1) !== 91) return false;
|
|
11
|
+
const labelStart = state.pos + 2;
|
|
12
|
+
const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false);
|
|
13
|
+
if (labelEnd < 0) return false;
|
|
14
|
+
pos = labelEnd + 1;
|
|
15
|
+
if (pos < max && state.src.charCodeAt(pos) === 40) {
|
|
16
|
+
pos++;
|
|
17
|
+
for (; pos < max; pos++) {
|
|
18
|
+
code = state.src.charCodeAt(pos);
|
|
19
|
+
if (!isSpace(code) && code !== 10) break;
|
|
20
|
+
}
|
|
21
|
+
if (pos >= max) return false;
|
|
22
|
+
start = pos;
|
|
23
|
+
res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
|
|
24
|
+
if (res.ok) {
|
|
25
|
+
href = state.md.normalizeLink(res.str);
|
|
26
|
+
if (state.md.validateLink(href)) pos = res.pos;
|
|
27
|
+
else href = "";
|
|
28
|
+
}
|
|
29
|
+
start = pos;
|
|
30
|
+
for (; pos < max; pos++) {
|
|
31
|
+
code = state.src.charCodeAt(pos);
|
|
32
|
+
if (!isSpace(code) && code !== 10) break;
|
|
33
|
+
}
|
|
34
|
+
res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
|
|
35
|
+
if (pos < max && start !== pos && res.ok) {
|
|
36
|
+
title = res.str;
|
|
37
|
+
pos = res.pos;
|
|
38
|
+
for (; pos < max; pos++) {
|
|
39
|
+
code = state.src.charCodeAt(pos);
|
|
40
|
+
if (!isSpace(code) && code !== 10) break;
|
|
41
|
+
}
|
|
42
|
+
} else title = "";
|
|
43
|
+
if (pos >= max || state.src.charCodeAt(pos) !== 41) {
|
|
44
|
+
state.pos = oldPos;
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
pos++;
|
|
48
|
+
} else {
|
|
49
|
+
if (typeof state.env.references === "undefined") return false;
|
|
50
|
+
if (pos < max && state.src.charCodeAt(pos) === 91) {
|
|
51
|
+
start = pos + 1;
|
|
52
|
+
pos = state.md.helpers.parseLinkLabel(state, pos);
|
|
53
|
+
if (pos >= 0) label = state.src.slice(start, pos++);
|
|
54
|
+
else pos = labelEnd + 1;
|
|
55
|
+
} else pos = labelEnd + 1;
|
|
56
|
+
if (!label) label = state.src.slice(labelStart, labelEnd);
|
|
57
|
+
ref = state.env.references[normalizeReference(label)];
|
|
58
|
+
if (!ref) {
|
|
59
|
+
state.pos = oldPos;
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
href = ref.href;
|
|
63
|
+
title = ref.title;
|
|
64
|
+
}
|
|
65
|
+
if (!silent) {
|
|
66
|
+
content = state.src.slice(labelStart, labelEnd);
|
|
67
|
+
const tokens = [];
|
|
68
|
+
state.md.inline.parse(content, state.md, state.env, tokens);
|
|
69
|
+
const token = state.push("image", "img", 0);
|
|
70
|
+
const attrs = [["src", href], ["alt", ""]];
|
|
71
|
+
token.attrs = attrs;
|
|
72
|
+
token.children = tokens;
|
|
73
|
+
token.content = content;
|
|
74
|
+
if (title) attrs.push(["title", title]);
|
|
75
|
+
}
|
|
76
|
+
state.pos = pos;
|
|
77
|
+
state.posMax = max;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
export { image as default };
|
|
83
|
+
//# sourceMappingURL=image.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs"],"sourcesContent":["// Process \n\nimport { normalizeReference, isSpace } from '../common/utils.mjs'\n\nexport default function image (state, silent) {\n let code, content, label, pos, ref, res, title, start\n let href = ''\n const oldPos = state.pos\n const max = state.posMax\n\n if (state.src.charCodeAt(state.pos) !== 0x21/* ! */) { return false }\n if (state.src.charCodeAt(state.pos + 1) !== 0x5B/* [ */) { return false }\n\n const labelStart = state.pos + 2\n const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false)\n\n // parser failed to find ']', so it's not a valid link\n if (labelEnd < 0) { return false }\n\n pos = labelEnd + 1\n if (pos < max && state.src.charCodeAt(pos) === 0x28/* ( */) {\n //\n // Inline link\n //\n\n // [link]( <href> \"title\" )\n // ^^ skipping these spaces\n pos++\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos)\n if (!isSpace(code) && code !== 0x0A) { break }\n }\n if (pos >= max) { return false }\n\n // [link]( <href> \"title\" )\n // ^^^^^^ parsing link destination\n start = pos\n res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax)\n if (res.ok) {\n href = state.md.normalizeLink(res.str)\n if (state.md.validateLink(href)) {\n pos = res.pos\n } else {\n href = ''\n }\n }\n\n // [link]( <href> \"title\" )\n // ^^ skipping these spaces\n start = pos\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos)\n if (!isSpace(code) && code !== 0x0A) { break }\n }\n\n // [link]( <href> \"title\" )\n // ^^^^^^^ parsing link title\n res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax)\n if (pos < max && start !== pos && res.ok) {\n title = res.str\n pos = res.pos\n\n // [link]( <href> \"title\" )\n // ^^ skipping these spaces\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos)\n if (!isSpace(code) && code !== 0x0A) { break }\n }\n } else {\n title = ''\n }\n\n if (pos >= max || state.src.charCodeAt(pos) !== 0x29/* ) */) {\n state.pos = oldPos\n return false\n }\n pos++\n } else {\n //\n // Link reference\n //\n if (typeof state.env.references === 'undefined') { return false }\n\n if (pos < max && state.src.charCodeAt(pos) === 0x5B/* [ */) {\n start = pos + 1\n pos = state.md.helpers.parseLinkLabel(state, pos)\n if (pos >= 0) {\n label = state.src.slice(start, pos++)\n } else {\n pos = labelEnd + 1\n }\n } else {\n pos = labelEnd + 1\n }\n\n // covers label === '' and label === undefined\n // (collapsed reference link and shortcut reference link respectively)\n if (!label) { label = state.src.slice(labelStart, labelEnd) }\n\n ref = state.env.references[normalizeReference(label)]\n if (!ref) {\n state.pos = oldPos\n return false\n }\n href = ref.href\n title = ref.title\n }\n\n //\n // We found the end of the link, and know for a fact it's a valid link;\n // so all that's left to do is to call tokenizer.\n //\n if (!silent) {\n content = state.src.slice(labelStart, labelEnd)\n\n const tokens = []\n state.md.inline.parse(\n content,\n state.md,\n state.env,\n tokens\n )\n\n const token = state.push('image', 'img', 0)\n const attrs = [['src', href], ['alt', '']]\n token.attrs = attrs\n token.children = tokens\n token.content = content\n\n if (title) {\n attrs.push(['title', title])\n }\n }\n\n state.pos = pos\n state.posMax = max\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA,SAAwB,MAAO,OAAO,QAAQ;CAC5C,IAAI,MAAM,SAAS,OAAO,KAAK,KAAK,KAAK,OAAO;CAChD,IAAI,OAAO;CACX,MAAM,SAAS,MAAM;CACrB,MAAM,MAAM,MAAM;AAElB,KAAI,MAAM,IAAI,WAAW,MAAM,IAAI,KAAK,GAAe,QAAO;AAC9D,KAAI,MAAM,IAAI,WAAW,MAAM,MAAM,EAAE,KAAK,GAAe,QAAO;CAElE,MAAM,aAAa,MAAM,MAAM;CAC/B,MAAM,WAAW,MAAM,GAAG,QAAQ,eAAe,OAAO,MAAM,MAAM,GAAG,MAAM;AAG7E,KAAI,WAAW,EAAK,QAAO;AAE3B,OAAM,WAAW;AACjB,KAAI,MAAM,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,IAAa;AAO1D;AACA,SAAO,MAAM,KAAK,OAAO;AACvB,UAAO,MAAM,IAAI,WAAW,IAAI;AAChC,OAAI,CAAC,QAAQ,KAAK,IAAI,SAAS,GAAQ;;AAEzC,MAAI,OAAO,IAAO,QAAO;AAIzB,UAAQ;AACR,QAAM,MAAM,GAAG,QAAQ,qBAAqB,MAAM,KAAK,KAAK,MAAM,OAAO;AACzE,MAAI,IAAI,IAAI;AACV,UAAO,MAAM,GAAG,cAAc,IAAI,IAAI;AACtC,OAAI,MAAM,GAAG,aAAa,KAAK,CAC7B,OAAM,IAAI;OAEV,QAAO;;AAMX,UAAQ;AACR,SAAO,MAAM,KAAK,OAAO;AACvB,UAAO,MAAM,IAAI,WAAW,IAAI;AAChC,OAAI,CAAC,QAAQ,KAAK,IAAI,SAAS,GAAQ;;AAKzC,QAAM,MAAM,GAAG,QAAQ,eAAe,MAAM,KAAK,KAAK,MAAM,OAAO;AACnE,MAAI,MAAM,OAAO,UAAU,OAAO,IAAI,IAAI;AACxC,WAAQ,IAAI;AACZ,SAAM,IAAI;AAIV,UAAO,MAAM,KAAK,OAAO;AACvB,WAAO,MAAM,IAAI,WAAW,IAAI;AAChC,QAAI,CAAC,QAAQ,KAAK,IAAI,SAAS,GAAQ;;QAGzC,SAAQ;AAGV,MAAI,OAAO,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,IAAa;AAC3D,SAAM,MAAM;AACZ,UAAO;;AAET;QACK;AAIL,MAAI,OAAO,MAAM,IAAI,eAAe,YAAe,QAAO;AAE1D,MAAI,MAAM,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,IAAa;AAC1D,WAAQ,MAAM;AACd,SAAM,MAAM,GAAG,QAAQ,eAAe,OAAO,IAAI;AACjD,OAAI,OAAO,EACT,SAAQ,MAAM,IAAI,MAAM,OAAO,MAAM;OAErC,OAAM,WAAW;QAGnB,OAAM,WAAW;AAKnB,MAAI,CAAC,MAAS,SAAQ,MAAM,IAAI,MAAM,YAAY,SAAS;AAE3D,QAAM,MAAM,IAAI,WAAW,mBAAmB,MAAM;AACpD,MAAI,CAAC,KAAK;AACR,SAAM,MAAM;AACZ,UAAO;;AAET,SAAO,IAAI;AACX,UAAQ,IAAI;;AAOd,KAAI,CAAC,QAAQ;AACX,YAAU,MAAM,IAAI,MAAM,YAAY,SAAS;EAE/C,MAAM,SAAS,EAAE;AACjB,QAAM,GAAG,OAAO,MACd,SACA,MAAM,IACN,MAAM,KACN,OACD;EAED,MAAM,QAAQ,MAAM,KAAK,SAAS,OAAO,EAAE;EAC3C,MAAM,QAAQ,CAAC,CAAC,OAAO,KAAK,EAAE,CAAC,OAAO,GAAG,CAAC;AAC1C,QAAM,QAAQ;AACd,QAAM,WAAW;AACjB,QAAM,UAAU;AAEhB,MAAI,MACF,OAAM,KAAK,CAAC,SAAS,MAAM,CAAC;;AAIhC,OAAM,MAAM;AACZ,OAAM,SAAS;AACf,QAAO"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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_inline/link.mjs
|
|
4
|
+
function link(state, silent) {
|
|
5
|
+
let code, label, res, ref;
|
|
6
|
+
let href = "";
|
|
7
|
+
let title = "";
|
|
8
|
+
let start = state.pos;
|
|
9
|
+
let parseReference = true;
|
|
10
|
+
if (state.src.charCodeAt(state.pos) !== 91) return false;
|
|
11
|
+
const oldPos = state.pos;
|
|
12
|
+
const max = state.posMax;
|
|
13
|
+
const labelStart = state.pos + 1;
|
|
14
|
+
const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);
|
|
15
|
+
if (labelEnd < 0) return false;
|
|
16
|
+
let pos = labelEnd + 1;
|
|
17
|
+
if (pos < max && state.src.charCodeAt(pos) === 40) {
|
|
18
|
+
parseReference = false;
|
|
19
|
+
pos++;
|
|
20
|
+
for (; pos < max; pos++) {
|
|
21
|
+
code = state.src.charCodeAt(pos);
|
|
22
|
+
if (!require_utils.isSpace(code) && code !== 10) break;
|
|
23
|
+
}
|
|
24
|
+
if (pos >= max) return false;
|
|
25
|
+
start = pos;
|
|
26
|
+
res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
|
|
27
|
+
if (res.ok) {
|
|
28
|
+
href = state.md.normalizeLink(res.str);
|
|
29
|
+
if (state.md.validateLink(href)) pos = res.pos;
|
|
30
|
+
else href = "";
|
|
31
|
+
start = pos;
|
|
32
|
+
for (; pos < max; pos++) {
|
|
33
|
+
code = state.src.charCodeAt(pos);
|
|
34
|
+
if (!require_utils.isSpace(code) && code !== 10) break;
|
|
35
|
+
}
|
|
36
|
+
res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
|
|
37
|
+
if (pos < max && start !== pos && res.ok) {
|
|
38
|
+
title = res.str;
|
|
39
|
+
pos = res.pos;
|
|
40
|
+
for (; pos < max; pos++) {
|
|
41
|
+
code = state.src.charCodeAt(pos);
|
|
42
|
+
if (!require_utils.isSpace(code) && code !== 10) break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (pos >= max || state.src.charCodeAt(pos) !== 41) parseReference = true;
|
|
47
|
+
pos++;
|
|
48
|
+
}
|
|
49
|
+
if (parseReference) {
|
|
50
|
+
if (typeof state.env.references === "undefined") return false;
|
|
51
|
+
if (pos < max && state.src.charCodeAt(pos) === 91) {
|
|
52
|
+
start = pos + 1;
|
|
53
|
+
pos = state.md.helpers.parseLinkLabel(state, pos);
|
|
54
|
+
if (pos >= 0) label = state.src.slice(start, pos++);
|
|
55
|
+
else pos = labelEnd + 1;
|
|
56
|
+
} else pos = labelEnd + 1;
|
|
57
|
+
if (!label) label = state.src.slice(labelStart, labelEnd);
|
|
58
|
+
ref = state.env.references[require_utils.normalizeReference(label)];
|
|
59
|
+
if (!ref) {
|
|
60
|
+
state.pos = oldPos;
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
href = ref.href;
|
|
64
|
+
title = ref.title;
|
|
65
|
+
}
|
|
66
|
+
if (!silent) {
|
|
67
|
+
state.pos = labelStart;
|
|
68
|
+
state.posMax = labelEnd;
|
|
69
|
+
const token_o = state.push("link_open", "a", 1);
|
|
70
|
+
const attrs = [["href", href]];
|
|
71
|
+
token_o.attrs = attrs;
|
|
72
|
+
if (title) attrs.push(["title", title]);
|
|
73
|
+
state.linkLevel++;
|
|
74
|
+
state.md.inline.tokenize(state);
|
|
75
|
+
state.linkLevel--;
|
|
76
|
+
state.push("link_close", "a", -1);
|
|
77
|
+
}
|
|
78
|
+
state.pos = pos;
|
|
79
|
+
state.posMax = max;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
exports.default = link;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { isSpace, normalizeReference } from "../common/utils.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs
|
|
4
|
+
function link(state, silent) {
|
|
5
|
+
let code, label, res, ref;
|
|
6
|
+
let href = "";
|
|
7
|
+
let title = "";
|
|
8
|
+
let start = state.pos;
|
|
9
|
+
let parseReference = true;
|
|
10
|
+
if (state.src.charCodeAt(state.pos) !== 91) return false;
|
|
11
|
+
const oldPos = state.pos;
|
|
12
|
+
const max = state.posMax;
|
|
13
|
+
const labelStart = state.pos + 1;
|
|
14
|
+
const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);
|
|
15
|
+
if (labelEnd < 0) return false;
|
|
16
|
+
let pos = labelEnd + 1;
|
|
17
|
+
if (pos < max && state.src.charCodeAt(pos) === 40) {
|
|
18
|
+
parseReference = false;
|
|
19
|
+
pos++;
|
|
20
|
+
for (; pos < max; pos++) {
|
|
21
|
+
code = state.src.charCodeAt(pos);
|
|
22
|
+
if (!isSpace(code) && code !== 10) break;
|
|
23
|
+
}
|
|
24
|
+
if (pos >= max) return false;
|
|
25
|
+
start = pos;
|
|
26
|
+
res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
|
|
27
|
+
if (res.ok) {
|
|
28
|
+
href = state.md.normalizeLink(res.str);
|
|
29
|
+
if (state.md.validateLink(href)) pos = res.pos;
|
|
30
|
+
else href = "";
|
|
31
|
+
start = pos;
|
|
32
|
+
for (; pos < max; pos++) {
|
|
33
|
+
code = state.src.charCodeAt(pos);
|
|
34
|
+
if (!isSpace(code) && code !== 10) break;
|
|
35
|
+
}
|
|
36
|
+
res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
|
|
37
|
+
if (pos < max && start !== pos && res.ok) {
|
|
38
|
+
title = res.str;
|
|
39
|
+
pos = res.pos;
|
|
40
|
+
for (; pos < max; pos++) {
|
|
41
|
+
code = state.src.charCodeAt(pos);
|
|
42
|
+
if (!isSpace(code) && code !== 10) break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (pos >= max || state.src.charCodeAt(pos) !== 41) parseReference = true;
|
|
47
|
+
pos++;
|
|
48
|
+
}
|
|
49
|
+
if (parseReference) {
|
|
50
|
+
if (typeof state.env.references === "undefined") return false;
|
|
51
|
+
if (pos < max && state.src.charCodeAt(pos) === 91) {
|
|
52
|
+
start = pos + 1;
|
|
53
|
+
pos = state.md.helpers.parseLinkLabel(state, pos);
|
|
54
|
+
if (pos >= 0) label = state.src.slice(start, pos++);
|
|
55
|
+
else pos = labelEnd + 1;
|
|
56
|
+
} else pos = labelEnd + 1;
|
|
57
|
+
if (!label) label = state.src.slice(labelStart, labelEnd);
|
|
58
|
+
ref = state.env.references[normalizeReference(label)];
|
|
59
|
+
if (!ref) {
|
|
60
|
+
state.pos = oldPos;
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
href = ref.href;
|
|
64
|
+
title = ref.title;
|
|
65
|
+
}
|
|
66
|
+
if (!silent) {
|
|
67
|
+
state.pos = labelStart;
|
|
68
|
+
state.posMax = labelEnd;
|
|
69
|
+
const token_o = state.push("link_open", "a", 1);
|
|
70
|
+
const attrs = [["href", href]];
|
|
71
|
+
token_o.attrs = attrs;
|
|
72
|
+
if (title) attrs.push(["title", title]);
|
|
73
|
+
state.linkLevel++;
|
|
74
|
+
state.md.inline.tokenize(state);
|
|
75
|
+
state.linkLevel--;
|
|
76
|
+
state.push("link_close", "a", -1);
|
|
77
|
+
}
|
|
78
|
+
state.pos = pos;
|
|
79
|
+
state.posMax = max;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
export { link as default };
|
|
85
|
+
//# sourceMappingURL=link.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs"],"sourcesContent":["// Process [link](<to> \"stuff\")\n\nimport { normalizeReference, isSpace } from '../common/utils.mjs'\n\nexport default function link (state, silent) {\n let code, label, res, ref\n let href = ''\n let title = ''\n let start = state.pos\n let parseReference = true\n\n if (state.src.charCodeAt(state.pos) !== 0x5B/* [ */) { return false }\n\n const oldPos = state.pos\n const max = state.posMax\n const labelStart = state.pos + 1\n const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true)\n\n // parser failed to find ']', so it's not a valid link\n if (labelEnd < 0) { return false }\n\n let pos = labelEnd + 1\n if (pos < max && state.src.charCodeAt(pos) === 0x28/* ( */) {\n //\n // Inline link\n //\n\n // might have found a valid shortcut link, disable reference parsing\n parseReference = false\n\n // [link]( <href> \"title\" )\n // ^^ skipping these spaces\n pos++\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos)\n if (!isSpace(code) && code !== 0x0A) { break }\n }\n if (pos >= max) { return false }\n\n // [link]( <href> \"title\" )\n // ^^^^^^ parsing link destination\n start = pos\n res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax)\n if (res.ok) {\n href = state.md.normalizeLink(res.str)\n if (state.md.validateLink(href)) {\n pos = res.pos\n } else {\n href = ''\n }\n\n // [link]( <href> \"title\" )\n // ^^ skipping these spaces\n start = pos\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos)\n if (!isSpace(code) && code !== 0x0A) { break }\n }\n\n // [link]( <href> \"title\" )\n // ^^^^^^^ parsing link title\n res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax)\n if (pos < max && start !== pos && res.ok) {\n title = res.str\n pos = res.pos\n\n // [link]( <href> \"title\" )\n // ^^ skipping these spaces\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos)\n if (!isSpace(code) && code !== 0x0A) { break }\n }\n }\n }\n\n if (pos >= max || state.src.charCodeAt(pos) !== 0x29/* ) */) {\n // parsing a valid shortcut link failed, fallback to reference\n parseReference = true\n }\n pos++\n }\n\n if (parseReference) {\n //\n // Link reference\n //\n if (typeof state.env.references === 'undefined') { return false }\n\n if (pos < max && state.src.charCodeAt(pos) === 0x5B/* [ */) {\n start = pos + 1\n pos = state.md.helpers.parseLinkLabel(state, pos)\n if (pos >= 0) {\n label = state.src.slice(start, pos++)\n } else {\n pos = labelEnd + 1\n }\n } else {\n pos = labelEnd + 1\n }\n\n // covers label === '' and label === undefined\n // (collapsed reference link and shortcut reference link respectively)\n if (!label) { label = state.src.slice(labelStart, labelEnd) }\n\n ref = state.env.references[normalizeReference(label)]\n if (!ref) {\n state.pos = oldPos\n return false\n }\n href = ref.href\n title = ref.title\n }\n\n //\n // We found the end of the link, and know for a fact it's a valid link;\n // so all that's left to do is to call tokenizer.\n //\n if (!silent) {\n state.pos = labelStart\n state.posMax = labelEnd\n\n const token_o = state.push('link_open', 'a', 1)\n const attrs = [['href', href]]\n token_o.attrs = attrs\n if (title) {\n attrs.push(['title', title])\n }\n\n state.linkLevel++\n state.md.inline.tokenize(state)\n state.linkLevel--\n\n state.push('link_close', 'a', -1)\n }\n\n state.pos = pos\n state.posMax = max\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA,SAAwB,KAAM,OAAO,QAAQ;CAC3C,IAAI,MAAM,OAAO,KAAK;CACtB,IAAI,OAAO;CACX,IAAI,QAAQ;CACZ,IAAI,QAAQ,MAAM;CAClB,IAAI,iBAAiB;AAErB,KAAI,MAAM,IAAI,WAAW,MAAM,IAAI,KAAK,GAAe,QAAO;CAE9D,MAAM,SAAS,MAAM;CACrB,MAAM,MAAM,MAAM;CAClB,MAAM,aAAa,MAAM,MAAM;CAC/B,MAAM,WAAW,MAAM,GAAG,QAAQ,eAAe,OAAO,MAAM,KAAK,KAAK;AAGxE,KAAI,WAAW,EAAK,QAAO;CAE3B,IAAI,MAAM,WAAW;AACrB,KAAI,MAAM,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,IAAa;AAM1D,mBAAiB;AAIjB;AACA,SAAO,MAAM,KAAK,OAAO;AACvB,UAAO,MAAM,IAAI,WAAW,IAAI;AAChC,OAAI,CAAC,QAAQ,KAAK,IAAI,SAAS,GAAQ;;AAEzC,MAAI,OAAO,IAAO,QAAO;AAIzB,UAAQ;AACR,QAAM,MAAM,GAAG,QAAQ,qBAAqB,MAAM,KAAK,KAAK,MAAM,OAAO;AACzE,MAAI,IAAI,IAAI;AACV,UAAO,MAAM,GAAG,cAAc,IAAI,IAAI;AACtC,OAAI,MAAM,GAAG,aAAa,KAAK,CAC7B,OAAM,IAAI;OAEV,QAAO;AAKT,WAAQ;AACR,UAAO,MAAM,KAAK,OAAO;AACvB,WAAO,MAAM,IAAI,WAAW,IAAI;AAChC,QAAI,CAAC,QAAQ,KAAK,IAAI,SAAS,GAAQ;;AAKzC,SAAM,MAAM,GAAG,QAAQ,eAAe,MAAM,KAAK,KAAK,MAAM,OAAO;AACnE,OAAI,MAAM,OAAO,UAAU,OAAO,IAAI,IAAI;AACxC,YAAQ,IAAI;AACZ,UAAM,IAAI;AAIV,WAAO,MAAM,KAAK,OAAO;AACvB,YAAO,MAAM,IAAI,WAAW,IAAI;AAChC,SAAI,CAAC,QAAQ,KAAK,IAAI,SAAS,GAAQ;;;;AAK7C,MAAI,OAAO,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,GAE9C,kBAAiB;AAEnB;;AAGF,KAAI,gBAAgB;AAIlB,MAAI,OAAO,MAAM,IAAI,eAAe,YAAe,QAAO;AAE1D,MAAI,MAAM,OAAO,MAAM,IAAI,WAAW,IAAI,KAAK,IAAa;AAC1D,WAAQ,MAAM;AACd,SAAM,MAAM,GAAG,QAAQ,eAAe,OAAO,IAAI;AACjD,OAAI,OAAO,EACT,SAAQ,MAAM,IAAI,MAAM,OAAO,MAAM;OAErC,OAAM,WAAW;QAGnB,OAAM,WAAW;AAKnB,MAAI,CAAC,MAAS,SAAQ,MAAM,IAAI,MAAM,YAAY,SAAS;AAE3D,QAAM,MAAM,IAAI,WAAW,mBAAmB,MAAM;AACpD,MAAI,CAAC,KAAK;AACR,SAAM,MAAM;AACZ,UAAO;;AAET,SAAO,IAAI;AACX,UAAQ,IAAI;;AAOd,KAAI,CAAC,QAAQ;AACX,QAAM,MAAM;AACZ,QAAM,SAAS;EAEf,MAAM,UAAU,MAAM,KAAK,aAAa,KAAK,EAAE;EAC/C,MAAM,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC;AAC9B,UAAQ,QAAS;AACjB,MAAI,MACF,OAAM,KAAK,CAAC,SAAS,MAAM,CAAC;AAG9B,QAAM;AACN,QAAM,GAAG,OAAO,SAAS,MAAM;AAC/B,QAAM;AAEN,QAAM,KAAK,cAAc,KAAK,GAAG;;AAGnC,OAAM,MAAM;AACZ,OAAM,SAAS;AACf,QAAO"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs
|
|
3
|
+
const SCHEME_RE = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
4
|
+
function linkify(state, silent) {
|
|
5
|
+
if (!state.md.options.linkify) return false;
|
|
6
|
+
if (state.linkLevel > 0) return false;
|
|
7
|
+
const pos = state.pos;
|
|
8
|
+
const max = state.posMax;
|
|
9
|
+
if (pos + 3 > max) return false;
|
|
10
|
+
if (state.src.charCodeAt(pos) !== 58) return false;
|
|
11
|
+
if (state.src.charCodeAt(pos + 1) !== 47) return false;
|
|
12
|
+
if (state.src.charCodeAt(pos + 2) !== 47) return false;
|
|
13
|
+
const match = state.pending.match(SCHEME_RE);
|
|
14
|
+
if (!match) return false;
|
|
15
|
+
const proto = match[1];
|
|
16
|
+
const link = state.md.linkify.matchAtStart(state.src.slice(pos - proto.length));
|
|
17
|
+
if (!link) return false;
|
|
18
|
+
let url = link.url;
|
|
19
|
+
if (url.length <= proto.length) return false;
|
|
20
|
+
let urlEnd = url.length;
|
|
21
|
+
while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 42) urlEnd--;
|
|
22
|
+
if (urlEnd !== url.length) url = url.slice(0, urlEnd);
|
|
23
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
24
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
25
|
+
if (!silent) {
|
|
26
|
+
state.pending = state.pending.slice(0, -proto.length);
|
|
27
|
+
const token_o = state.push("link_open", "a", 1);
|
|
28
|
+
token_o.attrs = [["href", fullUrl]];
|
|
29
|
+
token_o.markup = "linkify";
|
|
30
|
+
token_o.info = "auto";
|
|
31
|
+
const token_t = state.push("text", "", 0);
|
|
32
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
33
|
+
const token_c = state.push("link_close", "a", -1);
|
|
34
|
+
token_c.markup = "linkify";
|
|
35
|
+
token_c.info = "auto";
|
|
36
|
+
}
|
|
37
|
+
state.pos += url.length - proto.length;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.default = linkify;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs
|
|
2
|
+
const SCHEME_RE = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
3
|
+
function linkify(state, silent) {
|
|
4
|
+
if (!state.md.options.linkify) return false;
|
|
5
|
+
if (state.linkLevel > 0) return false;
|
|
6
|
+
const pos = state.pos;
|
|
7
|
+
const max = state.posMax;
|
|
8
|
+
if (pos + 3 > max) return false;
|
|
9
|
+
if (state.src.charCodeAt(pos) !== 58) return false;
|
|
10
|
+
if (state.src.charCodeAt(pos + 1) !== 47) return false;
|
|
11
|
+
if (state.src.charCodeAt(pos + 2) !== 47) return false;
|
|
12
|
+
const match = state.pending.match(SCHEME_RE);
|
|
13
|
+
if (!match) return false;
|
|
14
|
+
const proto = match[1];
|
|
15
|
+
const link = state.md.linkify.matchAtStart(state.src.slice(pos - proto.length));
|
|
16
|
+
if (!link) return false;
|
|
17
|
+
let url = link.url;
|
|
18
|
+
if (url.length <= proto.length) return false;
|
|
19
|
+
let urlEnd = url.length;
|
|
20
|
+
while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 42) urlEnd--;
|
|
21
|
+
if (urlEnd !== url.length) url = url.slice(0, urlEnd);
|
|
22
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
23
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
24
|
+
if (!silent) {
|
|
25
|
+
state.pending = state.pending.slice(0, -proto.length);
|
|
26
|
+
const token_o = state.push("link_open", "a", 1);
|
|
27
|
+
token_o.attrs = [["href", fullUrl]];
|
|
28
|
+
token_o.markup = "linkify";
|
|
29
|
+
token_o.info = "auto";
|
|
30
|
+
const token_t = state.push("text", "", 0);
|
|
31
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
32
|
+
const token_c = state.push("link_close", "a", -1);
|
|
33
|
+
token_c.markup = "linkify";
|
|
34
|
+
token_c.info = "auto";
|
|
35
|
+
}
|
|
36
|
+
state.pos += url.length - proto.length;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { linkify as default };
|
|
42
|
+
//# sourceMappingURL=linkify.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkify.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs"],"sourcesContent":["// Process links like https://example.org/\n\n// RFC3986: scheme = ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\nconst SCHEME_RE = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i\n\nexport default function linkify (state, silent) {\n if (!state.md.options.linkify) return false\n if (state.linkLevel > 0) return false\n\n const pos = state.pos\n const max = state.posMax\n\n if (pos + 3 > max) return false\n if (state.src.charCodeAt(pos) !== 0x3A/* : */) return false\n if (state.src.charCodeAt(pos + 1) !== 0x2F/* / */) return false\n if (state.src.charCodeAt(pos + 2) !== 0x2F/* / */) return false\n\n const match = state.pending.match(SCHEME_RE)\n if (!match) return false\n\n const proto = match[1]\n\n const link = state.md.linkify.matchAtStart(state.src.slice(pos - proto.length))\n if (!link) return false\n\n let url = link.url\n\n // invalid link, but still detected by linkify somehow;\n // need to check to prevent infinite loop below\n if (url.length <= proto.length) return false\n\n // disallow '*' at the end of the link (conflicts with emphasis)\n // do manual backsearch to avoid perf issues with regex /\\*+$/ on \"****...****a\".\n let urlEnd = url.length\n while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 0x2A/* * */) {\n urlEnd--\n }\n if (urlEnd !== url.length) {\n url = url.slice(0, urlEnd)\n }\n\n const fullUrl = state.md.normalizeLink(url)\n if (!state.md.validateLink(fullUrl)) return false\n\n if (!silent) {\n state.pending = state.pending.slice(0, -proto.length)\n\n const token_o = state.push('link_open', 'a', 1)\n token_o.attrs = [['href', fullUrl]]\n token_o.markup = 'linkify'\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 = 'linkify'\n token_c.info = 'auto'\n }\n\n state.pos += url.length - proto.length\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";AAGA,MAAM,YAAY;AAElB,SAAwB,QAAS,OAAO,QAAQ;AAC9C,KAAI,CAAC,MAAM,GAAG,QAAQ,QAAS,QAAO;AACtC,KAAI,MAAM,YAAY,EAAG,QAAO;CAEhC,MAAM,MAAM,MAAM;CAClB,MAAM,MAAM,MAAM;AAElB,KAAI,MAAM,IAAI,IAAK,QAAO;AAC1B,KAAI,MAAM,IAAI,WAAW,IAAI,KAAK,GAAa,QAAO;AACtD,KAAI,MAAM,IAAI,WAAW,MAAM,EAAE,KAAK,GAAa,QAAO;AAC1D,KAAI,MAAM,IAAI,WAAW,MAAM,EAAE,KAAK,GAAa,QAAO;CAE1D,MAAM,QAAQ,MAAM,QAAQ,MAAM,UAAU;AAC5C,KAAI,CAAC,MAAO,QAAO;CAEnB,MAAM,QAAQ,MAAM;CAEpB,MAAM,OAAO,MAAM,GAAG,QAAQ,aAAa,MAAM,IAAI,MAAM,MAAM,MAAM,OAAO,CAAC;AAC/E,KAAI,CAAC,KAAM,QAAO;CAElB,IAAI,MAAM,KAAK;AAIf,KAAI,IAAI,UAAU,MAAM,OAAQ,QAAO;CAIvC,IAAI,SAAS,IAAI;AACjB,QAAO,SAAS,KAAK,IAAI,WAAW,SAAS,EAAE,KAAK,GAClD;AAEF,KAAI,WAAW,IAAI,OACjB,OAAM,IAAI,MAAM,GAAG,OAAO;CAG5B,MAAM,UAAU,MAAM,GAAG,cAAc,IAAI;AAC3C,KAAI,CAAC,MAAM,GAAG,aAAa,QAAQ,CAAE,QAAO;AAE5C,KAAI,CAAC,QAAQ;AACX,QAAM,UAAU,MAAM,QAAQ,MAAM,GAAG,CAAC,MAAM,OAAO;EAErD,MAAM,UAAU,MAAM,KAAK,aAAa,KAAK,EAAE;AAC/C,UAAQ,QAAQ,CAAC,CAAC,QAAQ,QAAQ,CAAC;AACnC,UAAQ,SAAS;AACjB,UAAQ,OAAO;EAEf,MAAM,UAAU,MAAM,KAAK,QAAQ,IAAI,EAAE;AACzC,UAAQ,UAAU,MAAM,GAAG,kBAAkB,IAAI;EAEjD,MAAM,UAAU,MAAM,KAAK,cAAc,KAAK,GAAG;AACjD,UAAQ,SAAS;AACjB,UAAQ,OAAO;;AAGjB,OAAM,OAAO,IAAI,SAAS,MAAM;AAChC,QAAO"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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_inline/newline.mjs
|
|
4
|
+
function newline(state, silent) {
|
|
5
|
+
let pos = state.pos;
|
|
6
|
+
if (state.src.charCodeAt(pos) !== 10) return false;
|
|
7
|
+
const pmax = state.pending.length - 1;
|
|
8
|
+
const max = state.posMax;
|
|
9
|
+
if (!silent) if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
|
|
10
|
+
let ws = pmax - 1;
|
|
11
|
+
while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
|
|
12
|
+
state.pending = state.pending.slice(0, ws);
|
|
13
|
+
state.push("hardbreak", "br", 0);
|
|
14
|
+
} else {
|
|
15
|
+
state.pending = state.pending.slice(0, -1);
|
|
16
|
+
state.push("softbreak", "br", 0);
|
|
17
|
+
}
|
|
18
|
+
else state.push("softbreak", "br", 0);
|
|
19
|
+
pos++;
|
|
20
|
+
while (pos < max && require_utils.isSpace(state.src.charCodeAt(pos))) pos++;
|
|
21
|
+
state.pos = pos;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.default = newline;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isSpace } from "../common/utils.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs
|
|
4
|
+
function newline(state, silent) {
|
|
5
|
+
let pos = state.pos;
|
|
6
|
+
if (state.src.charCodeAt(pos) !== 10) return false;
|
|
7
|
+
const pmax = state.pending.length - 1;
|
|
8
|
+
const max = state.posMax;
|
|
9
|
+
if (!silent) if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
|
|
10
|
+
let ws = pmax - 1;
|
|
11
|
+
while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
|
|
12
|
+
state.pending = state.pending.slice(0, ws);
|
|
13
|
+
state.push("hardbreak", "br", 0);
|
|
14
|
+
} else {
|
|
15
|
+
state.pending = state.pending.slice(0, -1);
|
|
16
|
+
state.push("softbreak", "br", 0);
|
|
17
|
+
}
|
|
18
|
+
else state.push("softbreak", "br", 0);
|
|
19
|
+
pos++;
|
|
20
|
+
while (pos < max && isSpace(state.src.charCodeAt(pos))) pos++;
|
|
21
|
+
state.pos = pos;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { newline as default };
|
|
27
|
+
//# sourceMappingURL=newline.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"newline.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs"],"sourcesContent":["// Proceess '\\n'\n\nimport { isSpace } from '../common/utils.mjs'\n\nexport default function newline (state, silent) {\n let pos = state.pos\n\n if (state.src.charCodeAt(pos) !== 0x0A/* \\n */) { return false }\n\n const pmax = state.pending.length - 1\n const max = state.posMax\n\n // ' \\n' -> hardbreak\n // Lookup in pending chars is bad practice! Don't copy to other rules!\n // Pending string is stored in concat mode, indexed lookups will cause\n // convertion to flat mode.\n if (!silent) {\n if (pmax >= 0 && state.pending.charCodeAt(pmax) === 0x20) {\n if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 0x20) {\n // Find whitespaces tail of pending chars.\n let ws = pmax - 1\n while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 0x20) ws--\n\n state.pending = state.pending.slice(0, ws)\n state.push('hardbreak', 'br', 0)\n } else {\n state.pending = state.pending.slice(0, -1)\n state.push('softbreak', 'br', 0)\n }\n } else {\n state.push('softbreak', 'br', 0)\n }\n }\n\n pos++\n\n // skip heading spaces for next line\n while (pos < max && isSpace(state.src.charCodeAt(pos))) { pos++ }\n\n state.pos = pos\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA,SAAwB,QAAS,OAAO,QAAQ;CAC9C,IAAI,MAAM,MAAM;AAEhB,KAAI,MAAM,IAAI,WAAW,IAAI,KAAK,GAAgB,QAAO;CAEzD,MAAM,OAAO,MAAM,QAAQ,SAAS;CACpC,MAAM,MAAM,MAAM;AAMlB,KAAI,CAAC,OACH,KAAI,QAAQ,KAAK,MAAM,QAAQ,WAAW,KAAK,KAAK,GAClD,KAAI,QAAQ,KAAK,MAAM,QAAQ,WAAW,OAAO,EAAE,KAAK,IAAM;EAE5D,IAAI,KAAK,OAAO;AAChB,SAAO,MAAM,KAAK,MAAM,QAAQ,WAAW,KAAK,EAAE,KAAK,GAAM;AAE7D,QAAM,UAAU,MAAM,QAAQ,MAAM,GAAG,GAAG;AAC1C,QAAM,KAAK,aAAa,MAAM,EAAE;QAC3B;AACL,QAAM,UAAU,MAAM,QAAQ,MAAM,GAAG,GAAG;AAC1C,QAAM,KAAK,aAAa,MAAM,EAAE;;KAGlC,OAAM,KAAK,aAAa,MAAM,EAAE;AAIpC;AAGA,QAAO,MAAM,OAAO,QAAQ,MAAM,IAAI,WAAW,IAAI,CAAC,CAAI;AAE1D,OAAM,MAAM;AACZ,QAAO"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const require_utils = require('../common/utils.cjs');
|
|
2
|
+
const require_token = require('../token.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs
|
|
5
|
+
function StateInline(src, md, env, outTokens) {
|
|
6
|
+
this.src = src;
|
|
7
|
+
this.env = env;
|
|
8
|
+
this.md = md;
|
|
9
|
+
this.tokens = outTokens;
|
|
10
|
+
this.tokens_meta = Array(outTokens.length);
|
|
11
|
+
this.pos = 0;
|
|
12
|
+
this.posMax = this.src.length;
|
|
13
|
+
this.level = 0;
|
|
14
|
+
this.pending = "";
|
|
15
|
+
this.pendingLevel = 0;
|
|
16
|
+
this.cache = {};
|
|
17
|
+
this.delimiters = [];
|
|
18
|
+
this._prev_delimiters = [];
|
|
19
|
+
this.backticks = {};
|
|
20
|
+
this.backticksScanned = false;
|
|
21
|
+
this.linkLevel = 0;
|
|
22
|
+
}
|
|
23
|
+
StateInline.prototype.pushPending = function() {
|
|
24
|
+
const token = new require_token.default("text", "", 0);
|
|
25
|
+
token.content = this.pending;
|
|
26
|
+
token.level = this.pendingLevel;
|
|
27
|
+
this.tokens.push(token);
|
|
28
|
+
this.pending = "";
|
|
29
|
+
return token;
|
|
30
|
+
};
|
|
31
|
+
StateInline.prototype.push = function(type, tag, nesting) {
|
|
32
|
+
if (this.pending) this.pushPending();
|
|
33
|
+
const token = new require_token.default(type, tag, nesting);
|
|
34
|
+
let token_meta = null;
|
|
35
|
+
if (nesting < 0) {
|
|
36
|
+
this.level--;
|
|
37
|
+
this.delimiters = this._prev_delimiters.pop();
|
|
38
|
+
}
|
|
39
|
+
token.level = this.level;
|
|
40
|
+
if (nesting > 0) {
|
|
41
|
+
this.level++;
|
|
42
|
+
this._prev_delimiters.push(this.delimiters);
|
|
43
|
+
this.delimiters = [];
|
|
44
|
+
token_meta = { delimiters: this.delimiters };
|
|
45
|
+
}
|
|
46
|
+
this.pendingLevel = this.level;
|
|
47
|
+
this.tokens.push(token);
|
|
48
|
+
this.tokens_meta.push(token_meta);
|
|
49
|
+
return token;
|
|
50
|
+
};
|
|
51
|
+
StateInline.prototype.scanDelims = function(start, canSplitWord) {
|
|
52
|
+
const max = this.posMax;
|
|
53
|
+
const marker = this.src.charCodeAt(start);
|
|
54
|
+
const lastChar = start > 0 ? this.src.charCodeAt(start - 1) : 32;
|
|
55
|
+
let pos = start;
|
|
56
|
+
while (pos < max && this.src.charCodeAt(pos) === marker) pos++;
|
|
57
|
+
const count = pos - start;
|
|
58
|
+
const nextChar = pos < max ? this.src.charCodeAt(pos) : 32;
|
|
59
|
+
const isLastPunctChar = require_utils.isMdAsciiPunct(lastChar) || require_utils.isPunctChar(String.fromCharCode(lastChar));
|
|
60
|
+
const isNextPunctChar = require_utils.isMdAsciiPunct(nextChar) || require_utils.isPunctChar(String.fromCharCode(nextChar));
|
|
61
|
+
const isLastWhiteSpace = require_utils.isWhiteSpace(lastChar);
|
|
62
|
+
const isNextWhiteSpace = require_utils.isWhiteSpace(nextChar);
|
|
63
|
+
const left_flanking = !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
|
|
64
|
+
const right_flanking = !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
|
|
65
|
+
return {
|
|
66
|
+
can_open: left_flanking && (canSplitWord || !right_flanking || isLastPunctChar),
|
|
67
|
+
can_close: right_flanking && (canSplitWord || !left_flanking || isNextPunctChar),
|
|
68
|
+
length: count
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
StateInline.prototype.Token = require_token.default;
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
exports.default = StateInline;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { isMdAsciiPunct, isPunctChar, isWhiteSpace } from "../common/utils.mjs";
|
|
2
|
+
import Token from "../token.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs
|
|
5
|
+
function StateInline(src, md, env, outTokens) {
|
|
6
|
+
this.src = src;
|
|
7
|
+
this.env = env;
|
|
8
|
+
this.md = md;
|
|
9
|
+
this.tokens = outTokens;
|
|
10
|
+
this.tokens_meta = Array(outTokens.length);
|
|
11
|
+
this.pos = 0;
|
|
12
|
+
this.posMax = this.src.length;
|
|
13
|
+
this.level = 0;
|
|
14
|
+
this.pending = "";
|
|
15
|
+
this.pendingLevel = 0;
|
|
16
|
+
this.cache = {};
|
|
17
|
+
this.delimiters = [];
|
|
18
|
+
this._prev_delimiters = [];
|
|
19
|
+
this.backticks = {};
|
|
20
|
+
this.backticksScanned = false;
|
|
21
|
+
this.linkLevel = 0;
|
|
22
|
+
}
|
|
23
|
+
StateInline.prototype.pushPending = function() {
|
|
24
|
+
const token = new Token("text", "", 0);
|
|
25
|
+
token.content = this.pending;
|
|
26
|
+
token.level = this.pendingLevel;
|
|
27
|
+
this.tokens.push(token);
|
|
28
|
+
this.pending = "";
|
|
29
|
+
return token;
|
|
30
|
+
};
|
|
31
|
+
StateInline.prototype.push = function(type, tag, nesting) {
|
|
32
|
+
if (this.pending) this.pushPending();
|
|
33
|
+
const token = new Token(type, tag, nesting);
|
|
34
|
+
let token_meta = null;
|
|
35
|
+
if (nesting < 0) {
|
|
36
|
+
this.level--;
|
|
37
|
+
this.delimiters = this._prev_delimiters.pop();
|
|
38
|
+
}
|
|
39
|
+
token.level = this.level;
|
|
40
|
+
if (nesting > 0) {
|
|
41
|
+
this.level++;
|
|
42
|
+
this._prev_delimiters.push(this.delimiters);
|
|
43
|
+
this.delimiters = [];
|
|
44
|
+
token_meta = { delimiters: this.delimiters };
|
|
45
|
+
}
|
|
46
|
+
this.pendingLevel = this.level;
|
|
47
|
+
this.tokens.push(token);
|
|
48
|
+
this.tokens_meta.push(token_meta);
|
|
49
|
+
return token;
|
|
50
|
+
};
|
|
51
|
+
StateInline.prototype.scanDelims = function(start, canSplitWord) {
|
|
52
|
+
const max = this.posMax;
|
|
53
|
+
const marker = this.src.charCodeAt(start);
|
|
54
|
+
const lastChar = start > 0 ? this.src.charCodeAt(start - 1) : 32;
|
|
55
|
+
let pos = start;
|
|
56
|
+
while (pos < max && this.src.charCodeAt(pos) === marker) pos++;
|
|
57
|
+
const count = pos - start;
|
|
58
|
+
const nextChar = pos < max ? this.src.charCodeAt(pos) : 32;
|
|
59
|
+
const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));
|
|
60
|
+
const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));
|
|
61
|
+
const isLastWhiteSpace = isWhiteSpace(lastChar);
|
|
62
|
+
const isNextWhiteSpace = isWhiteSpace(nextChar);
|
|
63
|
+
const left_flanking = !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
|
|
64
|
+
const right_flanking = !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
|
|
65
|
+
return {
|
|
66
|
+
can_open: left_flanking && (canSplitWord || !right_flanking || isLastPunctChar),
|
|
67
|
+
can_close: right_flanking && (canSplitWord || !left_flanking || isNextPunctChar),
|
|
68
|
+
length: count
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
StateInline.prototype.Token = Token;
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
export { StateInline as default };
|
|
75
|
+
//# sourceMappingURL=state_inline.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state_inline.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs"],"sourcesContent":["// Inline parser state\n\nimport Token from '../token.mjs'\nimport { isWhiteSpace, isPunctChar, isMdAsciiPunct } from '../common/utils.mjs'\n\nfunction StateInline (src, md, env, outTokens) {\n this.src = src\n this.env = env\n this.md = md\n this.tokens = outTokens\n this.tokens_meta = Array(outTokens.length)\n\n this.pos = 0\n this.posMax = this.src.length\n this.level = 0\n this.pending = ''\n this.pendingLevel = 0\n\n // Stores { start: end } pairs. Useful for backtrack\n // optimization of pairs parse (emphasis, strikes).\n this.cache = {}\n\n // List of emphasis-like delimiters for current tag\n this.delimiters = []\n\n // Stack of delimiter lists for upper level tags\n this._prev_delimiters = []\n\n // backtick length => last seen position\n this.backticks = {}\n this.backticksScanned = false\n\n // Counter used to disable inline linkify-it execution\n // inside <a> and markdown links\n this.linkLevel = 0\n}\n\n// Flush pending text\n//\nStateInline.prototype.pushPending = function () {\n const token = new Token('text', '', 0)\n token.content = this.pending\n token.level = this.pendingLevel\n this.tokens.push(token)\n this.pending = ''\n return token\n}\n\n// Push new token to \"stream\".\n// If pending text exists - flush it as text token\n//\nStateInline.prototype.push = function (type, tag, nesting) {\n if (this.pending) {\n this.pushPending()\n }\n\n const token = new Token(type, tag, nesting)\n let token_meta = null\n\n if (nesting < 0) {\n // closing tag\n this.level--\n this.delimiters = this._prev_delimiters.pop()\n }\n\n token.level = this.level\n\n if (nesting > 0) {\n // opening tag\n this.level++\n this._prev_delimiters.push(this.delimiters)\n this.delimiters = []\n token_meta = { delimiters: this.delimiters }\n }\n\n this.pendingLevel = this.level\n this.tokens.push(token)\n this.tokens_meta.push(token_meta)\n return token\n}\n\n// Scan a sequence of emphasis-like markers, and determine whether\n// it can start an emphasis sequence or end an emphasis sequence.\n//\n// - start - position to scan from (it should point at a valid marker);\n// - canSplitWord - determine if these markers can be found inside a word\n//\nStateInline.prototype.scanDelims = function (start, canSplitWord) {\n const max = this.posMax\n const marker = this.src.charCodeAt(start)\n\n // treat beginning of the line as a whitespace\n const lastChar = start > 0 ? this.src.charCodeAt(start - 1) : 0x20\n\n let pos = start\n while (pos < max && this.src.charCodeAt(pos) === marker) { pos++ }\n\n const count = pos - start\n\n // treat end of the line as a whitespace\n const nextChar = pos < max ? this.src.charCodeAt(pos) : 0x20\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 const left_flanking =\n !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar)\n const right_flanking =\n !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar)\n\n const can_open = left_flanking && (canSplitWord || !right_flanking || isLastPunctChar)\n const can_close = right_flanking && (canSplitWord || !left_flanking || isNextPunctChar)\n\n return { can_open, can_close, length: count }\n}\n\n// re-export Token class to use in block rules\nStateInline.prototype.Token = Token\n\nexport default StateInline\n"],"x_google_ignoreList":[0],"mappings":";;;;AAKA,SAAS,YAAa,KAAK,IAAI,KAAK,WAAW;AAC7C,MAAK,MAAM;AACX,MAAK,MAAM;AACX,MAAK,KAAK;AACV,MAAK,SAAS;AACd,MAAK,cAAc,MAAM,UAAU,OAAO;AAE1C,MAAK,MAAM;AACX,MAAK,SAAS,KAAK,IAAI;AACvB,MAAK,QAAQ;AACb,MAAK,UAAU;AACf,MAAK,eAAe;AAIpB,MAAK,QAAQ,EAAE;AAGf,MAAK,aAAa,EAAE;AAGpB,MAAK,mBAAmB,EAAE;AAG1B,MAAK,YAAY,EAAE;AACnB,MAAK,mBAAmB;AAIxB,MAAK,YAAY;;AAKnB,YAAY,UAAU,cAAc,WAAY;CAC9C,MAAM,QAAQ,IAAI,MAAM,QAAQ,IAAI,EAAE;AACtC,OAAM,UAAU,KAAK;AACrB,OAAM,QAAQ,KAAK;AACnB,MAAK,OAAO,KAAK,MAAM;AACvB,MAAK,UAAU;AACf,QAAO;;AAMT,YAAY,UAAU,OAAO,SAAU,MAAM,KAAK,SAAS;AACzD,KAAI,KAAK,QACP,MAAK,aAAa;CAGpB,MAAM,QAAQ,IAAI,MAAM,MAAM,KAAK,QAAQ;CAC3C,IAAI,aAAa;AAEjB,KAAI,UAAU,GAAG;AAEf,OAAK;AACL,OAAK,aAAa,KAAK,iBAAiB,KAAK;;AAG/C,OAAM,QAAQ,KAAK;AAEnB,KAAI,UAAU,GAAG;AAEf,OAAK;AACL,OAAK,iBAAiB,KAAK,KAAK,WAAW;AAC3C,OAAK,aAAa,EAAE;AACpB,eAAa,EAAE,YAAY,KAAK,YAAY;;AAG9C,MAAK,eAAe,KAAK;AACzB,MAAK,OAAO,KAAK,MAAM;AACvB,MAAK,YAAY,KAAK,WAAW;AACjC,QAAO;;AAST,YAAY,UAAU,aAAa,SAAU,OAAO,cAAc;CAChE,MAAM,MAAM,KAAK;CACjB,MAAM,SAAS,KAAK,IAAI,WAAW,MAAM;CAGzC,MAAM,WAAW,QAAQ,IAAI,KAAK,IAAI,WAAW,QAAQ,EAAE,GAAG;CAE9D,IAAI,MAAM;AACV,QAAO,MAAM,OAAO,KAAK,IAAI,WAAW,IAAI,KAAK,OAAU;CAE3D,MAAM,QAAQ,MAAM;CAGpB,MAAM,WAAW,MAAM,MAAM,KAAK,IAAI,WAAW,IAAI,GAAG;CAExD,MAAM,kBAAkB,eAAe,SAAS,IAAI,YAAY,OAAO,aAAa,SAAS,CAAC;CAC9F,MAAM,kBAAkB,eAAe,SAAS,IAAI,YAAY,OAAO,aAAa,SAAS,CAAC;CAE9F,MAAM,mBAAmB,aAAa,SAAS;CAC/C,MAAM,mBAAmB,aAAa,SAAS;CAE/C,MAAM,gBACJ,CAAC,qBAAqB,CAAC,mBAAmB,oBAAoB;CAChE,MAAM,iBACJ,CAAC,qBAAqB,CAAC,mBAAmB,oBAAoB;AAKhE,QAAO;EAAE,UAHS,kBAAmB,gBAAgB,CAAC,kBAAkB;EAGrD,WAFD,mBAAmB,gBAAgB,CAAC,iBAAkB;EAE1C,QAAQ;EAAO;;AAI/C,YAAY,UAAU,QAAQ"}
|