@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,53 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs
|
|
2
|
+
function lheading(state, startLine, endLine) {
|
|
3
|
+
const terminatorRules = state.md.block.ruler.getRules("paragraph");
|
|
4
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
5
|
+
const oldParentType = state.parentType;
|
|
6
|
+
state.parentType = "paragraph";
|
|
7
|
+
let level = 0;
|
|
8
|
+
let marker;
|
|
9
|
+
let nextLine = startLine + 1;
|
|
10
|
+
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
|
|
11
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) continue;
|
|
12
|
+
if (state.sCount[nextLine] >= state.blkIndent) {
|
|
13
|
+
let pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
14
|
+
const max = state.eMarks[nextLine];
|
|
15
|
+
if (pos < max) {
|
|
16
|
+
marker = state.src.charCodeAt(pos);
|
|
17
|
+
if (marker === 45 || marker === 61) {
|
|
18
|
+
pos = state.skipChars(pos, marker);
|
|
19
|
+
pos = state.skipSpaces(pos);
|
|
20
|
+
if (pos >= max) {
|
|
21
|
+
level = marker === 61 ? 1 : 2;
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (state.sCount[nextLine] < 0) continue;
|
|
28
|
+
let terminate = false;
|
|
29
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
30
|
+
terminate = true;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
if (terminate) break;
|
|
34
|
+
}
|
|
35
|
+
if (!level) return false;
|
|
36
|
+
const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();
|
|
37
|
+
state.line = nextLine + 1;
|
|
38
|
+
const token_o = state.push("heading_open", "h" + String(level), 1);
|
|
39
|
+
token_o.markup = String.fromCharCode(marker);
|
|
40
|
+
token_o.map = [startLine, state.line];
|
|
41
|
+
const token_i = state.push("inline", "", 0);
|
|
42
|
+
token_i.content = content;
|
|
43
|
+
token_i.map = [startLine, state.line - 1];
|
|
44
|
+
token_i.children = [];
|
|
45
|
+
const token_c = state.push("heading_close", "h" + String(level), -1);
|
|
46
|
+
token_c.markup = String.fromCharCode(marker);
|
|
47
|
+
state.parentType = oldParentType;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { lheading as default };
|
|
53
|
+
//# sourceMappingURL=lheading.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lheading.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs"],"sourcesContent":["// lheading (---, ===)\n\nexport default function lheading (state, startLine, endLine/*, silent */) {\n const terminatorRules = state.md.block.ruler.getRules('paragraph')\n\n // if it's indented more than 3 spaces, it should be a code block\n if (state.sCount[startLine] - state.blkIndent >= 4) { return false }\n\n const oldParentType = state.parentType\n state.parentType = 'paragraph' // use paragraph to match terminatorRules\n\n // jump line-by-line until empty one or EOF\n let level = 0\n let marker\n let nextLine = startLine + 1\n\n for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {\n // this would be a code block normally, but after paragraph\n // it's considered a lazy continuation regardless of what's there\n if (state.sCount[nextLine] - state.blkIndent > 3) { continue }\n\n //\n // Check for underline in setext header\n //\n if (state.sCount[nextLine] >= state.blkIndent) {\n let pos = state.bMarks[nextLine] + state.tShift[nextLine]\n const max = state.eMarks[nextLine]\n\n if (pos < max) {\n marker = state.src.charCodeAt(pos)\n\n if (marker === 0x2D/* - */ || marker === 0x3D/* = */) {\n pos = state.skipChars(pos, marker)\n pos = state.skipSpaces(pos)\n\n if (pos >= max) {\n level = (marker === 0x3D/* = */ ? 1 : 2)\n break\n }\n }\n }\n }\n\n // quirk for blockquotes, this line should already be checked by that rule\n if (state.sCount[nextLine] < 0) { continue }\n\n // Some tags can terminate paragraph without empty line.\n let terminate = false\n for (let i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true\n break\n }\n }\n if (terminate) { break }\n }\n\n if (!level) {\n // Didn't find valid underline\n return false\n }\n\n const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim()\n\n state.line = nextLine + 1\n\n const token_o = state.push('heading_open', 'h' + String(level), 1)\n token_o.markup = String.fromCharCode(marker)\n token_o.map = [startLine, state.line]\n\n const token_i = state.push('inline', '', 0)\n token_i.content = content\n token_i.map = [startLine, state.line - 1]\n token_i.children = []\n\n const token_c = state.push('heading_close', 'h' + String(level), -1)\n token_c.markup = String.fromCharCode(marker)\n\n state.parentType = oldParentType\n\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,SAAU,OAAO,WAAW,SAAsB;CACxE,MAAM,kBAAkB,MAAM,GAAG,MAAM,MAAM,SAAS,YAAY;AAGlE,KAAI,MAAM,OAAO,aAAa,MAAM,aAAa,EAAK,QAAO;CAE7D,MAAM,gBAAgB,MAAM;AAC5B,OAAM,aAAa;CAGnB,IAAI,QAAQ;CACZ,IAAI;CACJ,IAAI,WAAW,YAAY;AAE3B,QAAO,WAAW,WAAW,CAAC,MAAM,QAAQ,SAAS,EAAE,YAAY;AAGjE,MAAI,MAAM,OAAO,YAAY,MAAM,YAAY,EAAK;AAKpD,MAAI,MAAM,OAAO,aAAa,MAAM,WAAW;GAC7C,IAAI,MAAM,MAAM,OAAO,YAAY,MAAM,OAAO;GAChD,MAAM,MAAM,MAAM,OAAO;AAEzB,OAAI,MAAM,KAAK;AACb,aAAS,MAAM,IAAI,WAAW,IAAI;AAElC,QAAI,WAAW,MAAe,WAAW,IAAa;AACpD,WAAM,MAAM,UAAU,KAAK,OAAO;AAClC,WAAM,MAAM,WAAW,IAAI;AAE3B,SAAI,OAAO,KAAK;AACd,cAAS,WAAW,KAAc,IAAI;AACtC;;;;;AAOR,MAAI,MAAM,OAAO,YAAY,EAAK;EAGlC,IAAI,YAAY;AAChB,OAAK,IAAI,IAAI,GAAG,IAAI,gBAAgB,QAAQ,IAAI,GAAG,IACjD,KAAI,gBAAgB,GAAG,OAAO,UAAU,SAAS,KAAK,EAAE;AACtD,eAAY;AACZ;;AAGJ,MAAI,UAAa;;AAGnB,KAAI,CAAC,MAEH,QAAO;CAGT,MAAM,UAAU,MAAM,SAAS,WAAW,UAAU,MAAM,WAAW,MAAM,CAAC,MAAM;AAElF,OAAM,OAAO,WAAW;CAExB,MAAM,UAAa,MAAM,KAAK,gBAAgB,MAAM,OAAO,MAAM,EAAE,EAAE;AACrE,SAAQ,SAAW,OAAO,aAAa,OAAO;AAC9C,SAAQ,MAAW,CAAC,WAAW,MAAM,KAAK;CAE1C,MAAM,UAAa,MAAM,KAAK,UAAU,IAAI,EAAE;AAC9C,SAAQ,UAAW;AACnB,SAAQ,MAAW,CAAC,WAAW,MAAM,OAAO,EAAE;AAC9C,SAAQ,WAAW,EAAE;CAErB,MAAM,UAAa,MAAM,KAAK,iBAAiB,MAAM,OAAO,MAAM,EAAE,GAAG;AACvE,SAAQ,SAAW,OAAO,aAAa,OAAO;AAE9C,OAAM,aAAa;AAEnB,QAAO"}
|
package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
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_block/list.mjs
|
|
4
|
+
function skipBulletListMarker(state, startLine) {
|
|
5
|
+
const max = state.eMarks[startLine];
|
|
6
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
7
|
+
const marker = state.src.charCodeAt(pos++);
|
|
8
|
+
if (marker !== 42 && marker !== 45 && marker !== 43) return -1;
|
|
9
|
+
if (pos < max) {
|
|
10
|
+
if (!require_utils.isSpace(state.src.charCodeAt(pos))) return -1;
|
|
11
|
+
}
|
|
12
|
+
return pos;
|
|
13
|
+
}
|
|
14
|
+
function skipOrderedListMarker(state, startLine) {
|
|
15
|
+
const start = state.bMarks[startLine] + state.tShift[startLine];
|
|
16
|
+
const max = state.eMarks[startLine];
|
|
17
|
+
let pos = start;
|
|
18
|
+
if (pos + 1 >= max) return -1;
|
|
19
|
+
let ch = state.src.charCodeAt(pos++);
|
|
20
|
+
if (ch < 48 || ch > 57) return -1;
|
|
21
|
+
for (;;) {
|
|
22
|
+
if (pos >= max) return -1;
|
|
23
|
+
ch = state.src.charCodeAt(pos++);
|
|
24
|
+
if (ch >= 48 && ch <= 57) {
|
|
25
|
+
if (pos - start >= 10) return -1;
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (ch === 41 || ch === 46) break;
|
|
29
|
+
return -1;
|
|
30
|
+
}
|
|
31
|
+
if (pos < max) {
|
|
32
|
+
ch = state.src.charCodeAt(pos);
|
|
33
|
+
if (!require_utils.isSpace(ch)) return -1;
|
|
34
|
+
}
|
|
35
|
+
return pos;
|
|
36
|
+
}
|
|
37
|
+
function markTightParagraphs(state, idx) {
|
|
38
|
+
const level = state.level + 2;
|
|
39
|
+
for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
|
|
40
|
+
state.tokens[i + 2].hidden = true;
|
|
41
|
+
state.tokens[i].hidden = true;
|
|
42
|
+
i += 2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function list(state, startLine, endLine, silent) {
|
|
46
|
+
let max, pos, start, token;
|
|
47
|
+
let nextLine = startLine;
|
|
48
|
+
let tight = true;
|
|
49
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
|
|
50
|
+
if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) return false;
|
|
51
|
+
let isTerminatingParagraph = false;
|
|
52
|
+
if (silent && state.parentType === "paragraph") {
|
|
53
|
+
if (state.sCount[nextLine] >= state.blkIndent) isTerminatingParagraph = true;
|
|
54
|
+
}
|
|
55
|
+
let isOrdered;
|
|
56
|
+
let markerValue;
|
|
57
|
+
let posAfterMarker;
|
|
58
|
+
if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {
|
|
59
|
+
isOrdered = true;
|
|
60
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
61
|
+
markerValue = Number(state.src.slice(start, posAfterMarker - 1));
|
|
62
|
+
if (isTerminatingParagraph && markerValue !== 1) return false;
|
|
63
|
+
} else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) isOrdered = false;
|
|
64
|
+
else return false;
|
|
65
|
+
if (isTerminatingParagraph) {
|
|
66
|
+
if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;
|
|
67
|
+
}
|
|
68
|
+
if (silent) return true;
|
|
69
|
+
const markerCharCode = state.src.charCodeAt(posAfterMarker - 1);
|
|
70
|
+
const listTokIdx = state.tokens.length;
|
|
71
|
+
if (isOrdered) {
|
|
72
|
+
token = state.push("ordered_list_open", "ol", 1);
|
|
73
|
+
if (markerValue !== 1) token.attrs = [["start", markerValue]];
|
|
74
|
+
} else token = state.push("bullet_list_open", "ul", 1);
|
|
75
|
+
const listLines = [nextLine, 0];
|
|
76
|
+
token.map = listLines;
|
|
77
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
78
|
+
let prevEmptyEnd = false;
|
|
79
|
+
const terminatorRules = state.md.block.ruler.getRules("list");
|
|
80
|
+
const oldParentType = state.parentType;
|
|
81
|
+
state.parentType = "list";
|
|
82
|
+
while (nextLine < endLine) {
|
|
83
|
+
pos = posAfterMarker;
|
|
84
|
+
max = state.eMarks[nextLine];
|
|
85
|
+
const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);
|
|
86
|
+
let offset = initial;
|
|
87
|
+
while (pos < max) {
|
|
88
|
+
const ch = state.src.charCodeAt(pos);
|
|
89
|
+
if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine]) % 4;
|
|
90
|
+
else if (ch === 32) offset++;
|
|
91
|
+
else break;
|
|
92
|
+
pos++;
|
|
93
|
+
}
|
|
94
|
+
const contentStart = pos;
|
|
95
|
+
let indentAfterMarker;
|
|
96
|
+
if (contentStart >= max) indentAfterMarker = 1;
|
|
97
|
+
else indentAfterMarker = offset - initial;
|
|
98
|
+
if (indentAfterMarker > 4) indentAfterMarker = 1;
|
|
99
|
+
const indent = initial + indentAfterMarker;
|
|
100
|
+
token = state.push("list_item_open", "li", 1);
|
|
101
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
102
|
+
const itemLines = [nextLine, 0];
|
|
103
|
+
token.map = itemLines;
|
|
104
|
+
if (isOrdered) token.info = state.src.slice(start, posAfterMarker - 1);
|
|
105
|
+
const oldTight = state.tight;
|
|
106
|
+
const oldTShift = state.tShift[nextLine];
|
|
107
|
+
const oldSCount = state.sCount[nextLine];
|
|
108
|
+
const oldListIndent = state.listIndent;
|
|
109
|
+
state.listIndent = state.blkIndent;
|
|
110
|
+
state.blkIndent = indent;
|
|
111
|
+
state.tight = true;
|
|
112
|
+
state.tShift[nextLine] = contentStart - state.bMarks[nextLine];
|
|
113
|
+
state.sCount[nextLine] = offset;
|
|
114
|
+
if (contentStart >= max && state.isEmpty(nextLine + 1)) state.line = Math.min(state.line + 2, endLine);
|
|
115
|
+
else state.md.block.tokenize(state, nextLine, endLine, true);
|
|
116
|
+
if (!state.tight || prevEmptyEnd) tight = false;
|
|
117
|
+
prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);
|
|
118
|
+
state.blkIndent = state.listIndent;
|
|
119
|
+
state.listIndent = oldListIndent;
|
|
120
|
+
state.tShift[nextLine] = oldTShift;
|
|
121
|
+
state.sCount[nextLine] = oldSCount;
|
|
122
|
+
state.tight = oldTight;
|
|
123
|
+
token = state.push("list_item_close", "li", -1);
|
|
124
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
125
|
+
nextLine = state.line;
|
|
126
|
+
itemLines[1] = nextLine;
|
|
127
|
+
if (nextLine >= endLine) break;
|
|
128
|
+
if (state.sCount[nextLine] < state.blkIndent) break;
|
|
129
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) break;
|
|
130
|
+
let terminate = false;
|
|
131
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
132
|
+
terminate = true;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
if (terminate) break;
|
|
136
|
+
if (isOrdered) {
|
|
137
|
+
posAfterMarker = skipOrderedListMarker(state, nextLine);
|
|
138
|
+
if (posAfterMarker < 0) break;
|
|
139
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
140
|
+
} else {
|
|
141
|
+
posAfterMarker = skipBulletListMarker(state, nextLine);
|
|
142
|
+
if (posAfterMarker < 0) break;
|
|
143
|
+
}
|
|
144
|
+
if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) break;
|
|
145
|
+
}
|
|
146
|
+
if (isOrdered) token = state.push("ordered_list_close", "ol", -1);
|
|
147
|
+
else token = state.push("bullet_list_close", "ul", -1);
|
|
148
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
149
|
+
listLines[1] = nextLine;
|
|
150
|
+
state.line = nextLine;
|
|
151
|
+
state.parentType = oldParentType;
|
|
152
|
+
if (tight) markTightParagraphs(state, listTokIdx);
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
exports.default = list;
|
package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { isSpace } from "../common/utils.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs
|
|
4
|
+
function skipBulletListMarker(state, startLine) {
|
|
5
|
+
const max = state.eMarks[startLine];
|
|
6
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
7
|
+
const marker = state.src.charCodeAt(pos++);
|
|
8
|
+
if (marker !== 42 && marker !== 45 && marker !== 43) return -1;
|
|
9
|
+
if (pos < max) {
|
|
10
|
+
if (!isSpace(state.src.charCodeAt(pos))) return -1;
|
|
11
|
+
}
|
|
12
|
+
return pos;
|
|
13
|
+
}
|
|
14
|
+
function skipOrderedListMarker(state, startLine) {
|
|
15
|
+
const start = state.bMarks[startLine] + state.tShift[startLine];
|
|
16
|
+
const max = state.eMarks[startLine];
|
|
17
|
+
let pos = start;
|
|
18
|
+
if (pos + 1 >= max) return -1;
|
|
19
|
+
let ch = state.src.charCodeAt(pos++);
|
|
20
|
+
if (ch < 48 || ch > 57) return -1;
|
|
21
|
+
for (;;) {
|
|
22
|
+
if (pos >= max) return -1;
|
|
23
|
+
ch = state.src.charCodeAt(pos++);
|
|
24
|
+
if (ch >= 48 && ch <= 57) {
|
|
25
|
+
if (pos - start >= 10) return -1;
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (ch === 41 || ch === 46) break;
|
|
29
|
+
return -1;
|
|
30
|
+
}
|
|
31
|
+
if (pos < max) {
|
|
32
|
+
ch = state.src.charCodeAt(pos);
|
|
33
|
+
if (!isSpace(ch)) return -1;
|
|
34
|
+
}
|
|
35
|
+
return pos;
|
|
36
|
+
}
|
|
37
|
+
function markTightParagraphs(state, idx) {
|
|
38
|
+
const level = state.level + 2;
|
|
39
|
+
for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
|
|
40
|
+
state.tokens[i + 2].hidden = true;
|
|
41
|
+
state.tokens[i].hidden = true;
|
|
42
|
+
i += 2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function list(state, startLine, endLine, silent) {
|
|
46
|
+
let max, pos, start, token;
|
|
47
|
+
let nextLine = startLine;
|
|
48
|
+
let tight = true;
|
|
49
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
|
|
50
|
+
if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) return false;
|
|
51
|
+
let isTerminatingParagraph = false;
|
|
52
|
+
if (silent && state.parentType === "paragraph") {
|
|
53
|
+
if (state.sCount[nextLine] >= state.blkIndent) isTerminatingParagraph = true;
|
|
54
|
+
}
|
|
55
|
+
let isOrdered;
|
|
56
|
+
let markerValue;
|
|
57
|
+
let posAfterMarker;
|
|
58
|
+
if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {
|
|
59
|
+
isOrdered = true;
|
|
60
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
61
|
+
markerValue = Number(state.src.slice(start, posAfterMarker - 1));
|
|
62
|
+
if (isTerminatingParagraph && markerValue !== 1) return false;
|
|
63
|
+
} else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) isOrdered = false;
|
|
64
|
+
else return false;
|
|
65
|
+
if (isTerminatingParagraph) {
|
|
66
|
+
if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;
|
|
67
|
+
}
|
|
68
|
+
if (silent) return true;
|
|
69
|
+
const markerCharCode = state.src.charCodeAt(posAfterMarker - 1);
|
|
70
|
+
const listTokIdx = state.tokens.length;
|
|
71
|
+
if (isOrdered) {
|
|
72
|
+
token = state.push("ordered_list_open", "ol", 1);
|
|
73
|
+
if (markerValue !== 1) token.attrs = [["start", markerValue]];
|
|
74
|
+
} else token = state.push("bullet_list_open", "ul", 1);
|
|
75
|
+
const listLines = [nextLine, 0];
|
|
76
|
+
token.map = listLines;
|
|
77
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
78
|
+
let prevEmptyEnd = false;
|
|
79
|
+
const terminatorRules = state.md.block.ruler.getRules("list");
|
|
80
|
+
const oldParentType = state.parentType;
|
|
81
|
+
state.parentType = "list";
|
|
82
|
+
while (nextLine < endLine) {
|
|
83
|
+
pos = posAfterMarker;
|
|
84
|
+
max = state.eMarks[nextLine];
|
|
85
|
+
const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);
|
|
86
|
+
let offset = initial;
|
|
87
|
+
while (pos < max) {
|
|
88
|
+
const ch = state.src.charCodeAt(pos);
|
|
89
|
+
if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine]) % 4;
|
|
90
|
+
else if (ch === 32) offset++;
|
|
91
|
+
else break;
|
|
92
|
+
pos++;
|
|
93
|
+
}
|
|
94
|
+
const contentStart = pos;
|
|
95
|
+
let indentAfterMarker;
|
|
96
|
+
if (contentStart >= max) indentAfterMarker = 1;
|
|
97
|
+
else indentAfterMarker = offset - initial;
|
|
98
|
+
if (indentAfterMarker > 4) indentAfterMarker = 1;
|
|
99
|
+
const indent = initial + indentAfterMarker;
|
|
100
|
+
token = state.push("list_item_open", "li", 1);
|
|
101
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
102
|
+
const itemLines = [nextLine, 0];
|
|
103
|
+
token.map = itemLines;
|
|
104
|
+
if (isOrdered) token.info = state.src.slice(start, posAfterMarker - 1);
|
|
105
|
+
const oldTight = state.tight;
|
|
106
|
+
const oldTShift = state.tShift[nextLine];
|
|
107
|
+
const oldSCount = state.sCount[nextLine];
|
|
108
|
+
const oldListIndent = state.listIndent;
|
|
109
|
+
state.listIndent = state.blkIndent;
|
|
110
|
+
state.blkIndent = indent;
|
|
111
|
+
state.tight = true;
|
|
112
|
+
state.tShift[nextLine] = contentStart - state.bMarks[nextLine];
|
|
113
|
+
state.sCount[nextLine] = offset;
|
|
114
|
+
if (contentStart >= max && state.isEmpty(nextLine + 1)) state.line = Math.min(state.line + 2, endLine);
|
|
115
|
+
else state.md.block.tokenize(state, nextLine, endLine, true);
|
|
116
|
+
if (!state.tight || prevEmptyEnd) tight = false;
|
|
117
|
+
prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);
|
|
118
|
+
state.blkIndent = state.listIndent;
|
|
119
|
+
state.listIndent = oldListIndent;
|
|
120
|
+
state.tShift[nextLine] = oldTShift;
|
|
121
|
+
state.sCount[nextLine] = oldSCount;
|
|
122
|
+
state.tight = oldTight;
|
|
123
|
+
token = state.push("list_item_close", "li", -1);
|
|
124
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
125
|
+
nextLine = state.line;
|
|
126
|
+
itemLines[1] = nextLine;
|
|
127
|
+
if (nextLine >= endLine) break;
|
|
128
|
+
if (state.sCount[nextLine] < state.blkIndent) break;
|
|
129
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) break;
|
|
130
|
+
let terminate = false;
|
|
131
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
132
|
+
terminate = true;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
if (terminate) break;
|
|
136
|
+
if (isOrdered) {
|
|
137
|
+
posAfterMarker = skipOrderedListMarker(state, nextLine);
|
|
138
|
+
if (posAfterMarker < 0) break;
|
|
139
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
140
|
+
} else {
|
|
141
|
+
posAfterMarker = skipBulletListMarker(state, nextLine);
|
|
142
|
+
if (posAfterMarker < 0) break;
|
|
143
|
+
}
|
|
144
|
+
if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) break;
|
|
145
|
+
}
|
|
146
|
+
if (isOrdered) token = state.push("ordered_list_close", "ol", -1);
|
|
147
|
+
else token = state.push("bullet_list_close", "ul", -1);
|
|
148
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
149
|
+
listLines[1] = nextLine;
|
|
150
|
+
state.line = nextLine;
|
|
151
|
+
state.parentType = oldParentType;
|
|
152
|
+
if (tight) markTightParagraphs(state, listTokIdx);
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
export { list as default };
|
|
158
|
+
//# sourceMappingURL=list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs"],"sourcesContent":["// Lists\n\nimport { isSpace } from '../common/utils.mjs'\n\n// Search `[-+*][\\n ]`, returns next pos after marker on success\n// or -1 on fail.\nfunction skipBulletListMarker (state, startLine) {\n const max = state.eMarks[startLine]\n let pos = state.bMarks[startLine] + state.tShift[startLine]\n\n const marker = state.src.charCodeAt(pos++)\n // Check bullet\n if (marker !== 0x2A/* * */ &&\n marker !== 0x2D/* - */ &&\n marker !== 0x2B/* + */) {\n return -1\n }\n\n if (pos < max) {\n const ch = state.src.charCodeAt(pos)\n\n if (!isSpace(ch)) {\n // \" -test \" - is not a list item\n return -1\n }\n }\n\n return pos\n}\n\n// Search `\\d+[.)][\\n ]`, returns next pos after marker on success\n// or -1 on fail.\nfunction skipOrderedListMarker (state, startLine) {\n const start = state.bMarks[startLine] + state.tShift[startLine]\n const max = state.eMarks[startLine]\n let pos = start\n\n // List marker should have at least 2 chars (digit + dot)\n if (pos + 1 >= max) { return -1 }\n\n let ch = state.src.charCodeAt(pos++)\n\n if (ch < 0x30/* 0 */ || ch > 0x39/* 9 */) { return -1 }\n\n for (;;) {\n // EOL -> fail\n if (pos >= max) { return -1 }\n\n ch = state.src.charCodeAt(pos++)\n\n if (ch >= 0x30/* 0 */ && ch <= 0x39/* 9 */) {\n // List marker should have no more than 9 digits\n // (prevents integer overflow in browsers)\n if (pos - start >= 10) { return -1 }\n\n continue\n }\n\n // found valid marker\n if (ch === 0x29/* ) */ || ch === 0x2e/* . */) {\n break\n }\n\n return -1\n }\n\n if (pos < max) {\n ch = state.src.charCodeAt(pos)\n\n if (!isSpace(ch)) {\n // \" 1.test \" - is not a list item\n return -1\n }\n }\n return pos\n}\n\nfunction markTightParagraphs (state, idx) {\n const level = state.level + 2\n\n for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) {\n if (state.tokens[i].level === level && state.tokens[i].type === 'paragraph_open') {\n state.tokens[i + 2].hidden = true\n state.tokens[i].hidden = true\n i += 2\n }\n }\n}\n\nexport default function list (state, startLine, endLine, silent) {\n let max, pos, start, token\n let nextLine = startLine\n let tight = true\n\n // if it's indented more than 3 spaces, it should be a code block\n if (state.sCount[nextLine] - state.blkIndent >= 4) { return false }\n\n // Special case:\n // - item 1\n // - item 2\n // - item 3\n // - item 4\n // - this one is a paragraph continuation\n if (state.listIndent >= 0 &&\n state.sCount[nextLine] - state.listIndent >= 4 &&\n state.sCount[nextLine] < state.blkIndent) {\n return false\n }\n\n let isTerminatingParagraph = false\n\n // limit conditions when list can interrupt\n // a paragraph (validation mode only)\n if (silent && state.parentType === 'paragraph') {\n // Next list item should still terminate previous list item;\n //\n // This code can fail if plugins use blkIndent as well as lists,\n // but I hope the spec gets fixed long before that happens.\n //\n if (state.sCount[nextLine] >= state.blkIndent) {\n isTerminatingParagraph = true\n }\n }\n\n // Detect list type and position after marker\n let isOrdered\n let markerValue\n let posAfterMarker\n if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {\n isOrdered = true\n start = state.bMarks[nextLine] + state.tShift[nextLine]\n markerValue = Number(state.src.slice(start, posAfterMarker - 1))\n\n // If we're starting a new ordered list right after\n // a paragraph, it should start with 1.\n if (isTerminatingParagraph && markerValue !== 1) return false\n } else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) {\n isOrdered = false\n } else {\n return false\n }\n\n // If we're starting a new unordered list right after\n // a paragraph, first line should not be empty.\n if (isTerminatingParagraph) {\n if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false\n }\n\n // For validation mode we can terminate immediately\n if (silent) { return true }\n\n // We should terminate list on style change. Remember first one to compare.\n const markerCharCode = state.src.charCodeAt(posAfterMarker - 1)\n\n // Start list\n const listTokIdx = state.tokens.length\n\n if (isOrdered) {\n token = state.push('ordered_list_open', 'ol', 1)\n if (markerValue !== 1) {\n token.attrs = [['start', markerValue]]\n }\n } else {\n token = state.push('bullet_list_open', 'ul', 1)\n }\n\n const listLines = [nextLine, 0]\n token.map = listLines\n token.markup = String.fromCharCode(markerCharCode)\n\n //\n // Iterate list items\n //\n\n let prevEmptyEnd = false\n const terminatorRules = state.md.block.ruler.getRules('list')\n\n const oldParentType = state.parentType\n state.parentType = 'list'\n\n while (nextLine < endLine) {\n pos = posAfterMarker\n max = state.eMarks[nextLine]\n\n const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine])\n let offset = initial\n\n while (pos < max) {\n const ch = state.src.charCodeAt(pos)\n\n if (ch === 0x09) {\n offset += 4 - (offset + state.bsCount[nextLine]) % 4\n } else if (ch === 0x20) {\n offset++\n } else {\n break\n }\n\n pos++\n }\n\n const contentStart = pos\n let indentAfterMarker\n\n if (contentStart >= max) {\n // trimming space in \"- \\n 3\" case, indent is 1 here\n indentAfterMarker = 1\n } else {\n indentAfterMarker = offset - initial\n }\n\n // If we have more than 4 spaces, the indent is 1\n // (the rest is just indented code block)\n if (indentAfterMarker > 4) { indentAfterMarker = 1 }\n\n // \" - test\"\n // ^^^^^ - calculating total length of this thing\n const indent = initial + indentAfterMarker\n\n // Run subparser & write tokens\n token = state.push('list_item_open', 'li', 1)\n token.markup = String.fromCharCode(markerCharCode)\n const itemLines = [nextLine, 0]\n token.map = itemLines\n if (isOrdered) {\n token.info = state.src.slice(start, posAfterMarker - 1)\n }\n\n // change current state, then restore it after parser subcall\n const oldTight = state.tight\n const oldTShift = state.tShift[nextLine]\n const oldSCount = state.sCount[nextLine]\n\n // - example list\n // ^ listIndent position will be here\n // ^ blkIndent position will be here\n //\n const oldListIndent = state.listIndent\n state.listIndent = state.blkIndent\n state.blkIndent = indent\n\n state.tight = true\n state.tShift[nextLine] = contentStart - state.bMarks[nextLine]\n state.sCount[nextLine] = offset\n\n if (contentStart >= max && state.isEmpty(nextLine + 1)) {\n // workaround for this case\n // (list item is empty, list terminates before \"foo\"):\n // ~~~~~~~~\n // -\n //\n // foo\n // ~~~~~~~~\n state.line = Math.min(state.line + 2, endLine)\n } else {\n state.md.block.tokenize(state, nextLine, endLine, true)\n }\n\n // If any of list item is tight, mark list as tight\n if (!state.tight || prevEmptyEnd) {\n tight = false\n }\n // Item become loose if finish with empty line,\n // but we should filter last element, because it means list finish\n prevEmptyEnd = (state.line - nextLine) > 1 && state.isEmpty(state.line - 1)\n\n state.blkIndent = state.listIndent\n state.listIndent = oldListIndent\n state.tShift[nextLine] = oldTShift\n state.sCount[nextLine] = oldSCount\n state.tight = oldTight\n\n token = state.push('list_item_close', 'li', -1)\n token.markup = String.fromCharCode(markerCharCode)\n\n nextLine = state.line\n itemLines[1] = nextLine\n\n if (nextLine >= endLine) { break }\n\n //\n // Try to check if list is terminated or continued.\n //\n if (state.sCount[nextLine] < state.blkIndent) { break }\n\n // if it's indented more than 3 spaces, it should be a code block\n if (state.sCount[nextLine] - state.blkIndent >= 4) { break }\n\n // fail if terminating block found\n let terminate = false\n for (let i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true\n break\n }\n }\n if (terminate) { break }\n\n // fail if list has another type\n if (isOrdered) {\n posAfterMarker = skipOrderedListMarker(state, nextLine)\n if (posAfterMarker < 0) { break }\n start = state.bMarks[nextLine] + state.tShift[nextLine]\n } else {\n posAfterMarker = skipBulletListMarker(state, nextLine)\n if (posAfterMarker < 0) { break }\n }\n\n if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) { break }\n }\n\n // Finalize list\n if (isOrdered) {\n token = state.push('ordered_list_close', 'ol', -1)\n } else {\n token = state.push('bullet_list_close', 'ul', -1)\n }\n token.markup = String.fromCharCode(markerCharCode)\n\n listLines[1] = nextLine\n state.line = nextLine\n\n state.parentType = oldParentType\n\n // mark paragraphs tight if needed\n if (tight) {\n markTightParagraphs(state, listTokIdx)\n }\n\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs
|
|
3
|
+
function paragraph(state, startLine, endLine) {
|
|
4
|
+
const terminatorRules = state.md.block.ruler.getRules("paragraph");
|
|
5
|
+
const oldParentType = state.parentType;
|
|
6
|
+
let nextLine = startLine + 1;
|
|
7
|
+
state.parentType = "paragraph";
|
|
8
|
+
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
|
|
9
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) continue;
|
|
10
|
+
if (state.sCount[nextLine] < 0) continue;
|
|
11
|
+
let terminate = false;
|
|
12
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
13
|
+
terminate = true;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
if (terminate) break;
|
|
17
|
+
}
|
|
18
|
+
const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();
|
|
19
|
+
state.line = nextLine;
|
|
20
|
+
const token_o = state.push("paragraph_open", "p", 1);
|
|
21
|
+
token_o.map = [startLine, state.line];
|
|
22
|
+
const token_i = state.push("inline", "", 0);
|
|
23
|
+
token_i.content = content;
|
|
24
|
+
token_i.map = [startLine, state.line];
|
|
25
|
+
token_i.children = [];
|
|
26
|
+
state.push("paragraph_close", "p", -1);
|
|
27
|
+
state.parentType = oldParentType;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.default = paragraph;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs
|
|
2
|
+
function paragraph(state, startLine, endLine) {
|
|
3
|
+
const terminatorRules = state.md.block.ruler.getRules("paragraph");
|
|
4
|
+
const oldParentType = state.parentType;
|
|
5
|
+
let nextLine = startLine + 1;
|
|
6
|
+
state.parentType = "paragraph";
|
|
7
|
+
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
|
|
8
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) continue;
|
|
9
|
+
if (state.sCount[nextLine] < 0) continue;
|
|
10
|
+
let terminate = false;
|
|
11
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
12
|
+
terminate = true;
|
|
13
|
+
break;
|
|
14
|
+
}
|
|
15
|
+
if (terminate) break;
|
|
16
|
+
}
|
|
17
|
+
const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();
|
|
18
|
+
state.line = nextLine;
|
|
19
|
+
const token_o = state.push("paragraph_open", "p", 1);
|
|
20
|
+
token_o.map = [startLine, state.line];
|
|
21
|
+
const token_i = state.push("inline", "", 0);
|
|
22
|
+
token_i.content = content;
|
|
23
|
+
token_i.map = [startLine, state.line];
|
|
24
|
+
token_i.children = [];
|
|
25
|
+
state.push("paragraph_close", "p", -1);
|
|
26
|
+
state.parentType = oldParentType;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { paragraph as default };
|
|
32
|
+
//# sourceMappingURL=paragraph.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs"],"sourcesContent":["// Paragraph\n\nexport default function paragraph (state, startLine, endLine) {\n const terminatorRules = state.md.block.ruler.getRules('paragraph')\n const oldParentType = state.parentType\n let nextLine = startLine + 1\n state.parentType = 'paragraph'\n\n // jump line-by-line until empty one or EOF\n for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {\n // this would be a code block normally, but after paragraph\n // it's considered a lazy continuation regardless of what's there\n if (state.sCount[nextLine] - state.blkIndent > 3) { continue }\n\n // quirk for blockquotes, this line should already be checked by that rule\n if (state.sCount[nextLine] < 0) { continue }\n\n // Some tags can terminate paragraph without empty line.\n let terminate = false\n for (let i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true\n break\n }\n }\n if (terminate) { break }\n }\n\n const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim()\n\n state.line = nextLine\n\n const token_o = state.push('paragraph_open', 'p', 1)\n token_o.map = [startLine, state.line]\n\n const token_i = state.push('inline', '', 0)\n token_i.content = content\n token_i.map = [startLine, state.line]\n token_i.children = []\n\n state.push('paragraph_close', 'p', -1)\n\n state.parentType = oldParentType\n\n return true\n}\n"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,UAAW,OAAO,WAAW,SAAS;CAC5D,MAAM,kBAAkB,MAAM,GAAG,MAAM,MAAM,SAAS,YAAY;CAClE,MAAM,gBAAgB,MAAM;CAC5B,IAAI,WAAW,YAAY;AAC3B,OAAM,aAAa;AAGnB,QAAO,WAAW,WAAW,CAAC,MAAM,QAAQ,SAAS,EAAE,YAAY;AAGjE,MAAI,MAAM,OAAO,YAAY,MAAM,YAAY,EAAK;AAGpD,MAAI,MAAM,OAAO,YAAY,EAAK;EAGlC,IAAI,YAAY;AAChB,OAAK,IAAI,IAAI,GAAG,IAAI,gBAAgB,QAAQ,IAAI,GAAG,IACjD,KAAI,gBAAgB,GAAG,OAAO,UAAU,SAAS,KAAK,EAAE;AACtD,eAAY;AACZ;;AAGJ,MAAI,UAAa;;CAGnB,MAAM,UAAU,MAAM,SAAS,WAAW,UAAU,MAAM,WAAW,MAAM,CAAC,MAAM;AAElF,OAAM,OAAO;CAEb,MAAM,UAAa,MAAM,KAAK,kBAAkB,KAAK,EAAE;AACvD,SAAQ,MAAW,CAAC,WAAW,MAAM,KAAK;CAE1C,MAAM,UAAa,MAAM,KAAK,UAAU,IAAI,EAAE;AAC9C,SAAQ,UAAW;AACnB,SAAQ,MAAW,CAAC,WAAW,MAAM,KAAK;AAC1C,SAAQ,WAAW,EAAE;AAErB,OAAM,KAAK,mBAAmB,KAAK,GAAG;AAEtC,OAAM,aAAa;AAEnB,QAAO"}
|
|
@@ -0,0 +1,140 @@
|
|
|
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_block/reference.mjs
|
|
4
|
+
function reference(state, startLine, _endLine, silent) {
|
|
5
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
6
|
+
let max = state.eMarks[startLine];
|
|
7
|
+
let nextLine = startLine + 1;
|
|
8
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
9
|
+
if (state.src.charCodeAt(pos) !== 91) return false;
|
|
10
|
+
function getNextLine(nextLine) {
|
|
11
|
+
const endLine = state.lineMax;
|
|
12
|
+
if (nextLine >= endLine || state.isEmpty(nextLine)) return null;
|
|
13
|
+
let isContinuation = false;
|
|
14
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
|
|
15
|
+
if (state.sCount[nextLine] < 0) isContinuation = true;
|
|
16
|
+
if (!isContinuation) {
|
|
17
|
+
const terminatorRules = state.md.block.ruler.getRules("reference");
|
|
18
|
+
const oldParentType = state.parentType;
|
|
19
|
+
state.parentType = "reference";
|
|
20
|
+
let terminate = false;
|
|
21
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
22
|
+
terminate = true;
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
state.parentType = oldParentType;
|
|
26
|
+
if (terminate) return null;
|
|
27
|
+
}
|
|
28
|
+
const pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
29
|
+
const max = state.eMarks[nextLine];
|
|
30
|
+
return state.src.slice(pos, max + 1);
|
|
31
|
+
}
|
|
32
|
+
let str = state.src.slice(pos, max + 1);
|
|
33
|
+
max = str.length;
|
|
34
|
+
let labelEnd = -1;
|
|
35
|
+
for (pos = 1; pos < max; pos++) {
|
|
36
|
+
const ch = str.charCodeAt(pos);
|
|
37
|
+
if (ch === 91) return false;
|
|
38
|
+
else if (ch === 93) {
|
|
39
|
+
labelEnd = pos;
|
|
40
|
+
break;
|
|
41
|
+
} else if (ch === 10) {
|
|
42
|
+
const lineContent = getNextLine(nextLine);
|
|
43
|
+
if (lineContent !== null) {
|
|
44
|
+
str += lineContent;
|
|
45
|
+
max = str.length;
|
|
46
|
+
nextLine++;
|
|
47
|
+
}
|
|
48
|
+
} else if (ch === 92) {
|
|
49
|
+
pos++;
|
|
50
|
+
if (pos < max && str.charCodeAt(pos) === 10) {
|
|
51
|
+
const lineContent = getNextLine(nextLine);
|
|
52
|
+
if (lineContent !== null) {
|
|
53
|
+
str += lineContent;
|
|
54
|
+
max = str.length;
|
|
55
|
+
nextLine++;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (labelEnd < 0 || str.charCodeAt(labelEnd + 1) !== 58) return false;
|
|
61
|
+
for (pos = labelEnd + 2; pos < max; pos++) {
|
|
62
|
+
const ch = str.charCodeAt(pos);
|
|
63
|
+
if (ch === 10) {
|
|
64
|
+
const lineContent = getNextLine(nextLine);
|
|
65
|
+
if (lineContent !== null) {
|
|
66
|
+
str += lineContent;
|
|
67
|
+
max = str.length;
|
|
68
|
+
nextLine++;
|
|
69
|
+
}
|
|
70
|
+
} else if (require_utils.isSpace(ch)) {} else break;
|
|
71
|
+
}
|
|
72
|
+
const destRes = state.md.helpers.parseLinkDestination(str, pos, max);
|
|
73
|
+
if (!destRes.ok) return false;
|
|
74
|
+
const href = state.md.normalizeLink(destRes.str);
|
|
75
|
+
if (!state.md.validateLink(href)) return false;
|
|
76
|
+
pos = destRes.pos;
|
|
77
|
+
const destEndPos = pos;
|
|
78
|
+
const destEndLineNo = nextLine;
|
|
79
|
+
const start = pos;
|
|
80
|
+
for (; pos < max; pos++) {
|
|
81
|
+
const ch = str.charCodeAt(pos);
|
|
82
|
+
if (ch === 10) {
|
|
83
|
+
const lineContent = getNextLine(nextLine);
|
|
84
|
+
if (lineContent !== null) {
|
|
85
|
+
str += lineContent;
|
|
86
|
+
max = str.length;
|
|
87
|
+
nextLine++;
|
|
88
|
+
}
|
|
89
|
+
} else if (require_utils.isSpace(ch)) {} else break;
|
|
90
|
+
}
|
|
91
|
+
let titleRes = state.md.helpers.parseLinkTitle(str, pos, max);
|
|
92
|
+
while (titleRes.can_continue) {
|
|
93
|
+
const lineContent = getNextLine(nextLine);
|
|
94
|
+
if (lineContent === null) break;
|
|
95
|
+
str += lineContent;
|
|
96
|
+
pos = max;
|
|
97
|
+
max = str.length;
|
|
98
|
+
nextLine++;
|
|
99
|
+
titleRes = state.md.helpers.parseLinkTitle(str, pos, max, titleRes);
|
|
100
|
+
}
|
|
101
|
+
let title;
|
|
102
|
+
if (pos < max && start !== pos && titleRes.ok) {
|
|
103
|
+
title = titleRes.str;
|
|
104
|
+
pos = titleRes.pos;
|
|
105
|
+
} else {
|
|
106
|
+
title = "";
|
|
107
|
+
pos = destEndPos;
|
|
108
|
+
nextLine = destEndLineNo;
|
|
109
|
+
}
|
|
110
|
+
while (pos < max) {
|
|
111
|
+
if (!require_utils.isSpace(str.charCodeAt(pos))) break;
|
|
112
|
+
pos++;
|
|
113
|
+
}
|
|
114
|
+
if (pos < max && str.charCodeAt(pos) !== 10) {
|
|
115
|
+
if (title) {
|
|
116
|
+
title = "";
|
|
117
|
+
pos = destEndPos;
|
|
118
|
+
nextLine = destEndLineNo;
|
|
119
|
+
while (pos < max) {
|
|
120
|
+
if (!require_utils.isSpace(str.charCodeAt(pos))) break;
|
|
121
|
+
pos++;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (pos < max && str.charCodeAt(pos) !== 10) return false;
|
|
126
|
+
const label = require_utils.normalizeReference(str.slice(1, labelEnd));
|
|
127
|
+
if (!label) return false;
|
|
128
|
+
/* istanbul ignore if */
|
|
129
|
+
if (silent) return true;
|
|
130
|
+
if (typeof state.env.references === "undefined") state.env.references = {};
|
|
131
|
+
if (typeof state.env.references[label] === "undefined") state.env.references[label] = {
|
|
132
|
+
title,
|
|
133
|
+
href
|
|
134
|
+
};
|
|
135
|
+
state.line = nextLine;
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
//#endregion
|
|
140
|
+
exports.default = reference;
|