@shell-shock/preset-cli 0.9.11 → 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 -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,62 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs
|
|
2
|
+
function processDelimiters(delimiters) {
|
|
3
|
+
const openersBottom = {};
|
|
4
|
+
const max = delimiters.length;
|
|
5
|
+
if (!max) return;
|
|
6
|
+
let headerIdx = 0;
|
|
7
|
+
let lastTokenIdx = -2;
|
|
8
|
+
const jumps = [];
|
|
9
|
+
for (let closerIdx = 0; closerIdx < max; closerIdx++) {
|
|
10
|
+
const closer = delimiters[closerIdx];
|
|
11
|
+
jumps.push(0);
|
|
12
|
+
if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) headerIdx = closerIdx;
|
|
13
|
+
lastTokenIdx = closer.token;
|
|
14
|
+
closer.length = closer.length || 0;
|
|
15
|
+
if (!closer.close) continue;
|
|
16
|
+
if (!openersBottom.hasOwnProperty(closer.marker)) openersBottom[closer.marker] = [
|
|
17
|
+
-1,
|
|
18
|
+
-1,
|
|
19
|
+
-1,
|
|
20
|
+
-1,
|
|
21
|
+
-1,
|
|
22
|
+
-1
|
|
23
|
+
];
|
|
24
|
+
const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];
|
|
25
|
+
let openerIdx = headerIdx - jumps[headerIdx] - 1;
|
|
26
|
+
let newMinOpenerIdx = openerIdx;
|
|
27
|
+
for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {
|
|
28
|
+
const opener = delimiters[openerIdx];
|
|
29
|
+
if (opener.marker !== closer.marker) continue;
|
|
30
|
+
if (opener.open && opener.end < 0) {
|
|
31
|
+
let isOddMatch = false;
|
|
32
|
+
if (opener.close || closer.open) {
|
|
33
|
+
if ((opener.length + closer.length) % 3 === 0) {
|
|
34
|
+
if (opener.length % 3 !== 0 || closer.length % 3 !== 0) isOddMatch = true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (!isOddMatch) {
|
|
38
|
+
const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;
|
|
39
|
+
jumps[closerIdx] = closerIdx - openerIdx + lastJump;
|
|
40
|
+
jumps[openerIdx] = lastJump;
|
|
41
|
+
closer.open = false;
|
|
42
|
+
opener.end = closerIdx;
|
|
43
|
+
opener.close = false;
|
|
44
|
+
newMinOpenerIdx = -1;
|
|
45
|
+
lastTokenIdx = -2;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (newMinOpenerIdx !== -1) openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function link_pairs(state) {
|
|
54
|
+
const tokens_meta = state.tokens_meta;
|
|
55
|
+
const max = state.tokens_meta.length;
|
|
56
|
+
processDelimiters(state.delimiters);
|
|
57
|
+
for (let curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) processDelimiters(tokens_meta[curr].delimiters);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
export { link_pairs as default };
|
|
62
|
+
//# sourceMappingURL=balance_pairs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance_pairs.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs"],"sourcesContent":["// For each opening emphasis-like marker find a matching closing one\n//\n\nfunction processDelimiters (delimiters) {\n const openersBottom = {}\n const max = delimiters.length\n\n if (!max) return\n\n // headerIdx is the first delimiter of the current (where closer is) delimiter run\n let headerIdx = 0\n let lastTokenIdx = -2 // needs any value lower than -1\n const jumps = []\n\n for (let closerIdx = 0; closerIdx < max; closerIdx++) {\n const closer = delimiters[closerIdx]\n\n jumps.push(0)\n\n // markers belong to same delimiter run if:\n // - they have adjacent tokens\n // - AND markers are the same\n //\n if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) {\n headerIdx = closerIdx\n }\n\n lastTokenIdx = closer.token\n\n // Length is only used for emphasis-specific \"rule of 3\",\n // if it's not defined (in strikethrough or 3rd party plugins),\n // we can default it to 0 to disable those checks.\n //\n closer.length = closer.length || 0\n\n if (!closer.close) continue\n\n // Previously calculated lower bounds (previous fails)\n // for each marker, each delimiter length modulo 3,\n // and for whether this closer can be an opener;\n // https://github.com/commonmark/cmark/commit/34250e12ccebdc6372b8b49c44fab57c72443460\n /* eslint-disable-next-line no-prototype-builtins */\n if (!openersBottom.hasOwnProperty(closer.marker)) {\n openersBottom[closer.marker] = [-1, -1, -1, -1, -1, -1]\n }\n\n const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length % 3)]\n\n let openerIdx = headerIdx - jumps[headerIdx] - 1\n\n let newMinOpenerIdx = openerIdx\n\n for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {\n const opener = delimiters[openerIdx]\n\n if (opener.marker !== closer.marker) continue\n\n if (opener.open && opener.end < 0) {\n let isOddMatch = false\n\n // from spec:\n //\n // If one of the delimiters can both open and close emphasis, then the\n // sum of the lengths of the delimiter runs containing the opening and\n // closing delimiters must not be a multiple of 3 unless both lengths\n // are multiples of 3.\n //\n if (opener.close || closer.open) {\n if ((opener.length + closer.length) % 3 === 0) {\n if (opener.length % 3 !== 0 || closer.length % 3 !== 0) {\n isOddMatch = true\n }\n }\n }\n\n if (!isOddMatch) {\n // If previous delimiter cannot be an opener, we can safely skip\n // the entire sequence in future checks. This is required to make\n // sure algorithm has linear complexity (see *_*_*_*_*_... case).\n //\n const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open\n ? jumps[openerIdx - 1] + 1\n : 0\n\n jumps[closerIdx] = closerIdx - openerIdx + lastJump\n jumps[openerIdx] = lastJump\n\n closer.open = false\n opener.end = closerIdx\n opener.close = false\n newMinOpenerIdx = -1\n // treat next token as start of run,\n // it optimizes skips in **<...>**a**<...>** pathological case\n lastTokenIdx = -2\n break\n }\n }\n }\n\n if (newMinOpenerIdx !== -1) {\n // If match for this delimiter run failed, we want to set lower bound for\n // future lookups. This is required to make sure algorithm has linear\n // complexity.\n //\n // See details here:\n // https://github.com/commonmark/cmark/issues/178#issuecomment-270417442\n //\n openersBottom[closer.marker][(closer.open ? 3 : 0) + ((closer.length || 0) % 3)] = newMinOpenerIdx\n }\n }\n}\n\nexport default function link_pairs (state) {\n const tokens_meta = state.tokens_meta\n const max = state.tokens_meta.length\n\n processDelimiters(state.delimiters)\n\n for (let curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n processDelimiters(tokens_meta[curr].delimiters)\n }\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";AAGA,SAAS,kBAAmB,YAAY;CACtC,MAAM,gBAAgB,EAAE;CACxB,MAAM,MAAM,WAAW;AAEvB,KAAI,CAAC,IAAK;CAGV,IAAI,YAAY;CAChB,IAAI,eAAe;CACnB,MAAM,QAAQ,EAAE;AAEhB,MAAK,IAAI,YAAY,GAAG,YAAY,KAAK,aAAa;EACpD,MAAM,SAAS,WAAW;AAE1B,QAAM,KAAK,EAAE;AAMb,MAAI,WAAW,WAAW,WAAW,OAAO,UAAU,iBAAiB,OAAO,QAAQ,EACpF,aAAY;AAGd,iBAAe,OAAO;AAMtB,SAAO,SAAS,OAAO,UAAU;AAEjC,MAAI,CAAC,OAAO,MAAO;AAOnB,MAAI,CAAC,cAAc,eAAe,OAAO,OAAO,CAC9C,eAAc,OAAO,UAAU;GAAC;GAAI;GAAI;GAAI;GAAI;GAAI;GAAG;EAGzD,MAAM,eAAe,cAAc,OAAO,SAAS,OAAO,OAAO,IAAI,KAAM,OAAO,SAAS;EAE3F,IAAI,YAAY,YAAY,MAAM,aAAa;EAE/C,IAAI,kBAAkB;AAEtB,SAAO,YAAY,cAAc,aAAa,MAAM,aAAa,GAAG;GAClE,MAAM,SAAS,WAAW;AAE1B,OAAI,OAAO,WAAW,OAAO,OAAQ;AAErC,OAAI,OAAO,QAAQ,OAAO,MAAM,GAAG;IACjC,IAAI,aAAa;AASjB,QAAI,OAAO,SAAS,OAAO,MACzB;UAAK,OAAO,SAAS,OAAO,UAAU,MAAM,GAC1C;UAAI,OAAO,SAAS,MAAM,KAAK,OAAO,SAAS,MAAM,EACnD,cAAa;;;AAKnB,QAAI,CAAC,YAAY;KAKf,MAAM,WAAW,YAAY,KAAK,CAAC,WAAW,YAAY,GAAG,OACzD,MAAM,YAAY,KAAK,IACvB;AAEJ,WAAM,aAAa,YAAY,YAAY;AAC3C,WAAM,aAAa;AAEnB,YAAO,OAAQ;AACf,YAAO,MAAQ;AACf,YAAO,QAAQ;AACf,uBAAkB;AAGlB,oBAAe;AACf;;;;AAKN,MAAI,oBAAoB,GAQtB,eAAc,OAAO,SAAS,OAAO,OAAO,IAAI,MAAO,OAAO,UAAU,KAAK,KAAM;;;AAKzF,SAAwB,WAAY,OAAO;CACzC,MAAM,cAAc,MAAM;CAC1B,MAAM,MAAM,MAAM,YAAY;AAE9B,mBAAkB,MAAM,WAAW;AAEnC,MAAK,IAAI,OAAO,GAAG,OAAO,KAAK,OAC7B,KAAI,YAAY,SAAS,YAAY,MAAM,WACzC,mBAAkB,YAAY,MAAM,WAAW"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs
|
|
3
|
+
function emphasis_tokenize(state, silent) {
|
|
4
|
+
const start = state.pos;
|
|
5
|
+
const marker = state.src.charCodeAt(start);
|
|
6
|
+
if (silent) return false;
|
|
7
|
+
if (marker !== 95 && marker !== 42) return false;
|
|
8
|
+
const scanned = state.scanDelims(state.pos, marker === 42);
|
|
9
|
+
for (let i = 0; i < scanned.length; i++) {
|
|
10
|
+
const token = state.push("text", "", 0);
|
|
11
|
+
token.content = String.fromCharCode(marker);
|
|
12
|
+
state.delimiters.push({
|
|
13
|
+
marker,
|
|
14
|
+
length: scanned.length,
|
|
15
|
+
token: state.tokens.length - 1,
|
|
16
|
+
end: -1,
|
|
17
|
+
open: scanned.can_open,
|
|
18
|
+
close: scanned.can_close
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
state.pos += scanned.length;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
function postProcess(state, delimiters) {
|
|
25
|
+
const max = delimiters.length;
|
|
26
|
+
for (let i = max - 1; i >= 0; i--) {
|
|
27
|
+
const startDelim = delimiters[i];
|
|
28
|
+
if (startDelim.marker !== 95 && startDelim.marker !== 42) continue;
|
|
29
|
+
if (startDelim.end === -1) continue;
|
|
30
|
+
const endDelim = delimiters[startDelim.end];
|
|
31
|
+
const isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 && delimiters[startDelim.end + 1].token === endDelim.token + 1;
|
|
32
|
+
const ch = String.fromCharCode(startDelim.marker);
|
|
33
|
+
const token_o = state.tokens[startDelim.token];
|
|
34
|
+
token_o.type = isStrong ? "strong_open" : "em_open";
|
|
35
|
+
token_o.tag = isStrong ? "strong" : "em";
|
|
36
|
+
token_o.nesting = 1;
|
|
37
|
+
token_o.markup = isStrong ? ch + ch : ch;
|
|
38
|
+
token_o.content = "";
|
|
39
|
+
const token_c = state.tokens[endDelim.token];
|
|
40
|
+
token_c.type = isStrong ? "strong_close" : "em_close";
|
|
41
|
+
token_c.tag = isStrong ? "strong" : "em";
|
|
42
|
+
token_c.nesting = -1;
|
|
43
|
+
token_c.markup = isStrong ? ch + ch : ch;
|
|
44
|
+
token_c.content = "";
|
|
45
|
+
if (isStrong) {
|
|
46
|
+
state.tokens[delimiters[i - 1].token].content = "";
|
|
47
|
+
state.tokens[delimiters[startDelim.end + 1].token].content = "";
|
|
48
|
+
i--;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function emphasis_post_process(state) {
|
|
53
|
+
const tokens_meta = state.tokens_meta;
|
|
54
|
+
const max = state.tokens_meta.length;
|
|
55
|
+
postProcess(state, state.delimiters);
|
|
56
|
+
for (let curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) postProcess(state, tokens_meta[curr].delimiters);
|
|
57
|
+
}
|
|
58
|
+
var emphasis_default = {
|
|
59
|
+
tokenize: emphasis_tokenize,
|
|
60
|
+
postProcess: emphasis_post_process
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
exports.default = emphasis_default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs
|
|
2
|
+
function emphasis_tokenize(state, silent) {
|
|
3
|
+
const start = state.pos;
|
|
4
|
+
const marker = state.src.charCodeAt(start);
|
|
5
|
+
if (silent) return false;
|
|
6
|
+
if (marker !== 95 && marker !== 42) return false;
|
|
7
|
+
const scanned = state.scanDelims(state.pos, marker === 42);
|
|
8
|
+
for (let i = 0; i < scanned.length; i++) {
|
|
9
|
+
const token = state.push("text", "", 0);
|
|
10
|
+
token.content = String.fromCharCode(marker);
|
|
11
|
+
state.delimiters.push({
|
|
12
|
+
marker,
|
|
13
|
+
length: scanned.length,
|
|
14
|
+
token: state.tokens.length - 1,
|
|
15
|
+
end: -1,
|
|
16
|
+
open: scanned.can_open,
|
|
17
|
+
close: scanned.can_close
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
state.pos += scanned.length;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
function postProcess(state, delimiters) {
|
|
24
|
+
const max = delimiters.length;
|
|
25
|
+
for (let i = max - 1; i >= 0; i--) {
|
|
26
|
+
const startDelim = delimiters[i];
|
|
27
|
+
if (startDelim.marker !== 95 && startDelim.marker !== 42) continue;
|
|
28
|
+
if (startDelim.end === -1) continue;
|
|
29
|
+
const endDelim = delimiters[startDelim.end];
|
|
30
|
+
const isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 && delimiters[startDelim.end + 1].token === endDelim.token + 1;
|
|
31
|
+
const ch = String.fromCharCode(startDelim.marker);
|
|
32
|
+
const token_o = state.tokens[startDelim.token];
|
|
33
|
+
token_o.type = isStrong ? "strong_open" : "em_open";
|
|
34
|
+
token_o.tag = isStrong ? "strong" : "em";
|
|
35
|
+
token_o.nesting = 1;
|
|
36
|
+
token_o.markup = isStrong ? ch + ch : ch;
|
|
37
|
+
token_o.content = "";
|
|
38
|
+
const token_c = state.tokens[endDelim.token];
|
|
39
|
+
token_c.type = isStrong ? "strong_close" : "em_close";
|
|
40
|
+
token_c.tag = isStrong ? "strong" : "em";
|
|
41
|
+
token_c.nesting = -1;
|
|
42
|
+
token_c.markup = isStrong ? ch + ch : ch;
|
|
43
|
+
token_c.content = "";
|
|
44
|
+
if (isStrong) {
|
|
45
|
+
state.tokens[delimiters[i - 1].token].content = "";
|
|
46
|
+
state.tokens[delimiters[startDelim.end + 1].token].content = "";
|
|
47
|
+
i--;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function emphasis_post_process(state) {
|
|
52
|
+
const tokens_meta = state.tokens_meta;
|
|
53
|
+
const max = state.tokens_meta.length;
|
|
54
|
+
postProcess(state, state.delimiters);
|
|
55
|
+
for (let curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) postProcess(state, tokens_meta[curr].delimiters);
|
|
56
|
+
}
|
|
57
|
+
var emphasis_default = {
|
|
58
|
+
tokenize: emphasis_tokenize,
|
|
59
|
+
postProcess: emphasis_post_process
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { emphasis_default as default };
|
|
64
|
+
//# sourceMappingURL=emphasis.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emphasis.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs"],"sourcesContent":["// Process *this* and _that_\n//\n\n// Insert each marker as a separate text token, and add it to delimiter list\n//\nfunction emphasis_tokenize (state, silent) {\n const start = state.pos\n const marker = state.src.charCodeAt(start)\n\n if (silent) { return false }\n\n if (marker !== 0x5F /* _ */ && marker !== 0x2A /* * */) { return false }\n\n const scanned = state.scanDelims(state.pos, marker === 0x2A)\n\n for (let i = 0; i < scanned.length; i++) {\n const token = state.push('text', '', 0)\n token.content = String.fromCharCode(marker)\n\n state.delimiters.push({\n // Char code of the starting marker (number).\n //\n marker,\n\n // Total length of these series of delimiters.\n //\n length: scanned.length,\n\n // A position of the token this delimiter corresponds to.\n //\n token: state.tokens.length - 1,\n\n // If this delimiter is matched as a valid opener, `end` will be\n // equal to its position, otherwise it's `-1`.\n //\n end: -1,\n\n // Boolean flags that determine if this delimiter could open or close\n // an emphasis.\n //\n open: scanned.can_open,\n close: scanned.can_close\n })\n }\n\n state.pos += scanned.length\n\n return true\n}\n\nfunction postProcess (state, delimiters) {\n const max = delimiters.length\n\n for (let i = max - 1; i >= 0; i--) {\n const startDelim = delimiters[i]\n\n if (startDelim.marker !== 0x5F/* _ */ && startDelim.marker !== 0x2A/* * */) {\n continue\n }\n\n // Process only opening markers\n if (startDelim.end === -1) {\n continue\n }\n\n const endDelim = delimiters[startDelim.end]\n\n // If the previous delimiter has the same marker and is adjacent to this one,\n // merge those into one strong delimiter.\n //\n // `<em><em>whatever</em></em>` -> `<strong>whatever</strong>`\n //\n const isStrong = i > 0 &&\n delimiters[i - 1].end === startDelim.end + 1 &&\n // check that first two markers match and adjacent\n delimiters[i - 1].marker === startDelim.marker &&\n delimiters[i - 1].token === startDelim.token - 1 &&\n // check that last two markers are adjacent (we can safely assume they match)\n delimiters[startDelim.end + 1].token === endDelim.token + 1\n\n const ch = String.fromCharCode(startDelim.marker)\n\n const token_o = state.tokens[startDelim.token]\n token_o.type = isStrong ? 'strong_open' : 'em_open'\n token_o.tag = isStrong ? 'strong' : 'em'\n token_o.nesting = 1\n token_o.markup = isStrong ? ch + ch : ch\n token_o.content = ''\n\n const token_c = state.tokens[endDelim.token]\n token_c.type = isStrong ? 'strong_close' : 'em_close'\n token_c.tag = isStrong ? 'strong' : 'em'\n token_c.nesting = -1\n token_c.markup = isStrong ? ch + ch : ch\n token_c.content = ''\n\n if (isStrong) {\n state.tokens[delimiters[i - 1].token].content = ''\n state.tokens[delimiters[startDelim.end + 1].token].content = ''\n i--\n }\n }\n}\n\n// Walk through delimiter list and replace text tokens with tags\n//\nfunction emphasis_post_process (state) {\n const tokens_meta = state.tokens_meta\n const max = state.tokens_meta.length\n\n postProcess(state, state.delimiters)\n\n for (let curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters)\n }\n }\n}\n\nexport default {\n tokenize: emphasis_tokenize,\n postProcess: emphasis_post_process\n}\n"],"x_google_ignoreList":[0],"mappings":";AAKA,SAAS,kBAAmB,OAAO,QAAQ;CACzC,MAAM,QAAQ,MAAM;CACpB,MAAM,SAAS,MAAM,IAAI,WAAW,MAAM;AAE1C,KAAI,OAAU,QAAO;AAErB,KAAI,WAAW,MAAgB,WAAW,GAAgB,QAAO;CAEjE,MAAM,UAAU,MAAM,WAAW,MAAM,KAAK,WAAW,GAAK;AAE5D,MAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;EACvC,MAAM,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAAE;AACvC,QAAM,UAAU,OAAO,aAAa,OAAO;AAE3C,QAAM,WAAW,KAAK;GAGpB;GAIA,QAAQ,QAAQ;GAIhB,OAAO,MAAM,OAAO,SAAS;GAK7B,KAAK;GAKL,MAAM,QAAQ;GACd,OAAO,QAAQ;GAChB,CAAC;;AAGJ,OAAM,OAAO,QAAQ;AAErB,QAAO;;AAGT,SAAS,YAAa,OAAO,YAAY;CACvC,MAAM,MAAM,WAAW;AAEvB,MAAK,IAAI,IAAI,MAAM,GAAG,KAAK,GAAG,KAAK;EACjC,MAAM,aAAa,WAAW;AAE9B,MAAI,WAAW,WAAW,MAAe,WAAW,WAAW,GAC7D;AAIF,MAAI,WAAW,QAAQ,GACrB;EAGF,MAAM,WAAW,WAAW,WAAW;EAOvC,MAAM,WAAW,IAAI,KACV,WAAW,IAAI,GAAG,QAAQ,WAAW,MAAM,KAE3C,WAAW,IAAI,GAAG,WAAW,WAAW,UACxC,WAAW,IAAI,GAAG,UAAU,WAAW,QAAQ,KAE/C,WAAW,WAAW,MAAM,GAAG,UAAU,SAAS,QAAQ;EAErE,MAAM,KAAK,OAAO,aAAa,WAAW,OAAO;EAEjD,MAAM,UAAY,MAAM,OAAO,WAAW;AAC1C,UAAQ,OAAU,WAAW,gBAAgB;AAC7C,UAAQ,MAAU,WAAW,WAAW;AACxC,UAAQ,UAAU;AAClB,UAAQ,SAAU,WAAW,KAAK,KAAK;AACvC,UAAQ,UAAU;EAElB,MAAM,UAAY,MAAM,OAAO,SAAS;AACxC,UAAQ,OAAU,WAAW,iBAAiB;AAC9C,UAAQ,MAAU,WAAW,WAAW;AACxC,UAAQ,UAAU;AAClB,UAAQ,SAAU,WAAW,KAAK,KAAK;AACvC,UAAQ,UAAU;AAElB,MAAI,UAAU;AACZ,SAAM,OAAO,WAAW,IAAI,GAAG,OAAO,UAAU;AAChD,SAAM,OAAO,WAAW,WAAW,MAAM,GAAG,OAAO,UAAU;AAC7D;;;;AAON,SAAS,sBAAuB,OAAO;CACrC,MAAM,cAAc,MAAM;CAC1B,MAAM,MAAM,MAAM,YAAY;AAE9B,aAAY,OAAO,MAAM,WAAW;AAEpC,MAAK,IAAI,OAAO,GAAG,OAAO,KAAK,OAC7B,KAAI,YAAY,SAAS,YAAY,MAAM,WACzC,aAAY,OAAO,YAAY,MAAM,WAAW;;AAKtD,uBAAe;CACb,UAAU;CACV,aAAa;CACd"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_decode = require('../../../../../entities@4.5.0/node_modules/entities/lib/esm/decode.cjs');
|
|
2
|
+
const require_utils = require('../common/utils.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs
|
|
5
|
+
const DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
|
|
6
|
+
const NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
|
|
7
|
+
function entity(state, silent) {
|
|
8
|
+
const pos = state.pos;
|
|
9
|
+
const max = state.posMax;
|
|
10
|
+
if (state.src.charCodeAt(pos) !== 38) return false;
|
|
11
|
+
if (pos + 1 >= max) return false;
|
|
12
|
+
if (state.src.charCodeAt(pos + 1) === 35) {
|
|
13
|
+
const match = state.src.slice(pos).match(DIGITAL_RE);
|
|
14
|
+
if (match) {
|
|
15
|
+
if (!silent) {
|
|
16
|
+
const code = match[1][0].toLowerCase() === "x" ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);
|
|
17
|
+
const token = state.push("text_special", "", 0);
|
|
18
|
+
token.content = require_utils.isValidEntityCode(code) ? require_utils.fromCodePoint(code) : require_utils.fromCodePoint(65533);
|
|
19
|
+
token.markup = match[0];
|
|
20
|
+
token.info = "entity";
|
|
21
|
+
}
|
|
22
|
+
state.pos += match[0].length;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
} else {
|
|
26
|
+
const match = state.src.slice(pos).match(NAMED_RE);
|
|
27
|
+
if (match) {
|
|
28
|
+
const decoded = require_decode.decodeHTML(match[0]);
|
|
29
|
+
if (decoded !== match[0]) {
|
|
30
|
+
if (!silent) {
|
|
31
|
+
const token = state.push("text_special", "", 0);
|
|
32
|
+
token.content = decoded;
|
|
33
|
+
token.markup = match[0];
|
|
34
|
+
token.info = "entity";
|
|
35
|
+
}
|
|
36
|
+
state.pos += match[0].length;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.default = entity;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { decodeHTML } from "../../../../../entities@4.5.0/node_modules/entities/lib/esm/decode.mjs";
|
|
2
|
+
import { fromCodePoint, isValidEntityCode } from "../common/utils.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs
|
|
5
|
+
const DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
|
|
6
|
+
const NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
|
|
7
|
+
function entity(state, silent) {
|
|
8
|
+
const pos = state.pos;
|
|
9
|
+
const max = state.posMax;
|
|
10
|
+
if (state.src.charCodeAt(pos) !== 38) return false;
|
|
11
|
+
if (pos + 1 >= max) return false;
|
|
12
|
+
if (state.src.charCodeAt(pos + 1) === 35) {
|
|
13
|
+
const match = state.src.slice(pos).match(DIGITAL_RE);
|
|
14
|
+
if (match) {
|
|
15
|
+
if (!silent) {
|
|
16
|
+
const code = match[1][0].toLowerCase() === "x" ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);
|
|
17
|
+
const token = state.push("text_special", "", 0);
|
|
18
|
+
token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(65533);
|
|
19
|
+
token.markup = match[0];
|
|
20
|
+
token.info = "entity";
|
|
21
|
+
}
|
|
22
|
+
state.pos += match[0].length;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
} else {
|
|
26
|
+
const match = state.src.slice(pos).match(NAMED_RE);
|
|
27
|
+
if (match) {
|
|
28
|
+
const decoded = decodeHTML(match[0]);
|
|
29
|
+
if (decoded !== match[0]) {
|
|
30
|
+
if (!silent) {
|
|
31
|
+
const token = state.push("text_special", "", 0);
|
|
32
|
+
token.content = decoded;
|
|
33
|
+
token.markup = match[0];
|
|
34
|
+
token.info = "entity";
|
|
35
|
+
}
|
|
36
|
+
state.pos += match[0].length;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { entity as default };
|
|
46
|
+
//# sourceMappingURL=entity.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs"],"sourcesContent":["// Process html entity - {, ¯, ", ...\n\nimport { decodeHTML } from 'entities'\nimport { isValidEntityCode, fromCodePoint } from '../common/utils.mjs'\n\nconst DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i\nconst NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i\n\nexport default function entity (state, silent) {\n const pos = state.pos\n const max = state.posMax\n\n if (state.src.charCodeAt(pos) !== 0x26/* & */) return false\n\n if (pos + 1 >= max) return false\n\n const ch = state.src.charCodeAt(pos + 1)\n\n if (ch === 0x23 /* # */) {\n const match = state.src.slice(pos).match(DIGITAL_RE)\n if (match) {\n if (!silent) {\n const code = match[1][0].toLowerCase() === 'x' ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10)\n\n const token = state.push('text_special', '', 0)\n token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(0xFFFD)\n token.markup = match[0]\n token.info = 'entity'\n }\n state.pos += match[0].length\n return true\n }\n } else {\n const match = state.src.slice(pos).match(NAMED_RE)\n if (match) {\n const decoded = decodeHTML(match[0])\n if (decoded !== match[0]) {\n if (!silent) {\n const token = state.push('text_special', '', 0)\n token.content = decoded\n token.markup = match[0]\n token.info = 'entity'\n }\n state.pos += match[0].length\n return true\n }\n }\n }\n\n return false\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;AAKA,MAAM,aAAa;AACnB,MAAM,WAAa;AAEnB,SAAwB,OAAQ,OAAO,QAAQ;CAC7C,MAAM,MAAM,MAAM;CAClB,MAAM,MAAM,MAAM;AAElB,KAAI,MAAM,IAAI,WAAW,IAAI,KAAK,GAAa,QAAO;AAEtD,KAAI,MAAM,KAAK,IAAK,QAAO;AAI3B,KAFW,MAAM,IAAI,WAAW,MAAM,EAAE,KAE7B,IAAc;EACvB,MAAM,QAAQ,MAAM,IAAI,MAAM,IAAI,CAAC,MAAM,WAAW;AACpD,MAAI,OAAO;AACT,OAAI,CAAC,QAAQ;IACX,MAAM,OAAO,MAAM,GAAG,GAAG,aAAa,KAAK,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,GAAG,SAAS,MAAM,IAAI,GAAG;IAEzG,MAAM,QAAU,MAAM,KAAK,gBAAgB,IAAI,EAAE;AACjD,UAAM,UAAU,kBAAkB,KAAK,GAAG,cAAc,KAAK,GAAG,cAAc,MAAO;AACrF,UAAM,SAAU,MAAM;AACtB,UAAM,OAAU;;AAElB,SAAM,OAAO,MAAM,GAAG;AACtB,UAAO;;QAEJ;EACL,MAAM,QAAQ,MAAM,IAAI,MAAM,IAAI,CAAC,MAAM,SAAS;AAClD,MAAI,OAAO;GACT,MAAM,UAAU,WAAW,MAAM,GAAG;AACpC,OAAI,YAAY,MAAM,IAAI;AACxB,QAAI,CAAC,QAAQ;KACX,MAAM,QAAU,MAAM,KAAK,gBAAgB,IAAI,EAAE;AACjD,WAAM,UAAU;AAChB,WAAM,SAAU,MAAM;AACtB,WAAM,OAAU;;AAElB,UAAM,OAAO,MAAM,GAAG;AACtB,WAAO;;;;AAKb,QAAO"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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/escape.mjs
|
|
4
|
+
const ESCAPED = [];
|
|
5
|
+
for (let i = 0; i < 256; i++) ESCAPED.push(0);
|
|
6
|
+
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ch) {
|
|
7
|
+
ESCAPED[ch.charCodeAt(0)] = 1;
|
|
8
|
+
});
|
|
9
|
+
function escape(state, silent) {
|
|
10
|
+
let pos = state.pos;
|
|
11
|
+
const max = state.posMax;
|
|
12
|
+
if (state.src.charCodeAt(pos) !== 92) return false;
|
|
13
|
+
pos++;
|
|
14
|
+
if (pos >= max) return false;
|
|
15
|
+
let ch1 = state.src.charCodeAt(pos);
|
|
16
|
+
if (ch1 === 10) {
|
|
17
|
+
if (!silent) state.push("hardbreak", "br", 0);
|
|
18
|
+
pos++;
|
|
19
|
+
while (pos < max) {
|
|
20
|
+
ch1 = state.src.charCodeAt(pos);
|
|
21
|
+
if (!require_utils.isSpace(ch1)) break;
|
|
22
|
+
pos++;
|
|
23
|
+
}
|
|
24
|
+
state.pos = pos;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
let escapedStr = state.src[pos];
|
|
28
|
+
if (ch1 >= 55296 && ch1 <= 56319 && pos + 1 < max) {
|
|
29
|
+
const ch2 = state.src.charCodeAt(pos + 1);
|
|
30
|
+
if (ch2 >= 56320 && ch2 <= 57343) {
|
|
31
|
+
escapedStr += state.src[pos + 1];
|
|
32
|
+
pos++;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const origStr = "\\" + escapedStr;
|
|
36
|
+
if (!silent) {
|
|
37
|
+
const token = state.push("text_special", "", 0);
|
|
38
|
+
if (ch1 < 256 && ESCAPED[ch1] !== 0) token.content = escapedStr;
|
|
39
|
+
else token.content = origStr;
|
|
40
|
+
token.markup = origStr;
|
|
41
|
+
token.info = "escape";
|
|
42
|
+
}
|
|
43
|
+
state.pos = pos + 1;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
exports.default = escape;
|
|
@@ -0,0 +1,49 @@
|
|
|
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/escape.mjs
|
|
4
|
+
const ESCAPED = [];
|
|
5
|
+
for (let i = 0; i < 256; i++) ESCAPED.push(0);
|
|
6
|
+
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ch) {
|
|
7
|
+
ESCAPED[ch.charCodeAt(0)] = 1;
|
|
8
|
+
});
|
|
9
|
+
function escape(state, silent) {
|
|
10
|
+
let pos = state.pos;
|
|
11
|
+
const max = state.posMax;
|
|
12
|
+
if (state.src.charCodeAt(pos) !== 92) return false;
|
|
13
|
+
pos++;
|
|
14
|
+
if (pos >= max) return false;
|
|
15
|
+
let ch1 = state.src.charCodeAt(pos);
|
|
16
|
+
if (ch1 === 10) {
|
|
17
|
+
if (!silent) state.push("hardbreak", "br", 0);
|
|
18
|
+
pos++;
|
|
19
|
+
while (pos < max) {
|
|
20
|
+
ch1 = state.src.charCodeAt(pos);
|
|
21
|
+
if (!isSpace(ch1)) break;
|
|
22
|
+
pos++;
|
|
23
|
+
}
|
|
24
|
+
state.pos = pos;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
let escapedStr = state.src[pos];
|
|
28
|
+
if (ch1 >= 55296 && ch1 <= 56319 && pos + 1 < max) {
|
|
29
|
+
const ch2 = state.src.charCodeAt(pos + 1);
|
|
30
|
+
if (ch2 >= 56320 && ch2 <= 57343) {
|
|
31
|
+
escapedStr += state.src[pos + 1];
|
|
32
|
+
pos++;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const origStr = "\\" + escapedStr;
|
|
36
|
+
if (!silent) {
|
|
37
|
+
const token = state.push("text_special", "", 0);
|
|
38
|
+
if (ch1 < 256 && ESCAPED[ch1] !== 0) token.content = escapedStr;
|
|
39
|
+
else token.content = origStr;
|
|
40
|
+
token.markup = origStr;
|
|
41
|
+
token.info = "escape";
|
|
42
|
+
}
|
|
43
|
+
state.pos = pos + 1;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { escape as default };
|
|
49
|
+
//# sourceMappingURL=escape.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs"],"sourcesContent":["// Process escaped chars and hardbreaks\n\nimport { isSpace } from '../common/utils.mjs'\n\nconst ESCAPED = []\n\nfor (let i = 0; i < 256; i++) { ESCAPED.push(0) }\n\n'\\\\!\"#$%&\\'()*+,./:;<=>?@[]^_`{|}~-'\n .split('').forEach(function (ch) { ESCAPED[ch.charCodeAt(0)] = 1 })\n\nexport default function escape (state, silent) {\n let pos = state.pos\n const max = state.posMax\n\n if (state.src.charCodeAt(pos) !== 0x5C/* \\ */) return false\n pos++\n\n // '\\' at the end of the inline block\n if (pos >= max) return false\n\n let ch1 = state.src.charCodeAt(pos)\n\n if (ch1 === 0x0A) {\n if (!silent) {\n state.push('hardbreak', 'br', 0)\n }\n\n pos++\n // skip leading whitespaces from next line\n while (pos < max) {\n ch1 = state.src.charCodeAt(pos)\n if (!isSpace(ch1)) break\n pos++\n }\n\n state.pos = pos\n return true\n }\n\n let escapedStr = state.src[pos]\n\n if (ch1 >= 0xD800 && ch1 <= 0xDBFF && pos + 1 < max) {\n const ch2 = state.src.charCodeAt(pos + 1)\n\n if (ch2 >= 0xDC00 && ch2 <= 0xDFFF) {\n escapedStr += state.src[pos + 1]\n pos++\n }\n }\n\n const origStr = '\\\\' + escapedStr\n\n if (!silent) {\n const token = state.push('text_special', '', 0)\n\n if (ch1 < 256 && ESCAPED[ch1] !== 0) {\n token.content = escapedStr\n } else {\n token.content = origStr\n }\n\n token.markup = origStr\n token.info = 'escape'\n }\n\n state.pos = pos + 1\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA,MAAM,UAAU,EAAE;AAElB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,IAAO,SAAQ,KAAK,EAAE;AAE/C,qCACG,MAAM,GAAG,CAAC,QAAQ,SAAU,IAAI;AAAE,SAAQ,GAAG,WAAW,EAAE,IAAI;EAAI;AAErE,SAAwB,OAAQ,OAAO,QAAQ;CAC7C,IAAI,MAAM,MAAM;CAChB,MAAM,MAAM,MAAM;AAElB,KAAI,MAAM,IAAI,WAAW,IAAI,KAAK,GAAa,QAAO;AACtD;AAGA,KAAI,OAAO,IAAK,QAAO;CAEvB,IAAI,MAAM,MAAM,IAAI,WAAW,IAAI;AAEnC,KAAI,QAAQ,IAAM;AAChB,MAAI,CAAC,OACH,OAAM,KAAK,aAAa,MAAM,EAAE;AAGlC;AAEA,SAAO,MAAM,KAAK;AAChB,SAAM,MAAM,IAAI,WAAW,IAAI;AAC/B,OAAI,CAAC,QAAQ,IAAI,CAAE;AACnB;;AAGF,QAAM,MAAM;AACZ,SAAO;;CAGT,IAAI,aAAa,MAAM,IAAI;AAE3B,KAAI,OAAO,SAAU,OAAO,SAAU,MAAM,IAAI,KAAK;EACnD,MAAM,MAAM,MAAM,IAAI,WAAW,MAAM,EAAE;AAEzC,MAAI,OAAO,SAAU,OAAO,OAAQ;AAClC,iBAAc,MAAM,IAAI,MAAM;AAC9B;;;CAIJ,MAAM,UAAU,OAAO;AAEvB,KAAI,CAAC,QAAQ;EACX,MAAM,QAAQ,MAAM,KAAK,gBAAgB,IAAI,EAAE;AAE/C,MAAI,MAAM,OAAO,QAAQ,SAAS,EAChC,OAAM,UAAU;MAEhB,OAAM,UAAU;AAGlB,QAAM,SAAS;AACf,QAAM,OAAS;;AAGjB,OAAM,MAAM,MAAM;AAClB,QAAO"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs
|
|
3
|
+
function fragments_join(state) {
|
|
4
|
+
let curr, last;
|
|
5
|
+
let level = 0;
|
|
6
|
+
const tokens = state.tokens;
|
|
7
|
+
const max = state.tokens.length;
|
|
8
|
+
for (curr = last = 0; curr < max; curr++) {
|
|
9
|
+
if (tokens[curr].nesting < 0) level--;
|
|
10
|
+
tokens[curr].level = level;
|
|
11
|
+
if (tokens[curr].nesting > 0) level++;
|
|
12
|
+
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
|
+
}
|
|
18
|
+
if (curr !== last) tokens.length = last;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.default = fragments_join;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs
|
|
2
|
+
function fragments_join(state) {
|
|
3
|
+
let curr, last;
|
|
4
|
+
let level = 0;
|
|
5
|
+
const tokens = state.tokens;
|
|
6
|
+
const max = state.tokens.length;
|
|
7
|
+
for (curr = last = 0; curr < max; curr++) {
|
|
8
|
+
if (tokens[curr].nesting < 0) level--;
|
|
9
|
+
tokens[curr].level = level;
|
|
10
|
+
if (tokens[curr].nesting > 0) level++;
|
|
11
|
+
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
|
+
}
|
|
17
|
+
if (curr !== last) tokens.length = last;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { fragments_join as default };
|
|
22
|
+
//# sourceMappingURL=fragments_join.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragments_join.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs"],"sourcesContent":["// Clean up tokens after emphasis and strikethrough postprocessing:\n// merge adjacent text nodes into one and re-calculate all token levels\n//\n// This is necessary because initially emphasis delimiter markers (*, _, ~)\n// are treated as their own separate text tokens. Then emphasis rule either\n// leaves them as text (needed to merge with adjacent text) or turns them\n// into opening/closing tags (which messes up levels inside).\n//\n\nexport default function fragments_join (state) {\n let curr, last\n let level = 0\n const tokens = state.tokens\n const max = state.tokens.length\n\n for (curr = last = 0; curr < max; curr++) {\n // re-calculate levels after emphasis/strikethrough turns some text nodes\n // into opening/closing tags\n if (tokens[curr].nesting < 0) level-- // closing tag\n tokens[curr].level = level\n if (tokens[curr].nesting > 0) level++ // opening tag\n\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"],"x_google_ignoreList":[0],"mappings":";AASA,SAAwB,eAAgB,OAAO;CAC7C,IAAI,MAAM;CACV,IAAI,QAAQ;CACZ,MAAM,SAAS,MAAM;CACrB,MAAM,MAAM,MAAM,OAAO;AAEzB,MAAK,OAAO,OAAO,GAAG,OAAO,KAAK,QAAQ;AAGxC,MAAI,OAAO,MAAM,UAAU,EAAG;AAC9B,SAAO,MAAM,QAAQ;AACrB,MAAI,OAAO,MAAM,UAAU,EAAG;AAE9B,MAAI,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,KAAI,SAAS,KACX,QAAO,SAAS"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_html_re = require('../common/html_re.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs
|
|
4
|
+
function isLinkOpen(str) {
|
|
5
|
+
return /^<a[>\s]/i.test(str);
|
|
6
|
+
}
|
|
7
|
+
function isLinkClose(str) {
|
|
8
|
+
return /^<\/a\s*>/i.test(str);
|
|
9
|
+
}
|
|
10
|
+
function isLetter(ch) {
|
|
11
|
+
const lc = ch | 32;
|
|
12
|
+
return lc >= 97 && lc <= 122;
|
|
13
|
+
}
|
|
14
|
+
function html_inline(state, silent) {
|
|
15
|
+
if (!state.md.options.html) return false;
|
|
16
|
+
const max = state.posMax;
|
|
17
|
+
const pos = state.pos;
|
|
18
|
+
if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max) return false;
|
|
19
|
+
const ch = state.src.charCodeAt(pos + 1);
|
|
20
|
+
if (ch !== 33 && ch !== 63 && ch !== 47 && !isLetter(ch)) return false;
|
|
21
|
+
const match = state.src.slice(pos).match(require_html_re.HTML_TAG_RE);
|
|
22
|
+
if (!match) return false;
|
|
23
|
+
if (!silent) {
|
|
24
|
+
const token = state.push("html_inline", "", 0);
|
|
25
|
+
token.content = match[0];
|
|
26
|
+
if (isLinkOpen(token.content)) state.linkLevel++;
|
|
27
|
+
if (isLinkClose(token.content)) state.linkLevel--;
|
|
28
|
+
}
|
|
29
|
+
state.pos += match[0].length;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.default = html_inline;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HTML_TAG_RE } from "../common/html_re.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs
|
|
4
|
+
function isLinkOpen(str) {
|
|
5
|
+
return /^<a[>\s]/i.test(str);
|
|
6
|
+
}
|
|
7
|
+
function isLinkClose(str) {
|
|
8
|
+
return /^<\/a\s*>/i.test(str);
|
|
9
|
+
}
|
|
10
|
+
function isLetter(ch) {
|
|
11
|
+
const lc = ch | 32;
|
|
12
|
+
return lc >= 97 && lc <= 122;
|
|
13
|
+
}
|
|
14
|
+
function html_inline(state, silent) {
|
|
15
|
+
if (!state.md.options.html) return false;
|
|
16
|
+
const max = state.posMax;
|
|
17
|
+
const pos = state.pos;
|
|
18
|
+
if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max) return false;
|
|
19
|
+
const ch = state.src.charCodeAt(pos + 1);
|
|
20
|
+
if (ch !== 33 && ch !== 63 && ch !== 47 && !isLetter(ch)) return false;
|
|
21
|
+
const match = state.src.slice(pos).match(HTML_TAG_RE);
|
|
22
|
+
if (!match) return false;
|
|
23
|
+
if (!silent) {
|
|
24
|
+
const token = state.push("html_inline", "", 0);
|
|
25
|
+
token.content = match[0];
|
|
26
|
+
if (isLinkOpen(token.content)) state.linkLevel++;
|
|
27
|
+
if (isLinkClose(token.content)) state.linkLevel--;
|
|
28
|
+
}
|
|
29
|
+
state.pos += match[0].length;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { html_inline as default };
|
|
35
|
+
//# sourceMappingURL=html_inline.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html_inline.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs"],"sourcesContent":["// Process html tags\n\nimport { HTML_TAG_RE } from '../common/html_re.mjs'\n\nfunction isLinkOpen (str) {\n return /^<a[>\\s]/i.test(str)\n}\nfunction isLinkClose (str) {\n return /^<\\/a\\s*>/i.test(str)\n}\n\nfunction isLetter (ch) {\n /* eslint no-bitwise:0 */\n const lc = ch | 0x20 // to lower case\n return (lc >= 0x61/* a */) && (lc <= 0x7a/* z */)\n}\n\nexport default function html_inline (state, silent) {\n if (!state.md.options.html) { return false }\n\n // Check start\n const max = state.posMax\n const pos = state.pos\n if (state.src.charCodeAt(pos) !== 0x3C/* < */ ||\n pos + 2 >= max) {\n return false\n }\n\n // Quick fail on second char\n const ch = state.src.charCodeAt(pos + 1)\n if (ch !== 0x21/* ! */ &&\n ch !== 0x3F/* ? */ &&\n ch !== 0x2F/* / */ &&\n !isLetter(ch)) {\n return false\n }\n\n const match = state.src.slice(pos).match(HTML_TAG_RE)\n if (!match) { return false }\n\n if (!silent) {\n const token = state.push('html_inline', '', 0)\n token.content = match[0]\n\n if (isLinkOpen(token.content)) state.linkLevel++\n if (isLinkClose(token.content)) state.linkLevel--\n }\n state.pos += match[0].length\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA,SAAS,WAAY,KAAK;AACxB,QAAO,YAAY,KAAK,IAAI;;AAE9B,SAAS,YAAa,KAAK;AACzB,QAAO,aAAa,KAAK,IAAI;;AAG/B,SAAS,SAAU,IAAI;CAErB,MAAM,KAAK,KAAK;AAChB,QAAQ,MAAM,MAAiB,MAAM;;AAGvC,SAAwB,YAAa,OAAO,QAAQ;AAClD,KAAI,CAAC,MAAM,GAAG,QAAQ,KAAQ,QAAO;CAGrC,MAAM,MAAM,MAAM;CAClB,MAAM,MAAM,MAAM;AAClB,KAAI,MAAM,IAAI,WAAW,IAAI,KAAK,MAC9B,MAAM,KAAK,IACb,QAAO;CAIT,MAAM,KAAK,MAAM,IAAI,WAAW,MAAM,EAAE;AACxC,KAAI,OAAO,MACP,OAAO,MACP,OAAO,MACP,CAAC,SAAS,GAAG,CACf,QAAO;CAGT,MAAM,QAAQ,MAAM,IAAI,MAAM,IAAI,CAAC,MAAM,YAAY;AACrD,KAAI,CAAC,MAAS,QAAO;AAErB,KAAI,CAAC,QAAQ;EACX,MAAM,QAAQ,MAAM,KAAK,eAAe,IAAI,EAAE;AAC9C,QAAM,UAAU,MAAM;AAEtB,MAAI,WAAW,MAAM,QAAQ,CAAG,OAAM;AACtC,MAAI,YAAY,MAAM,QAAQ,CAAE,OAAM;;AAExC,OAAM,OAAO,MAAM,GAAG;AACtB,QAAO"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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/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 (!require_utils.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 (!require_utils.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 (!require_utils.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[require_utils.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
|
+
exports.default = image;
|