@shell-shock/preset-cli 0.9.10 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +16 -0
- package/dist/_virtual/_rolldown/runtime.mjs +45 -0
- package/dist/components/upgrade-builtin.cjs +1 -1
- package/dist/components/upgrade-builtin.mjs +1 -1
- package/dist/components/upgrade-builtin.mjs.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs +94 -0
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +167 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +167 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +36 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +36 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +32 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +33 -0
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +133 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +134 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +32 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +31 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +169 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +167 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +98 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +95 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +23 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +23 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +1 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +36 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +36 -0
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +373 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +374 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +60 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +59 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +59 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +59 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +338 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +333 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +4095 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +4093 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +1 -0
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +10 -0
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +10 -0
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +449 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +450 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +47 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +123 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +123 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +246 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +244 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +92 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +3 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +9 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +205 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +189 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +19 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +61 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +43 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +44 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +488 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +489 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +148 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +149 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +51 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +52 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +126 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +127 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +217 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +218 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +274 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +274 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +107 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +108 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +36 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +72 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +53 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +53 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +158 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +140 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +141 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +139 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +140 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +81 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +82 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +14 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +55 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +55 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +49 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +82 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +83 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +84 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +85 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +42 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +42 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +74 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +21 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +17 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +74 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +74 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +57 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +57 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +18 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +18 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +175 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +175 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +19 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +15 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +104 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +104 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +73 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +68 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +266 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +262 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +575 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +543 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +27 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +21 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +105 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +94 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +33 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +34 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +99 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +93 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +2544 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +2545 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +296 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +297 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +28 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +2069 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +2069 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +156 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +157 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +166 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +167 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +299 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +295 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +25 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +21 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +15 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +17 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -0
- package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/changelog-command.cjs +5 -4
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -3
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
- package/dist/{plugin-changelog → packages/plugin-changelog}/dist/index.cjs +1 -1
- package/dist/packages/unified/dist/html-Di3_LwV3.cjs +337 -0
- package/dist/packages/unified/dist/html-Di3_LwV3.mjs +338 -0
- package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +1 -0
- package/dist/packages/unified/dist/markdown/index.cjs +1 -0
- package/dist/packages/unified/dist/markdown/index.mjs +3 -0
- package/dist/packages/unified/dist/markdown-OuY_JOk0.cjs +82 -0
- package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs +83 -0
- package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs.map +1 -0
- package/package.json +39 -12
- package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs +0 -10
- package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs.map +0 -1
- package/dist/unified/dist/markdown-Bs-BRrSC.cjs +0 -10
- /package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/index.cjs +0 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { __toESM } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import decode from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs";
|
|
3
|
+
import encode from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs";
|
|
4
|
+
import format from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/format.mjs";
|
|
5
|
+
import urlParse from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs";
|
|
6
|
+
import "../../../../mdurl@2.0.0/node_modules/mdurl/index.mjs";
|
|
7
|
+
import { assign, isString, utils_exports } from "./common/utils.mjs";
|
|
8
|
+
import { helpers_exports } from "./helpers/index.mjs";
|
|
9
|
+
import Renderer from "./renderer.mjs";
|
|
10
|
+
import Core from "./parser_core.mjs";
|
|
11
|
+
import ParserBlock from "./parser_block.mjs";
|
|
12
|
+
import ParserInline from "./parser_inline.mjs";
|
|
13
|
+
import LinkifyIt from "../../../../linkify-it@5.0.0/node_modules/linkify-it/index.mjs";
|
|
14
|
+
import { require_punycode } from "../../../../punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs";
|
|
15
|
+
import default_default from "./presets/default.mjs";
|
|
16
|
+
import zero_default from "./presets/zero.mjs";
|
|
17
|
+
import commonmark_default from "./presets/commonmark.mjs";
|
|
18
|
+
|
|
19
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs
|
|
20
|
+
var import_punycode = /* @__PURE__ */ __toESM(require_punycode(), 1);
|
|
21
|
+
const config = {
|
|
22
|
+
default: default_default,
|
|
23
|
+
zero: zero_default,
|
|
24
|
+
commonmark: commonmark_default
|
|
25
|
+
};
|
|
26
|
+
const BAD_PROTO_RE = /^(vbscript|javascript|file|data):/;
|
|
27
|
+
const GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|webp);/;
|
|
28
|
+
function validateLink(url) {
|
|
29
|
+
const str = url.trim().toLowerCase();
|
|
30
|
+
return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) : true;
|
|
31
|
+
}
|
|
32
|
+
const RECODE_HOSTNAME_FOR = [
|
|
33
|
+
"http:",
|
|
34
|
+
"https:",
|
|
35
|
+
"mailto:"
|
|
36
|
+
];
|
|
37
|
+
function normalizeLink(url) {
|
|
38
|
+
const parsed = urlParse(url, true);
|
|
39
|
+
if (parsed.hostname) {
|
|
40
|
+
if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
|
|
41
|
+
parsed.hostname = import_punycode.default.toASCII(parsed.hostname);
|
|
42
|
+
} catch (er) {}
|
|
43
|
+
}
|
|
44
|
+
return encode(format(parsed));
|
|
45
|
+
}
|
|
46
|
+
function normalizeLinkText(url) {
|
|
47
|
+
const parsed = urlParse(url, true);
|
|
48
|
+
if (parsed.hostname) {
|
|
49
|
+
if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
|
|
50
|
+
parsed.hostname = import_punycode.default.toUnicode(parsed.hostname);
|
|
51
|
+
} catch (er) {}
|
|
52
|
+
}
|
|
53
|
+
return decode(format(parsed), decode.defaultChars + "%");
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* class MarkdownIt
|
|
57
|
+
*
|
|
58
|
+
* Main parser/renderer class.
|
|
59
|
+
*
|
|
60
|
+
* ##### Usage
|
|
61
|
+
*
|
|
62
|
+
* ```javascript
|
|
63
|
+
* // node.js, "classic" way:
|
|
64
|
+
* var MarkdownIt = require('markdown-it'),
|
|
65
|
+
* md = new MarkdownIt();
|
|
66
|
+
* var result = md.render('# markdown-it rulezz!');
|
|
67
|
+
*
|
|
68
|
+
* // node.js, the same, but with sugar:
|
|
69
|
+
* var md = require('markdown-it')();
|
|
70
|
+
* var result = md.render('# markdown-it rulezz!');
|
|
71
|
+
*
|
|
72
|
+
* // browser without AMD, added to "window" on script load
|
|
73
|
+
* // Note, there are no dash.
|
|
74
|
+
* var md = window.markdownit();
|
|
75
|
+
* var result = md.render('# markdown-it rulezz!');
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* Single line rendering, without paragraph wrap:
|
|
79
|
+
*
|
|
80
|
+
* ```javascript
|
|
81
|
+
* var md = require('markdown-it')();
|
|
82
|
+
* var result = md.renderInline('__markdown-it__ rulezz!');
|
|
83
|
+
* ```
|
|
84
|
+
**/
|
|
85
|
+
/**
|
|
86
|
+
* new MarkdownIt([presetName, options])
|
|
87
|
+
* - presetName (String): optional, `commonmark` / `zero`
|
|
88
|
+
* - options (Object)
|
|
89
|
+
*
|
|
90
|
+
* Creates parser instanse with given config. Can be called without `new`.
|
|
91
|
+
*
|
|
92
|
+
* ##### presetName
|
|
93
|
+
*
|
|
94
|
+
* MarkdownIt provides named presets as a convenience to quickly
|
|
95
|
+
* enable/disable active syntax rules and options for common use cases.
|
|
96
|
+
*
|
|
97
|
+
* - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.mjs) -
|
|
98
|
+
* configures parser to strict [CommonMark](http://commonmark.org/) mode.
|
|
99
|
+
* - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.mjs) -
|
|
100
|
+
* similar to GFM, used when no preset name given. Enables all available rules,
|
|
101
|
+
* but still without html, typographer & autolinker.
|
|
102
|
+
* - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.mjs) -
|
|
103
|
+
* all rules disabled. Useful to quickly setup your config via `.enable()`.
|
|
104
|
+
* For example, when you need only `bold` and `italic` markup and nothing else.
|
|
105
|
+
*
|
|
106
|
+
* ##### options:
|
|
107
|
+
*
|
|
108
|
+
* - __html__ - `false`. Set `true` to enable HTML tags in source. Be careful!
|
|
109
|
+
* That's not safe! You may need external sanitizer to protect output from XSS.
|
|
110
|
+
* It's better to extend features via plugins, instead of enabling HTML.
|
|
111
|
+
* - __xhtmlOut__ - `false`. Set `true` to add '/' when closing single tags
|
|
112
|
+
* (`<br />`). This is needed only for full CommonMark compatibility. In real
|
|
113
|
+
* world you will need HTML output.
|
|
114
|
+
* - __breaks__ - `false`. Set `true` to convert `\n` in paragraphs into `<br>`.
|
|
115
|
+
* - __langPrefix__ - `language-`. CSS language class prefix for fenced blocks.
|
|
116
|
+
* Can be useful for external highlighters.
|
|
117
|
+
* - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.
|
|
118
|
+
* - __typographer__ - `false`. Set `true` to enable [some language-neutral
|
|
119
|
+
* replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.mjs) +
|
|
120
|
+
* quotes beautification (smartquotes).
|
|
121
|
+
* - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement
|
|
122
|
+
* pairs, when typographer enabled and smartquotes on. For example, you can
|
|
123
|
+
* use `'«»„“'` for Russian, `'„“‚‘'` for German, and
|
|
124
|
+
* `['«\xA0', '\xA0»', '‹\xA0', '\xA0›']` for French (including nbsp).
|
|
125
|
+
* - __highlight__ - `null`. Highlighter function for fenced code blocks.
|
|
126
|
+
* Highlighter `function (str, lang)` should return escaped HTML. It can also
|
|
127
|
+
* return empty string if the source was not changed and should be escaped
|
|
128
|
+
* externaly. If result starts with <pre... internal wrapper is skipped.
|
|
129
|
+
*
|
|
130
|
+
* ##### Example
|
|
131
|
+
*
|
|
132
|
+
* ```javascript
|
|
133
|
+
* // commonmark mode
|
|
134
|
+
* var md = require('markdown-it')('commonmark');
|
|
135
|
+
*
|
|
136
|
+
* // default mode
|
|
137
|
+
* var md = require('markdown-it')();
|
|
138
|
+
*
|
|
139
|
+
* // enable everything
|
|
140
|
+
* var md = require('markdown-it')({
|
|
141
|
+
* html: true,
|
|
142
|
+
* linkify: true,
|
|
143
|
+
* typographer: true
|
|
144
|
+
* });
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* ##### Syntax highlighting
|
|
148
|
+
*
|
|
149
|
+
* ```js
|
|
150
|
+
* var hljs = require('highlight.js') // https://highlightjs.org/
|
|
151
|
+
*
|
|
152
|
+
* var md = require('markdown-it')({
|
|
153
|
+
* highlight: function (str, lang) {
|
|
154
|
+
* if (lang && hljs.getLanguage(lang)) {
|
|
155
|
+
* try {
|
|
156
|
+
* return hljs.highlight(str, { language: lang, ignoreIllegals: true }).value;
|
|
157
|
+
* } catch (__) {}
|
|
158
|
+
* }
|
|
159
|
+
*
|
|
160
|
+
* return ''; // use external default escaping
|
|
161
|
+
* }
|
|
162
|
+
* });
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* Or with full wrapper override (if you need assign class to `<pre>` or `<code>`):
|
|
166
|
+
*
|
|
167
|
+
* ```javascript
|
|
168
|
+
* var hljs = require('highlight.js') // https://highlightjs.org/
|
|
169
|
+
*
|
|
170
|
+
* // Actual default values
|
|
171
|
+
* var md = require('markdown-it')({
|
|
172
|
+
* highlight: function (str, lang) {
|
|
173
|
+
* if (lang && hljs.getLanguage(lang)) {
|
|
174
|
+
* try {
|
|
175
|
+
* return '<pre><code class="hljs">' +
|
|
176
|
+
* hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
|
|
177
|
+
* '</code></pre>';
|
|
178
|
+
* } catch (__) {}
|
|
179
|
+
* }
|
|
180
|
+
*
|
|
181
|
+
* return '<pre><code class="hljs">' + md.utils.escapeHtml(str) + '</code></pre>';
|
|
182
|
+
* }
|
|
183
|
+
* });
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
**/
|
|
187
|
+
function MarkdownIt(presetName, options) {
|
|
188
|
+
if (!(this instanceof MarkdownIt)) return new MarkdownIt(presetName, options);
|
|
189
|
+
if (!options) {
|
|
190
|
+
if (!isString(presetName)) {
|
|
191
|
+
options = presetName || {};
|
|
192
|
+
presetName = "default";
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* MarkdownIt#inline -> ParserInline
|
|
197
|
+
*
|
|
198
|
+
* Instance of [[ParserInline]]. You may need it to add new rules when
|
|
199
|
+
* writing plugins. For simple rules control use [[MarkdownIt.disable]] and
|
|
200
|
+
* [[MarkdownIt.enable]].
|
|
201
|
+
**/
|
|
202
|
+
this.inline = new ParserInline();
|
|
203
|
+
/**
|
|
204
|
+
* MarkdownIt#block -> ParserBlock
|
|
205
|
+
*
|
|
206
|
+
* Instance of [[ParserBlock]]. You may need it to add new rules when
|
|
207
|
+
* writing plugins. For simple rules control use [[MarkdownIt.disable]] and
|
|
208
|
+
* [[MarkdownIt.enable]].
|
|
209
|
+
**/
|
|
210
|
+
this.block = new ParserBlock();
|
|
211
|
+
/**
|
|
212
|
+
* MarkdownIt#core -> Core
|
|
213
|
+
*
|
|
214
|
+
* Instance of [[Core]] chain executor. You may need it to add new rules when
|
|
215
|
+
* writing plugins. For simple rules control use [[MarkdownIt.disable]] and
|
|
216
|
+
* [[MarkdownIt.enable]].
|
|
217
|
+
**/
|
|
218
|
+
this.core = new Core();
|
|
219
|
+
/**
|
|
220
|
+
* MarkdownIt#renderer -> Renderer
|
|
221
|
+
*
|
|
222
|
+
* Instance of [[Renderer]]. Use it to modify output look. Or to add rendering
|
|
223
|
+
* rules for new token types, generated by plugins.
|
|
224
|
+
*
|
|
225
|
+
* ##### Example
|
|
226
|
+
*
|
|
227
|
+
* ```javascript
|
|
228
|
+
* var md = require('markdown-it')();
|
|
229
|
+
*
|
|
230
|
+
* function myToken(tokens, idx, options, env, self) {
|
|
231
|
+
* //...
|
|
232
|
+
* return result;
|
|
233
|
+
* };
|
|
234
|
+
*
|
|
235
|
+
* md.renderer.rules['my_token'] = myToken
|
|
236
|
+
* ```
|
|
237
|
+
*
|
|
238
|
+
* See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs).
|
|
239
|
+
**/
|
|
240
|
+
this.renderer = new Renderer();
|
|
241
|
+
/**
|
|
242
|
+
* MarkdownIt#linkify -> LinkifyIt
|
|
243
|
+
*
|
|
244
|
+
* [linkify-it](https://github.com/markdown-it/linkify-it) instance.
|
|
245
|
+
* Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.mjs)
|
|
246
|
+
* rule.
|
|
247
|
+
**/
|
|
248
|
+
this.linkify = new LinkifyIt();
|
|
249
|
+
/**
|
|
250
|
+
* MarkdownIt#validateLink(url) -> Boolean
|
|
251
|
+
*
|
|
252
|
+
* Link validation function. CommonMark allows too much in links. By default
|
|
253
|
+
* we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
|
|
254
|
+
* except some embedded image types.
|
|
255
|
+
*
|
|
256
|
+
* You can change this behaviour:
|
|
257
|
+
*
|
|
258
|
+
* ```javascript
|
|
259
|
+
* var md = require('markdown-it')();
|
|
260
|
+
* // enable everything
|
|
261
|
+
* md.validateLink = function () { return true; }
|
|
262
|
+
* ```
|
|
263
|
+
**/
|
|
264
|
+
this.validateLink = validateLink;
|
|
265
|
+
/**
|
|
266
|
+
* MarkdownIt#normalizeLink(url) -> String
|
|
267
|
+
*
|
|
268
|
+
* Function used to encode link url to a machine-readable format,
|
|
269
|
+
* which includes url-encoding, punycode, etc.
|
|
270
|
+
**/
|
|
271
|
+
this.normalizeLink = normalizeLink;
|
|
272
|
+
/**
|
|
273
|
+
* MarkdownIt#normalizeLinkText(url) -> String
|
|
274
|
+
*
|
|
275
|
+
* Function used to decode link url to a human-readable format`
|
|
276
|
+
**/
|
|
277
|
+
this.normalizeLinkText = normalizeLinkText;
|
|
278
|
+
/**
|
|
279
|
+
* MarkdownIt#utils -> utils
|
|
280
|
+
*
|
|
281
|
+
* Assorted utility functions, useful to write plugins. See details
|
|
282
|
+
* [here](https://github.com/markdown-it/markdown-it/blob/master/lib/common/utils.mjs).
|
|
283
|
+
**/
|
|
284
|
+
this.utils = utils_exports;
|
|
285
|
+
/**
|
|
286
|
+
* MarkdownIt#helpers -> helpers
|
|
287
|
+
*
|
|
288
|
+
* Link components parser functions, useful to write plugins. See details
|
|
289
|
+
* [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).
|
|
290
|
+
**/
|
|
291
|
+
this.helpers = assign({}, helpers_exports);
|
|
292
|
+
this.options = {};
|
|
293
|
+
this.configure(presetName);
|
|
294
|
+
if (options) this.set(options);
|
|
295
|
+
}
|
|
296
|
+
/** chainable
|
|
297
|
+
* MarkdownIt.set(options)
|
|
298
|
+
*
|
|
299
|
+
* Set parser options (in the same format as in constructor). Probably, you
|
|
300
|
+
* will never need it, but you can change options after constructor call.
|
|
301
|
+
*
|
|
302
|
+
* ##### Example
|
|
303
|
+
*
|
|
304
|
+
* ```javascript
|
|
305
|
+
* var md = require('markdown-it')()
|
|
306
|
+
* .set({ html: true, breaks: true })
|
|
307
|
+
* .set({ typographer, true });
|
|
308
|
+
* ```
|
|
309
|
+
*
|
|
310
|
+
* __Note:__ To achieve the best possible performance, don't modify a
|
|
311
|
+
* `markdown-it` instance options on the fly. If you need multiple configurations
|
|
312
|
+
* it's best to create multiple instances and initialize each with separate
|
|
313
|
+
* config.
|
|
314
|
+
**/
|
|
315
|
+
MarkdownIt.prototype.set = function(options) {
|
|
316
|
+
assign(this.options, options);
|
|
317
|
+
return this;
|
|
318
|
+
};
|
|
319
|
+
/** chainable, internal
|
|
320
|
+
* MarkdownIt.configure(presets)
|
|
321
|
+
*
|
|
322
|
+
* Batch load of all options and compenent settings. This is internal method,
|
|
323
|
+
* and you probably will not need it. But if you will - see available presets
|
|
324
|
+
* and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets)
|
|
325
|
+
*
|
|
326
|
+
* We strongly recommend to use presets instead of direct config loads. That
|
|
327
|
+
* will give better compatibility with next versions.
|
|
328
|
+
**/
|
|
329
|
+
MarkdownIt.prototype.configure = function(presets) {
|
|
330
|
+
const self = this;
|
|
331
|
+
if (isString(presets)) {
|
|
332
|
+
const presetName = presets;
|
|
333
|
+
presets = config[presetName];
|
|
334
|
+
if (!presets) throw new Error("Wrong `markdown-it` preset \"" + presetName + "\", check name");
|
|
335
|
+
}
|
|
336
|
+
if (!presets) throw new Error("Wrong `markdown-it` preset, can't be empty");
|
|
337
|
+
if (presets.options) self.set(presets.options);
|
|
338
|
+
if (presets.components) Object.keys(presets.components).forEach(function(name) {
|
|
339
|
+
if (presets.components[name].rules) self[name].ruler.enableOnly(presets.components[name].rules);
|
|
340
|
+
if (presets.components[name].rules2) self[name].ruler2.enableOnly(presets.components[name].rules2);
|
|
341
|
+
});
|
|
342
|
+
return this;
|
|
343
|
+
};
|
|
344
|
+
/** chainable
|
|
345
|
+
* MarkdownIt.enable(list, ignoreInvalid)
|
|
346
|
+
* - list (String|Array): rule name or list of rule names to enable
|
|
347
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
348
|
+
*
|
|
349
|
+
* Enable list or rules. It will automatically find appropriate components,
|
|
350
|
+
* containing rules with given names. If rule not found, and `ignoreInvalid`
|
|
351
|
+
* not set - throws exception.
|
|
352
|
+
*
|
|
353
|
+
* ##### Example
|
|
354
|
+
*
|
|
355
|
+
* ```javascript
|
|
356
|
+
* var md = require('markdown-it')()
|
|
357
|
+
* .enable(['sub', 'sup'])
|
|
358
|
+
* .disable('smartquotes');
|
|
359
|
+
* ```
|
|
360
|
+
**/
|
|
361
|
+
MarkdownIt.prototype.enable = function(list, ignoreInvalid) {
|
|
362
|
+
let result = [];
|
|
363
|
+
if (!Array.isArray(list)) list = [list];
|
|
364
|
+
[
|
|
365
|
+
"core",
|
|
366
|
+
"block",
|
|
367
|
+
"inline"
|
|
368
|
+
].forEach(function(chain) {
|
|
369
|
+
result = result.concat(this[chain].ruler.enable(list, true));
|
|
370
|
+
}, this);
|
|
371
|
+
result = result.concat(this.inline.ruler2.enable(list, true));
|
|
372
|
+
const missed = list.filter(function(name) {
|
|
373
|
+
return result.indexOf(name) < 0;
|
|
374
|
+
});
|
|
375
|
+
if (missed.length && !ignoreInvalid) throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + missed);
|
|
376
|
+
return this;
|
|
377
|
+
};
|
|
378
|
+
/** chainable
|
|
379
|
+
* MarkdownIt.disable(list, ignoreInvalid)
|
|
380
|
+
* - list (String|Array): rule name or list of rule names to disable.
|
|
381
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
382
|
+
*
|
|
383
|
+
* The same as [[MarkdownIt.enable]], but turn specified rules off.
|
|
384
|
+
**/
|
|
385
|
+
MarkdownIt.prototype.disable = function(list, ignoreInvalid) {
|
|
386
|
+
let result = [];
|
|
387
|
+
if (!Array.isArray(list)) list = [list];
|
|
388
|
+
[
|
|
389
|
+
"core",
|
|
390
|
+
"block",
|
|
391
|
+
"inline"
|
|
392
|
+
].forEach(function(chain) {
|
|
393
|
+
result = result.concat(this[chain].ruler.disable(list, true));
|
|
394
|
+
}, this);
|
|
395
|
+
result = result.concat(this.inline.ruler2.disable(list, true));
|
|
396
|
+
const missed = list.filter(function(name) {
|
|
397
|
+
return result.indexOf(name) < 0;
|
|
398
|
+
});
|
|
399
|
+
if (missed.length && !ignoreInvalid) throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + missed);
|
|
400
|
+
return this;
|
|
401
|
+
};
|
|
402
|
+
/** chainable
|
|
403
|
+
* MarkdownIt.use(plugin, params)
|
|
404
|
+
*
|
|
405
|
+
* Load specified plugin with given params into current parser instance.
|
|
406
|
+
* It's just a sugar to call `plugin(md, params)` with curring.
|
|
407
|
+
*
|
|
408
|
+
* ##### Example
|
|
409
|
+
*
|
|
410
|
+
* ```javascript
|
|
411
|
+
* var iterator = require('markdown-it-for-inline');
|
|
412
|
+
* var md = require('markdown-it')()
|
|
413
|
+
* .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
|
|
414
|
+
* tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar');
|
|
415
|
+
* });
|
|
416
|
+
* ```
|
|
417
|
+
**/
|
|
418
|
+
MarkdownIt.prototype.use = function(plugin) {
|
|
419
|
+
const args = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
420
|
+
plugin.apply(plugin, args);
|
|
421
|
+
return this;
|
|
422
|
+
};
|
|
423
|
+
/** internal
|
|
424
|
+
* MarkdownIt.parse(src, env) -> Array
|
|
425
|
+
* - src (String): source string
|
|
426
|
+
* - env (Object): environment sandbox
|
|
427
|
+
*
|
|
428
|
+
* Parse input string and return list of block tokens (special token type
|
|
429
|
+
* "inline" will contain list of inline tokens). You should not call this
|
|
430
|
+
* method directly, until you write custom renderer (for example, to produce
|
|
431
|
+
* AST).
|
|
432
|
+
*
|
|
433
|
+
* `env` is used to pass data between "distributed" rules and return additional
|
|
434
|
+
* metadata like reference info, needed for the renderer. It also can be used to
|
|
435
|
+
* inject data in specific cases. Usually, you will be ok to pass `{}`,
|
|
436
|
+
* and then pass updated object to renderer.
|
|
437
|
+
**/
|
|
438
|
+
MarkdownIt.prototype.parse = function(src, env) {
|
|
439
|
+
if (typeof src !== "string") throw new Error("Input data should be a String");
|
|
440
|
+
const state = new this.core.State(src, this, env);
|
|
441
|
+
this.core.process(state);
|
|
442
|
+
return state.tokens;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* MarkdownIt.render(src [, env]) -> String
|
|
446
|
+
* - src (String): source string
|
|
447
|
+
* - env (Object): environment sandbox
|
|
448
|
+
*
|
|
449
|
+
* Render markdown string into html. It does all magic for you :).
|
|
450
|
+
*
|
|
451
|
+
* `env` can be used to inject additional metadata (`{}` by default).
|
|
452
|
+
* But you will not need it with high probability. See also comment
|
|
453
|
+
* in [[MarkdownIt.parse]].
|
|
454
|
+
**/
|
|
455
|
+
MarkdownIt.prototype.render = function(src, env) {
|
|
456
|
+
env = env || {};
|
|
457
|
+
return this.renderer.render(this.parse(src, env), this.options, env);
|
|
458
|
+
};
|
|
459
|
+
/** internal
|
|
460
|
+
* MarkdownIt.parseInline(src, env) -> Array
|
|
461
|
+
* - src (String): source string
|
|
462
|
+
* - env (Object): environment sandbox
|
|
463
|
+
*
|
|
464
|
+
* The same as [[MarkdownIt.parse]] but skip all block rules. It returns the
|
|
465
|
+
* block tokens list with the single `inline` element, containing parsed inline
|
|
466
|
+
* tokens in `children` property. Also updates `env` object.
|
|
467
|
+
**/
|
|
468
|
+
MarkdownIt.prototype.parseInline = function(src, env) {
|
|
469
|
+
const state = new this.core.State(src, this, env);
|
|
470
|
+
state.inlineMode = true;
|
|
471
|
+
this.core.process(state);
|
|
472
|
+
return state.tokens;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* MarkdownIt.renderInline(src [, env]) -> String
|
|
476
|
+
* - src (String): source string
|
|
477
|
+
* - env (Object): environment sandbox
|
|
478
|
+
*
|
|
479
|
+
* Similar to [[MarkdownIt.render]] but for single paragraph content. Result
|
|
480
|
+
* will NOT be wrapped into `<p>` tags.
|
|
481
|
+
**/
|
|
482
|
+
MarkdownIt.prototype.renderInline = function(src, env) {
|
|
483
|
+
env = env || {};
|
|
484
|
+
return this.renderer.render(this.parseInline(src, env), this.options, env);
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
//#endregion
|
|
488
|
+
export { MarkdownIt as default };
|
|
489
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["cfg_default","cfg_zero","cfg_commonmark","mdurl.parse","punycode","mdurl.encode","mdurl.format","mdurl.decode","utils.isString","ParserCore","utils","utils.assign","helpers"],"sources":["../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs"],"sourcesContent":["// Main parser class\n\nimport * as utils from './common/utils.mjs'\nimport * as helpers from './helpers/index.mjs'\nimport Renderer from './renderer.mjs'\nimport ParserCore from './parser_core.mjs'\nimport ParserBlock from './parser_block.mjs'\nimport ParserInline from './parser_inline.mjs'\nimport LinkifyIt from 'linkify-it'\nimport * as mdurl from 'mdurl'\nimport punycode from 'punycode.js'\n\nimport cfg_default from './presets/default.mjs'\nimport cfg_zero from './presets/zero.mjs'\nimport cfg_commonmark from './presets/commonmark.mjs'\n\nconst config = {\n default: cfg_default,\n zero: cfg_zero,\n commonmark: cfg_commonmark\n}\n\n//\n// This validator can prohibit more than really needed to prevent XSS. It's a\n// tradeoff to keep code simple and to be secure by default.\n//\n// If you need different setup - override validator method as you wish. Or\n// replace it with dummy function and use external sanitizer.\n//\n\nconst BAD_PROTO_RE = /^(vbscript|javascript|file|data):/\nconst GOOD_DATA_RE = /^data:image\\/(gif|png|jpeg|webp);/\n\nfunction validateLink (url) {\n // url should be normalized at this point, and existing entities are decoded\n const str = url.trim().toLowerCase()\n\n return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) : true\n}\n\nconst RECODE_HOSTNAME_FOR = ['http:', 'https:', 'mailto:']\n\nfunction normalizeLink (url) {\n const parsed = mdurl.parse(url, true)\n\n if (parsed.hostname) {\n // Encode hostnames in urls like:\n // `http://host/`, `https://host/`, `mailto:user@host`, `//host/`\n //\n // We don't encode unknown schemas, because it's likely that we encode\n // something we shouldn't (e.g. `skype:name` treated as `skype:host`)\n //\n if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) {\n try {\n parsed.hostname = punycode.toASCII(parsed.hostname)\n } catch (er) { /**/ }\n }\n }\n\n return mdurl.encode(mdurl.format(parsed))\n}\n\nfunction normalizeLinkText (url) {\n const parsed = mdurl.parse(url, true)\n\n if (parsed.hostname) {\n // Encode hostnames in urls like:\n // `http://host/`, `https://host/`, `mailto:user@host`, `//host/`\n //\n // We don't encode unknown schemas, because it's likely that we encode\n // something we shouldn't (e.g. `skype:name` treated as `skype:host`)\n //\n if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) {\n try {\n parsed.hostname = punycode.toUnicode(parsed.hostname)\n } catch (er) { /**/ }\n }\n }\n\n // add '%' to exclude list because of https://github.com/markdown-it/markdown-it/issues/720\n return mdurl.decode(mdurl.format(parsed), mdurl.decode.defaultChars + '%')\n}\n\n/**\n * class MarkdownIt\n *\n * Main parser/renderer class.\n *\n * ##### Usage\n *\n * ```javascript\n * // node.js, \"classic\" way:\n * var MarkdownIt = require('markdown-it'),\n * md = new MarkdownIt();\n * var result = md.render('# markdown-it rulezz!');\n *\n * // node.js, the same, but with sugar:\n * var md = require('markdown-it')();\n * var result = md.render('# markdown-it rulezz!');\n *\n * // browser without AMD, added to \"window\" on script load\n * // Note, there are no dash.\n * var md = window.markdownit();\n * var result = md.render('# markdown-it rulezz!');\n * ```\n *\n * Single line rendering, without paragraph wrap:\n *\n * ```javascript\n * var md = require('markdown-it')();\n * var result = md.renderInline('__markdown-it__ rulezz!');\n * ```\n **/\n\n/**\n * new MarkdownIt([presetName, options])\n * - presetName (String): optional, `commonmark` / `zero`\n * - options (Object)\n *\n * Creates parser instanse with given config. Can be called without `new`.\n *\n * ##### presetName\n *\n * MarkdownIt provides named presets as a convenience to quickly\n * enable/disable active syntax rules and options for common use cases.\n *\n * - [\"commonmark\"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.mjs) -\n * configures parser to strict [CommonMark](http://commonmark.org/) mode.\n * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.mjs) -\n * similar to GFM, used when no preset name given. Enables all available rules,\n * but still without html, typographer & autolinker.\n * - [\"zero\"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.mjs) -\n * all rules disabled. Useful to quickly setup your config via `.enable()`.\n * For example, when you need only `bold` and `italic` markup and nothing else.\n *\n * ##### options:\n *\n * - __html__ - `false`. Set `true` to enable HTML tags in source. Be careful!\n * That's not safe! You may need external sanitizer to protect output from XSS.\n * It's better to extend features via plugins, instead of enabling HTML.\n * - __xhtmlOut__ - `false`. Set `true` to add '/' when closing single tags\n * (`<br />`). This is needed only for full CommonMark compatibility. In real\n * world you will need HTML output.\n * - __breaks__ - `false`. Set `true` to convert `\\n` in paragraphs into `<br>`.\n * - __langPrefix__ - `language-`. CSS language class prefix for fenced blocks.\n * Can be useful for external highlighters.\n * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.\n * - __typographer__ - `false`. Set `true` to enable [some language-neutral\n * replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.mjs) +\n * quotes beautification (smartquotes).\n * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement\n * pairs, when typographer enabled and smartquotes on. For example, you can\n * use `'«»„“'` for Russian, `'„“‚‘'` for German, and\n * `['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›']` for French (including nbsp).\n * - __highlight__ - `null`. Highlighter function for fenced code blocks.\n * Highlighter `function (str, lang)` should return escaped HTML. It can also\n * return empty string if the source was not changed and should be escaped\n * externaly. If result starts with <pre... internal wrapper is skipped.\n *\n * ##### Example\n *\n * ```javascript\n * // commonmark mode\n * var md = require('markdown-it')('commonmark');\n *\n * // default mode\n * var md = require('markdown-it')();\n *\n * // enable everything\n * var md = require('markdown-it')({\n * html: true,\n * linkify: true,\n * typographer: true\n * });\n * ```\n *\n * ##### Syntax highlighting\n *\n * ```js\n * var hljs = require('highlight.js') // https://highlightjs.org/\n *\n * var md = require('markdown-it')({\n * highlight: function (str, lang) {\n * if (lang && hljs.getLanguage(lang)) {\n * try {\n * return hljs.highlight(str, { language: lang, ignoreIllegals: true }).value;\n * } catch (__) {}\n * }\n *\n * return ''; // use external default escaping\n * }\n * });\n * ```\n *\n * Or with full wrapper override (if you need assign class to `<pre>` or `<code>`):\n *\n * ```javascript\n * var hljs = require('highlight.js') // https://highlightjs.org/\n *\n * // Actual default values\n * var md = require('markdown-it')({\n * highlight: function (str, lang) {\n * if (lang && hljs.getLanguage(lang)) {\n * try {\n * return '<pre><code class=\"hljs\">' +\n * hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +\n * '</code></pre>';\n * } catch (__) {}\n * }\n *\n * return '<pre><code class=\"hljs\">' + md.utils.escapeHtml(str) + '</code></pre>';\n * }\n * });\n * ```\n *\n **/\nfunction MarkdownIt (presetName, options) {\n if (!(this instanceof MarkdownIt)) {\n return new MarkdownIt(presetName, options)\n }\n\n if (!options) {\n if (!utils.isString(presetName)) {\n options = presetName || {}\n presetName = 'default'\n }\n }\n\n /**\n * MarkdownIt#inline -> ParserInline\n *\n * Instance of [[ParserInline]]. You may need it to add new rules when\n * writing plugins. For simple rules control use [[MarkdownIt.disable]] and\n * [[MarkdownIt.enable]].\n **/\n this.inline = new ParserInline()\n\n /**\n * MarkdownIt#block -> ParserBlock\n *\n * Instance of [[ParserBlock]]. You may need it to add new rules when\n * writing plugins. For simple rules control use [[MarkdownIt.disable]] and\n * [[MarkdownIt.enable]].\n **/\n this.block = new ParserBlock()\n\n /**\n * MarkdownIt#core -> Core\n *\n * Instance of [[Core]] chain executor. You may need it to add new rules when\n * writing plugins. For simple rules control use [[MarkdownIt.disable]] and\n * [[MarkdownIt.enable]].\n **/\n this.core = new ParserCore()\n\n /**\n * MarkdownIt#renderer -> Renderer\n *\n * Instance of [[Renderer]]. Use it to modify output look. Or to add rendering\n * rules for new token types, generated by plugins.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * function myToken(tokens, idx, options, env, self) {\n * //...\n * return result;\n * };\n *\n * md.renderer.rules['my_token'] = myToken\n * ```\n *\n * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs).\n **/\n this.renderer = new Renderer()\n\n /**\n * MarkdownIt#linkify -> LinkifyIt\n *\n * [linkify-it](https://github.com/markdown-it/linkify-it) instance.\n * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.mjs)\n * rule.\n **/\n this.linkify = new LinkifyIt()\n\n /**\n * MarkdownIt#validateLink(url) -> Boolean\n *\n * Link validation function. CommonMark allows too much in links. By default\n * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas\n * except some embedded image types.\n *\n * You can change this behaviour:\n *\n * ```javascript\n * var md = require('markdown-it')();\n * // enable everything\n * md.validateLink = function () { return true; }\n * ```\n **/\n this.validateLink = validateLink\n\n /**\n * MarkdownIt#normalizeLink(url) -> String\n *\n * Function used to encode link url to a machine-readable format,\n * which includes url-encoding, punycode, etc.\n **/\n this.normalizeLink = normalizeLink\n\n /**\n * MarkdownIt#normalizeLinkText(url) -> String\n *\n * Function used to decode link url to a human-readable format`\n **/\n this.normalizeLinkText = normalizeLinkText\n\n // Expose utils & helpers for easy acces from plugins\n\n /**\n * MarkdownIt#utils -> utils\n *\n * Assorted utility functions, useful to write plugins. See details\n * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/common/utils.mjs).\n **/\n this.utils = utils\n\n /**\n * MarkdownIt#helpers -> helpers\n *\n * Link components parser functions, useful to write plugins. See details\n * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).\n **/\n this.helpers = utils.assign({}, helpers)\n\n this.options = {}\n this.configure(presetName)\n\n if (options) { this.set(options) }\n}\n\n/** chainable\n * MarkdownIt.set(options)\n *\n * Set parser options (in the same format as in constructor). Probably, you\n * will never need it, but you can change options after constructor call.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')()\n * .set({ html: true, breaks: true })\n * .set({ typographer, true });\n * ```\n *\n * __Note:__ To achieve the best possible performance, don't modify a\n * `markdown-it` instance options on the fly. If you need multiple configurations\n * it's best to create multiple instances and initialize each with separate\n * config.\n **/\nMarkdownIt.prototype.set = function (options) {\n utils.assign(this.options, options)\n return this\n}\n\n/** chainable, internal\n * MarkdownIt.configure(presets)\n *\n * Batch load of all options and compenent settings. This is internal method,\n * and you probably will not need it. But if you will - see available presets\n * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets)\n *\n * We strongly recommend to use presets instead of direct config loads. That\n * will give better compatibility with next versions.\n **/\nMarkdownIt.prototype.configure = function (presets) {\n const self = this\n\n if (utils.isString(presets)) {\n const presetName = presets\n presets = config[presetName]\n if (!presets) { throw new Error('Wrong `markdown-it` preset \"' + presetName + '\", check name') }\n }\n\n if (!presets) { throw new Error('Wrong `markdown-it` preset, can\\'t be empty') }\n\n if (presets.options) { self.set(presets.options) }\n\n if (presets.components) {\n Object.keys(presets.components).forEach(function (name) {\n if (presets.components[name].rules) {\n self[name].ruler.enableOnly(presets.components[name].rules)\n }\n if (presets.components[name].rules2) {\n self[name].ruler2.enableOnly(presets.components[name].rules2)\n }\n })\n }\n return this\n}\n\n/** chainable\n * MarkdownIt.enable(list, ignoreInvalid)\n * - list (String|Array): rule name or list of rule names to enable\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable list or rules. It will automatically find appropriate components,\n * containing rules with given names. If rule not found, and `ignoreInvalid`\n * not set - throws exception.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')()\n * .enable(['sub', 'sup'])\n * .disable('smartquotes');\n * ```\n **/\nMarkdownIt.prototype.enable = function (list, ignoreInvalid) {\n let result = []\n\n if (!Array.isArray(list)) { list = [list] }\n\n ['core', 'block', 'inline'].forEach(function (chain) {\n result = result.concat(this[chain].ruler.enable(list, true))\n }, this)\n\n result = result.concat(this.inline.ruler2.enable(list, true))\n\n const missed = list.filter(function (name) { return result.indexOf(name) < 0 })\n\n if (missed.length && !ignoreInvalid) {\n throw new Error('MarkdownIt. Failed to enable unknown rule(s): ' + missed)\n }\n\n return this\n}\n\n/** chainable\n * MarkdownIt.disable(list, ignoreInvalid)\n * - list (String|Array): rule name or list of rule names to disable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * The same as [[MarkdownIt.enable]], but turn specified rules off.\n **/\nMarkdownIt.prototype.disable = function (list, ignoreInvalid) {\n let result = []\n\n if (!Array.isArray(list)) { list = [list] }\n\n ['core', 'block', 'inline'].forEach(function (chain) {\n result = result.concat(this[chain].ruler.disable(list, true))\n }, this)\n\n result = result.concat(this.inline.ruler2.disable(list, true))\n\n const missed = list.filter(function (name) { return result.indexOf(name) < 0 })\n\n if (missed.length && !ignoreInvalid) {\n throw new Error('MarkdownIt. Failed to disable unknown rule(s): ' + missed)\n }\n return this\n}\n\n/** chainable\n * MarkdownIt.use(plugin, params)\n *\n * Load specified plugin with given params into current parser instance.\n * It's just a sugar to call `plugin(md, params)` with curring.\n *\n * ##### Example\n *\n * ```javascript\n * var iterator = require('markdown-it-for-inline');\n * var md = require('markdown-it')()\n * .use(iterator, 'foo_replace', 'text', function (tokens, idx) {\n * tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar');\n * });\n * ```\n **/\nMarkdownIt.prototype.use = function (plugin /*, params, ... */) {\n const args = [this].concat(Array.prototype.slice.call(arguments, 1))\n plugin.apply(plugin, args)\n return this\n}\n\n/** internal\n * MarkdownIt.parse(src, env) -> Array\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * Parse input string and return list of block tokens (special token type\n * \"inline\" will contain list of inline tokens). You should not call this\n * method directly, until you write custom renderer (for example, to produce\n * AST).\n *\n * `env` is used to pass data between \"distributed\" rules and return additional\n * metadata like reference info, needed for the renderer. It also can be used to\n * inject data in specific cases. Usually, you will be ok to pass `{}`,\n * and then pass updated object to renderer.\n **/\nMarkdownIt.prototype.parse = function (src, env) {\n if (typeof src !== 'string') {\n throw new Error('Input data should be a String')\n }\n\n const state = new this.core.State(src, this, env)\n\n this.core.process(state)\n\n return state.tokens\n}\n\n/**\n * MarkdownIt.render(src [, env]) -> String\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * Render markdown string into html. It does all magic for you :).\n *\n * `env` can be used to inject additional metadata (`{}` by default).\n * But you will not need it with high probability. See also comment\n * in [[MarkdownIt.parse]].\n **/\nMarkdownIt.prototype.render = function (src, env) {\n env = env || {}\n\n return this.renderer.render(this.parse(src, env), this.options, env)\n}\n\n/** internal\n * MarkdownIt.parseInline(src, env) -> Array\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * The same as [[MarkdownIt.parse]] but skip all block rules. It returns the\n * block tokens list with the single `inline` element, containing parsed inline\n * tokens in `children` property. Also updates `env` object.\n **/\nMarkdownIt.prototype.parseInline = function (src, env) {\n const state = new this.core.State(src, this, env)\n\n state.inlineMode = true\n this.core.process(state)\n\n return state.tokens\n}\n\n/**\n * MarkdownIt.renderInline(src [, env]) -> String\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * Similar to [[MarkdownIt.render]] but for single paragraph content. Result\n * will NOT be wrapped into `<p>` tags.\n **/\nMarkdownIt.prototype.renderInline = function (src, env) {\n env = env || {}\n\n return this.renderer.render(this.parseInline(src, env), this.options, env)\n}\n\nexport default MarkdownIt\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
const require_ruler = require('./ruler.cjs');
|
|
2
|
+
const require_state_block = require('./rules_block/state_block.cjs');
|
|
3
|
+
const require_table = require('./rules_block/table.cjs');
|
|
4
|
+
const require_code = require('./rules_block/code.cjs');
|
|
5
|
+
const require_fence = require('./rules_block/fence.cjs');
|
|
6
|
+
const require_blockquote = require('./rules_block/blockquote.cjs');
|
|
7
|
+
const require_hr = require('./rules_block/hr.cjs');
|
|
8
|
+
const require_list = require('./rules_block/list.cjs');
|
|
9
|
+
const require_reference = require('./rules_block/reference.cjs');
|
|
10
|
+
const require_html_block = require('./rules_block/html_block.cjs');
|
|
11
|
+
const require_heading = require('./rules_block/heading.cjs');
|
|
12
|
+
const require_lheading = require('./rules_block/lheading.cjs');
|
|
13
|
+
const require_paragraph = require('./rules_block/paragraph.cjs');
|
|
14
|
+
|
|
15
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs
|
|
16
|
+
/** internal
|
|
17
|
+
* class ParserBlock
|
|
18
|
+
*
|
|
19
|
+
* Block-level tokenizer.
|
|
20
|
+
**/
|
|
21
|
+
const _rules = [
|
|
22
|
+
[
|
|
23
|
+
"table",
|
|
24
|
+
require_table.default,
|
|
25
|
+
["paragraph", "reference"]
|
|
26
|
+
],
|
|
27
|
+
["code", require_code.default],
|
|
28
|
+
[
|
|
29
|
+
"fence",
|
|
30
|
+
require_fence.default,
|
|
31
|
+
[
|
|
32
|
+
"paragraph",
|
|
33
|
+
"reference",
|
|
34
|
+
"blockquote",
|
|
35
|
+
"list"
|
|
36
|
+
]
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"blockquote",
|
|
40
|
+
require_blockquote.default,
|
|
41
|
+
[
|
|
42
|
+
"paragraph",
|
|
43
|
+
"reference",
|
|
44
|
+
"blockquote",
|
|
45
|
+
"list"
|
|
46
|
+
]
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"hr",
|
|
50
|
+
require_hr.default,
|
|
51
|
+
[
|
|
52
|
+
"paragraph",
|
|
53
|
+
"reference",
|
|
54
|
+
"blockquote",
|
|
55
|
+
"list"
|
|
56
|
+
]
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"list",
|
|
60
|
+
require_list.default,
|
|
61
|
+
[
|
|
62
|
+
"paragraph",
|
|
63
|
+
"reference",
|
|
64
|
+
"blockquote"
|
|
65
|
+
]
|
|
66
|
+
],
|
|
67
|
+
["reference", require_reference.default],
|
|
68
|
+
[
|
|
69
|
+
"html_block",
|
|
70
|
+
require_html_block.default,
|
|
71
|
+
[
|
|
72
|
+
"paragraph",
|
|
73
|
+
"reference",
|
|
74
|
+
"blockquote"
|
|
75
|
+
]
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
"heading",
|
|
79
|
+
require_heading.default,
|
|
80
|
+
[
|
|
81
|
+
"paragraph",
|
|
82
|
+
"reference",
|
|
83
|
+
"blockquote"
|
|
84
|
+
]
|
|
85
|
+
],
|
|
86
|
+
["lheading", require_lheading.default],
|
|
87
|
+
["paragraph", require_paragraph.default]
|
|
88
|
+
];
|
|
89
|
+
/**
|
|
90
|
+
* new ParserBlock()
|
|
91
|
+
**/
|
|
92
|
+
function ParserBlock() {
|
|
93
|
+
/**
|
|
94
|
+
* ParserBlock#ruler -> Ruler
|
|
95
|
+
*
|
|
96
|
+
* [[Ruler]] instance. Keep configuration of block rules.
|
|
97
|
+
**/
|
|
98
|
+
this.ruler = new require_ruler.default();
|
|
99
|
+
for (let i = 0; i < _rules.length; i++) this.ruler.push(_rules[i][0], _rules[i][1], { alt: (_rules[i][2] || []).slice() });
|
|
100
|
+
}
|
|
101
|
+
ParserBlock.prototype.tokenize = function(state, startLine, endLine) {
|
|
102
|
+
const rules = this.ruler.getRules("");
|
|
103
|
+
const len = rules.length;
|
|
104
|
+
const maxNesting = state.md.options.maxNesting;
|
|
105
|
+
let line = startLine;
|
|
106
|
+
let hasEmptyLines = false;
|
|
107
|
+
while (line < endLine) {
|
|
108
|
+
state.line = line = state.skipEmptyLines(line);
|
|
109
|
+
if (line >= endLine) break;
|
|
110
|
+
if (state.sCount[line] < state.blkIndent) break;
|
|
111
|
+
if (state.level >= maxNesting) {
|
|
112
|
+
state.line = endLine;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
const prevLine = state.line;
|
|
116
|
+
let ok = false;
|
|
117
|
+
for (let i = 0; i < len; i++) {
|
|
118
|
+
ok = rules[i](state, line, endLine, false);
|
|
119
|
+
if (ok) {
|
|
120
|
+
if (prevLine >= state.line) throw new Error("block rule didn't increment state.line");
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (!ok) throw new Error("none of the block rules matched");
|
|
125
|
+
state.tight = !hasEmptyLines;
|
|
126
|
+
if (state.isEmpty(state.line - 1)) hasEmptyLines = true;
|
|
127
|
+
line = state.line;
|
|
128
|
+
if (line < endLine && state.isEmpty(line)) {
|
|
129
|
+
hasEmptyLines = true;
|
|
130
|
+
line++;
|
|
131
|
+
state.line = line;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* ParserBlock.parse(str, md, env, outTokens)
|
|
137
|
+
*
|
|
138
|
+
* Process input string and push block tokens into `outTokens`
|
|
139
|
+
**/
|
|
140
|
+
ParserBlock.prototype.parse = function(src, md, env, outTokens) {
|
|
141
|
+
if (!src) return;
|
|
142
|
+
const state = new this.State(src, md, env, outTokens);
|
|
143
|
+
this.tokenize(state, state.line, state.lineMax);
|
|
144
|
+
};
|
|
145
|
+
ParserBlock.prototype.State = require_state_block.default;
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
exports.default = ParserBlock;
|