@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,274 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs
|
|
3
|
+
/**
|
|
4
|
+
* class Ruler
|
|
5
|
+
*
|
|
6
|
+
* Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
|
|
7
|
+
* [[MarkdownIt#inline]] to manage sequences of functions (rules):
|
|
8
|
+
*
|
|
9
|
+
* - keep rules in defined order
|
|
10
|
+
* - assign the name to each rule
|
|
11
|
+
* - enable/disable rules
|
|
12
|
+
* - add/replace rules
|
|
13
|
+
* - allow assign rules to additional named chains (in the same)
|
|
14
|
+
* - cacheing lists of active rules
|
|
15
|
+
*
|
|
16
|
+
* You will not need use this class directly until write plugins. For simple
|
|
17
|
+
* rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
|
|
18
|
+
* [[MarkdownIt.use]].
|
|
19
|
+
**/
|
|
20
|
+
/**
|
|
21
|
+
* new Ruler()
|
|
22
|
+
**/
|
|
23
|
+
function Ruler() {
|
|
24
|
+
this.__rules__ = [];
|
|
25
|
+
this.__cache__ = null;
|
|
26
|
+
}
|
|
27
|
+
Ruler.prototype.__find__ = function(name) {
|
|
28
|
+
for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
|
|
29
|
+
return -1;
|
|
30
|
+
};
|
|
31
|
+
Ruler.prototype.__compile__ = function() {
|
|
32
|
+
const self = this;
|
|
33
|
+
const chains = [""];
|
|
34
|
+
self.__rules__.forEach(function(rule) {
|
|
35
|
+
if (!rule.enabled) return;
|
|
36
|
+
rule.alt.forEach(function(altName) {
|
|
37
|
+
if (chains.indexOf(altName) < 0) chains.push(altName);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
self.__cache__ = {};
|
|
41
|
+
chains.forEach(function(chain) {
|
|
42
|
+
self.__cache__[chain] = [];
|
|
43
|
+
self.__rules__.forEach(function(rule) {
|
|
44
|
+
if (!rule.enabled) return;
|
|
45
|
+
if (chain && rule.alt.indexOf(chain) < 0) return;
|
|
46
|
+
self.__cache__[chain].push(rule.fn);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Ruler.at(name, fn [, options])
|
|
52
|
+
* - name (String): rule name to replace.
|
|
53
|
+
* - fn (Function): new rule function.
|
|
54
|
+
* - options (Object): new rule options (not mandatory).
|
|
55
|
+
*
|
|
56
|
+
* Replace rule by name with new function & options. Throws error if name not
|
|
57
|
+
* found.
|
|
58
|
+
*
|
|
59
|
+
* ##### Options:
|
|
60
|
+
*
|
|
61
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
62
|
+
*
|
|
63
|
+
* ##### Example
|
|
64
|
+
*
|
|
65
|
+
* Replace existing typographer replacement rule with new one:
|
|
66
|
+
*
|
|
67
|
+
* ```javascript
|
|
68
|
+
* var md = require('markdown-it')();
|
|
69
|
+
*
|
|
70
|
+
* md.core.ruler.at('replacements', function replace(state) {
|
|
71
|
+
* //...
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
**/
|
|
75
|
+
Ruler.prototype.at = function(name, fn, options) {
|
|
76
|
+
const index = this.__find__(name);
|
|
77
|
+
const opt = options || {};
|
|
78
|
+
if (index === -1) throw new Error("Parser rule not found: " + name);
|
|
79
|
+
this.__rules__[index].fn = fn;
|
|
80
|
+
this.__rules__[index].alt = opt.alt || [];
|
|
81
|
+
this.__cache__ = null;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Ruler.before(beforeName, ruleName, fn [, options])
|
|
85
|
+
* - beforeName (String): new rule will be added before this one.
|
|
86
|
+
* - ruleName (String): name of added rule.
|
|
87
|
+
* - fn (Function): rule function.
|
|
88
|
+
* - options (Object): rule options (not mandatory).
|
|
89
|
+
*
|
|
90
|
+
* Add new rule to chain before one with given name. See also
|
|
91
|
+
* [[Ruler.after]], [[Ruler.push]].
|
|
92
|
+
*
|
|
93
|
+
* ##### Options:
|
|
94
|
+
*
|
|
95
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
96
|
+
*
|
|
97
|
+
* ##### Example
|
|
98
|
+
*
|
|
99
|
+
* ```javascript
|
|
100
|
+
* var md = require('markdown-it')();
|
|
101
|
+
*
|
|
102
|
+
* md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
|
|
103
|
+
* //...
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
**/
|
|
107
|
+
Ruler.prototype.before = function(beforeName, ruleName, fn, options) {
|
|
108
|
+
const index = this.__find__(beforeName);
|
|
109
|
+
const opt = options || {};
|
|
110
|
+
if (index === -1) throw new Error("Parser rule not found: " + beforeName);
|
|
111
|
+
this.__rules__.splice(index, 0, {
|
|
112
|
+
name: ruleName,
|
|
113
|
+
enabled: true,
|
|
114
|
+
fn,
|
|
115
|
+
alt: opt.alt || []
|
|
116
|
+
});
|
|
117
|
+
this.__cache__ = null;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Ruler.after(afterName, ruleName, fn [, options])
|
|
121
|
+
* - afterName (String): new rule will be added after this one.
|
|
122
|
+
* - ruleName (String): name of added rule.
|
|
123
|
+
* - fn (Function): rule function.
|
|
124
|
+
* - options (Object): rule options (not mandatory).
|
|
125
|
+
*
|
|
126
|
+
* Add new rule to chain after one with given name. See also
|
|
127
|
+
* [[Ruler.before]], [[Ruler.push]].
|
|
128
|
+
*
|
|
129
|
+
* ##### Options:
|
|
130
|
+
*
|
|
131
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
132
|
+
*
|
|
133
|
+
* ##### Example
|
|
134
|
+
*
|
|
135
|
+
* ```javascript
|
|
136
|
+
* var md = require('markdown-it')();
|
|
137
|
+
*
|
|
138
|
+
* md.inline.ruler.after('text', 'my_rule', function replace(state) {
|
|
139
|
+
* //...
|
|
140
|
+
* });
|
|
141
|
+
* ```
|
|
142
|
+
**/
|
|
143
|
+
Ruler.prototype.after = function(afterName, ruleName, fn, options) {
|
|
144
|
+
const index = this.__find__(afterName);
|
|
145
|
+
const opt = options || {};
|
|
146
|
+
if (index === -1) throw new Error("Parser rule not found: " + afterName);
|
|
147
|
+
this.__rules__.splice(index + 1, 0, {
|
|
148
|
+
name: ruleName,
|
|
149
|
+
enabled: true,
|
|
150
|
+
fn,
|
|
151
|
+
alt: opt.alt || []
|
|
152
|
+
});
|
|
153
|
+
this.__cache__ = null;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Ruler.push(ruleName, fn [, options])
|
|
157
|
+
* - ruleName (String): name of added rule.
|
|
158
|
+
* - fn (Function): rule function.
|
|
159
|
+
* - options (Object): rule options (not mandatory).
|
|
160
|
+
*
|
|
161
|
+
* Push new rule to the end of chain. See also
|
|
162
|
+
* [[Ruler.before]], [[Ruler.after]].
|
|
163
|
+
*
|
|
164
|
+
* ##### Options:
|
|
165
|
+
*
|
|
166
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
167
|
+
*
|
|
168
|
+
* ##### Example
|
|
169
|
+
*
|
|
170
|
+
* ```javascript
|
|
171
|
+
* var md = require('markdown-it')();
|
|
172
|
+
*
|
|
173
|
+
* md.core.ruler.push('my_rule', function replace(state) {
|
|
174
|
+
* //...
|
|
175
|
+
* });
|
|
176
|
+
* ```
|
|
177
|
+
**/
|
|
178
|
+
Ruler.prototype.push = function(ruleName, fn, options) {
|
|
179
|
+
const opt = options || {};
|
|
180
|
+
this.__rules__.push({
|
|
181
|
+
name: ruleName,
|
|
182
|
+
enabled: true,
|
|
183
|
+
fn,
|
|
184
|
+
alt: opt.alt || []
|
|
185
|
+
});
|
|
186
|
+
this.__cache__ = null;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Ruler.enable(list [, ignoreInvalid]) -> Array
|
|
190
|
+
* - list (String|Array): list of rule names to enable.
|
|
191
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
192
|
+
*
|
|
193
|
+
* Enable rules with given names. If any rule name not found - throw Error.
|
|
194
|
+
* Errors can be disabled by second param.
|
|
195
|
+
*
|
|
196
|
+
* Returns list of found rule names (if no exception happened).
|
|
197
|
+
*
|
|
198
|
+
* See also [[Ruler.disable]], [[Ruler.enableOnly]].
|
|
199
|
+
**/
|
|
200
|
+
Ruler.prototype.enable = function(list, ignoreInvalid) {
|
|
201
|
+
if (!Array.isArray(list)) list = [list];
|
|
202
|
+
const result = [];
|
|
203
|
+
list.forEach(function(name) {
|
|
204
|
+
const idx = this.__find__(name);
|
|
205
|
+
if (idx < 0) {
|
|
206
|
+
if (ignoreInvalid) return;
|
|
207
|
+
throw new Error("Rules manager: invalid rule name " + name);
|
|
208
|
+
}
|
|
209
|
+
this.__rules__[idx].enabled = true;
|
|
210
|
+
result.push(name);
|
|
211
|
+
}, this);
|
|
212
|
+
this.__cache__ = null;
|
|
213
|
+
return result;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Ruler.enableOnly(list [, ignoreInvalid])
|
|
217
|
+
* - list (String|Array): list of rule names to enable (whitelist).
|
|
218
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
219
|
+
*
|
|
220
|
+
* Enable rules with given names, and disable everything else. If any rule name
|
|
221
|
+
* not found - throw Error. Errors can be disabled by second param.
|
|
222
|
+
*
|
|
223
|
+
* See also [[Ruler.disable]], [[Ruler.enable]].
|
|
224
|
+
**/
|
|
225
|
+
Ruler.prototype.enableOnly = function(list, ignoreInvalid) {
|
|
226
|
+
if (!Array.isArray(list)) list = [list];
|
|
227
|
+
this.__rules__.forEach(function(rule) {
|
|
228
|
+
rule.enabled = false;
|
|
229
|
+
});
|
|
230
|
+
this.enable(list, ignoreInvalid);
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Ruler.disable(list [, ignoreInvalid]) -> Array
|
|
234
|
+
* - list (String|Array): list of rule names to disable.
|
|
235
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
236
|
+
*
|
|
237
|
+
* Disable rules with given names. If any rule name not found - throw Error.
|
|
238
|
+
* Errors can be disabled by second param.
|
|
239
|
+
*
|
|
240
|
+
* Returns list of found rule names (if no exception happened).
|
|
241
|
+
*
|
|
242
|
+
* See also [[Ruler.enable]], [[Ruler.enableOnly]].
|
|
243
|
+
**/
|
|
244
|
+
Ruler.prototype.disable = function(list, ignoreInvalid) {
|
|
245
|
+
if (!Array.isArray(list)) list = [list];
|
|
246
|
+
const result = [];
|
|
247
|
+
list.forEach(function(name) {
|
|
248
|
+
const idx = this.__find__(name);
|
|
249
|
+
if (idx < 0) {
|
|
250
|
+
if (ignoreInvalid) return;
|
|
251
|
+
throw new Error("Rules manager: invalid rule name " + name);
|
|
252
|
+
}
|
|
253
|
+
this.__rules__[idx].enabled = false;
|
|
254
|
+
result.push(name);
|
|
255
|
+
}, this);
|
|
256
|
+
this.__cache__ = null;
|
|
257
|
+
return result;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Ruler.getRules(chainName) -> Array
|
|
261
|
+
*
|
|
262
|
+
* Return array of active functions (rules) for given chain name. It analyzes
|
|
263
|
+
* rules configuration, compiles caches if not exists and returns result.
|
|
264
|
+
*
|
|
265
|
+
* Default chain name is `''` (empty string). It can't be skipped. That's
|
|
266
|
+
* done intentionally, to keep signature monomorphic for high speed.
|
|
267
|
+
**/
|
|
268
|
+
Ruler.prototype.getRules = function(chainName) {
|
|
269
|
+
if (this.__cache__ === null) this.__compile__();
|
|
270
|
+
return this.__cache__[chainName] || [];
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
//#endregion
|
|
274
|
+
exports.default = Ruler;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs
|
|
2
|
+
/**
|
|
3
|
+
* class Ruler
|
|
4
|
+
*
|
|
5
|
+
* Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
|
|
6
|
+
* [[MarkdownIt#inline]] to manage sequences of functions (rules):
|
|
7
|
+
*
|
|
8
|
+
* - keep rules in defined order
|
|
9
|
+
* - assign the name to each rule
|
|
10
|
+
* - enable/disable rules
|
|
11
|
+
* - add/replace rules
|
|
12
|
+
* - allow assign rules to additional named chains (in the same)
|
|
13
|
+
* - cacheing lists of active rules
|
|
14
|
+
*
|
|
15
|
+
* You will not need use this class directly until write plugins. For simple
|
|
16
|
+
* rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
|
|
17
|
+
* [[MarkdownIt.use]].
|
|
18
|
+
**/
|
|
19
|
+
/**
|
|
20
|
+
* new Ruler()
|
|
21
|
+
**/
|
|
22
|
+
function Ruler() {
|
|
23
|
+
this.__rules__ = [];
|
|
24
|
+
this.__cache__ = null;
|
|
25
|
+
}
|
|
26
|
+
Ruler.prototype.__find__ = function(name) {
|
|
27
|
+
for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
|
|
28
|
+
return -1;
|
|
29
|
+
};
|
|
30
|
+
Ruler.prototype.__compile__ = function() {
|
|
31
|
+
const self = this;
|
|
32
|
+
const chains = [""];
|
|
33
|
+
self.__rules__.forEach(function(rule) {
|
|
34
|
+
if (!rule.enabled) return;
|
|
35
|
+
rule.alt.forEach(function(altName) {
|
|
36
|
+
if (chains.indexOf(altName) < 0) chains.push(altName);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
self.__cache__ = {};
|
|
40
|
+
chains.forEach(function(chain) {
|
|
41
|
+
self.__cache__[chain] = [];
|
|
42
|
+
self.__rules__.forEach(function(rule) {
|
|
43
|
+
if (!rule.enabled) return;
|
|
44
|
+
if (chain && rule.alt.indexOf(chain) < 0) return;
|
|
45
|
+
self.__cache__[chain].push(rule.fn);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Ruler.at(name, fn [, options])
|
|
51
|
+
* - name (String): rule name to replace.
|
|
52
|
+
* - fn (Function): new rule function.
|
|
53
|
+
* - options (Object): new rule options (not mandatory).
|
|
54
|
+
*
|
|
55
|
+
* Replace rule by name with new function & options. Throws error if name not
|
|
56
|
+
* found.
|
|
57
|
+
*
|
|
58
|
+
* ##### Options:
|
|
59
|
+
*
|
|
60
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
61
|
+
*
|
|
62
|
+
* ##### Example
|
|
63
|
+
*
|
|
64
|
+
* Replace existing typographer replacement rule with new one:
|
|
65
|
+
*
|
|
66
|
+
* ```javascript
|
|
67
|
+
* var md = require('markdown-it')();
|
|
68
|
+
*
|
|
69
|
+
* md.core.ruler.at('replacements', function replace(state) {
|
|
70
|
+
* //...
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
**/
|
|
74
|
+
Ruler.prototype.at = function(name, fn, options) {
|
|
75
|
+
const index = this.__find__(name);
|
|
76
|
+
const opt = options || {};
|
|
77
|
+
if (index === -1) throw new Error("Parser rule not found: " + name);
|
|
78
|
+
this.__rules__[index].fn = fn;
|
|
79
|
+
this.__rules__[index].alt = opt.alt || [];
|
|
80
|
+
this.__cache__ = null;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Ruler.before(beforeName, ruleName, fn [, options])
|
|
84
|
+
* - beforeName (String): new rule will be added before this one.
|
|
85
|
+
* - ruleName (String): name of added rule.
|
|
86
|
+
* - fn (Function): rule function.
|
|
87
|
+
* - options (Object): rule options (not mandatory).
|
|
88
|
+
*
|
|
89
|
+
* Add new rule to chain before one with given name. See also
|
|
90
|
+
* [[Ruler.after]], [[Ruler.push]].
|
|
91
|
+
*
|
|
92
|
+
* ##### Options:
|
|
93
|
+
*
|
|
94
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
95
|
+
*
|
|
96
|
+
* ##### Example
|
|
97
|
+
*
|
|
98
|
+
* ```javascript
|
|
99
|
+
* var md = require('markdown-it')();
|
|
100
|
+
*
|
|
101
|
+
* md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
|
|
102
|
+
* //...
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
**/
|
|
106
|
+
Ruler.prototype.before = function(beforeName, ruleName, fn, options) {
|
|
107
|
+
const index = this.__find__(beforeName);
|
|
108
|
+
const opt = options || {};
|
|
109
|
+
if (index === -1) throw new Error("Parser rule not found: " + beforeName);
|
|
110
|
+
this.__rules__.splice(index, 0, {
|
|
111
|
+
name: ruleName,
|
|
112
|
+
enabled: true,
|
|
113
|
+
fn,
|
|
114
|
+
alt: opt.alt || []
|
|
115
|
+
});
|
|
116
|
+
this.__cache__ = null;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Ruler.after(afterName, ruleName, fn [, options])
|
|
120
|
+
* - afterName (String): new rule will be added after this one.
|
|
121
|
+
* - ruleName (String): name of added rule.
|
|
122
|
+
* - fn (Function): rule function.
|
|
123
|
+
* - options (Object): rule options (not mandatory).
|
|
124
|
+
*
|
|
125
|
+
* Add new rule to chain after one with given name. See also
|
|
126
|
+
* [[Ruler.before]], [[Ruler.push]].
|
|
127
|
+
*
|
|
128
|
+
* ##### Options:
|
|
129
|
+
*
|
|
130
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
131
|
+
*
|
|
132
|
+
* ##### Example
|
|
133
|
+
*
|
|
134
|
+
* ```javascript
|
|
135
|
+
* var md = require('markdown-it')();
|
|
136
|
+
*
|
|
137
|
+
* md.inline.ruler.after('text', 'my_rule', function replace(state) {
|
|
138
|
+
* //...
|
|
139
|
+
* });
|
|
140
|
+
* ```
|
|
141
|
+
**/
|
|
142
|
+
Ruler.prototype.after = function(afterName, ruleName, fn, options) {
|
|
143
|
+
const index = this.__find__(afterName);
|
|
144
|
+
const opt = options || {};
|
|
145
|
+
if (index === -1) throw new Error("Parser rule not found: " + afterName);
|
|
146
|
+
this.__rules__.splice(index + 1, 0, {
|
|
147
|
+
name: ruleName,
|
|
148
|
+
enabled: true,
|
|
149
|
+
fn,
|
|
150
|
+
alt: opt.alt || []
|
|
151
|
+
});
|
|
152
|
+
this.__cache__ = null;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Ruler.push(ruleName, fn [, options])
|
|
156
|
+
* - ruleName (String): name of added rule.
|
|
157
|
+
* - fn (Function): rule function.
|
|
158
|
+
* - options (Object): rule options (not mandatory).
|
|
159
|
+
*
|
|
160
|
+
* Push new rule to the end of chain. See also
|
|
161
|
+
* [[Ruler.before]], [[Ruler.after]].
|
|
162
|
+
*
|
|
163
|
+
* ##### Options:
|
|
164
|
+
*
|
|
165
|
+
* - __alt__ - array with names of "alternate" chains.
|
|
166
|
+
*
|
|
167
|
+
* ##### Example
|
|
168
|
+
*
|
|
169
|
+
* ```javascript
|
|
170
|
+
* var md = require('markdown-it')();
|
|
171
|
+
*
|
|
172
|
+
* md.core.ruler.push('my_rule', function replace(state) {
|
|
173
|
+
* //...
|
|
174
|
+
* });
|
|
175
|
+
* ```
|
|
176
|
+
**/
|
|
177
|
+
Ruler.prototype.push = function(ruleName, fn, options) {
|
|
178
|
+
const opt = options || {};
|
|
179
|
+
this.__rules__.push({
|
|
180
|
+
name: ruleName,
|
|
181
|
+
enabled: true,
|
|
182
|
+
fn,
|
|
183
|
+
alt: opt.alt || []
|
|
184
|
+
});
|
|
185
|
+
this.__cache__ = null;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Ruler.enable(list [, ignoreInvalid]) -> Array
|
|
189
|
+
* - list (String|Array): list of rule names to enable.
|
|
190
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
191
|
+
*
|
|
192
|
+
* Enable rules with given names. If any rule name not found - throw Error.
|
|
193
|
+
* Errors can be disabled by second param.
|
|
194
|
+
*
|
|
195
|
+
* Returns list of found rule names (if no exception happened).
|
|
196
|
+
*
|
|
197
|
+
* See also [[Ruler.disable]], [[Ruler.enableOnly]].
|
|
198
|
+
**/
|
|
199
|
+
Ruler.prototype.enable = function(list, ignoreInvalid) {
|
|
200
|
+
if (!Array.isArray(list)) list = [list];
|
|
201
|
+
const result = [];
|
|
202
|
+
list.forEach(function(name) {
|
|
203
|
+
const idx = this.__find__(name);
|
|
204
|
+
if (idx < 0) {
|
|
205
|
+
if (ignoreInvalid) return;
|
|
206
|
+
throw new Error("Rules manager: invalid rule name " + name);
|
|
207
|
+
}
|
|
208
|
+
this.__rules__[idx].enabled = true;
|
|
209
|
+
result.push(name);
|
|
210
|
+
}, this);
|
|
211
|
+
this.__cache__ = null;
|
|
212
|
+
return result;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Ruler.enableOnly(list [, ignoreInvalid])
|
|
216
|
+
* - list (String|Array): list of rule names to enable (whitelist).
|
|
217
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
218
|
+
*
|
|
219
|
+
* Enable rules with given names, and disable everything else. If any rule name
|
|
220
|
+
* not found - throw Error. Errors can be disabled by second param.
|
|
221
|
+
*
|
|
222
|
+
* See also [[Ruler.disable]], [[Ruler.enable]].
|
|
223
|
+
**/
|
|
224
|
+
Ruler.prototype.enableOnly = function(list, ignoreInvalid) {
|
|
225
|
+
if (!Array.isArray(list)) list = [list];
|
|
226
|
+
this.__rules__.forEach(function(rule) {
|
|
227
|
+
rule.enabled = false;
|
|
228
|
+
});
|
|
229
|
+
this.enable(list, ignoreInvalid);
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Ruler.disable(list [, ignoreInvalid]) -> Array
|
|
233
|
+
* - list (String|Array): list of rule names to disable.
|
|
234
|
+
* - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
|
|
235
|
+
*
|
|
236
|
+
* Disable rules with given names. If any rule name not found - throw Error.
|
|
237
|
+
* Errors can be disabled by second param.
|
|
238
|
+
*
|
|
239
|
+
* Returns list of found rule names (if no exception happened).
|
|
240
|
+
*
|
|
241
|
+
* See also [[Ruler.enable]], [[Ruler.enableOnly]].
|
|
242
|
+
**/
|
|
243
|
+
Ruler.prototype.disable = function(list, ignoreInvalid) {
|
|
244
|
+
if (!Array.isArray(list)) list = [list];
|
|
245
|
+
const result = [];
|
|
246
|
+
list.forEach(function(name) {
|
|
247
|
+
const idx = this.__find__(name);
|
|
248
|
+
if (idx < 0) {
|
|
249
|
+
if (ignoreInvalid) return;
|
|
250
|
+
throw new Error("Rules manager: invalid rule name " + name);
|
|
251
|
+
}
|
|
252
|
+
this.__rules__[idx].enabled = false;
|
|
253
|
+
result.push(name);
|
|
254
|
+
}, this);
|
|
255
|
+
this.__cache__ = null;
|
|
256
|
+
return result;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Ruler.getRules(chainName) -> Array
|
|
260
|
+
*
|
|
261
|
+
* Return array of active functions (rules) for given chain name. It analyzes
|
|
262
|
+
* rules configuration, compiles caches if not exists and returns result.
|
|
263
|
+
*
|
|
264
|
+
* Default chain name is `''` (empty string). It can't be skipped. That's
|
|
265
|
+
* done intentionally, to keep signature monomorphic for high speed.
|
|
266
|
+
**/
|
|
267
|
+
Ruler.prototype.getRules = function(chainName) {
|
|
268
|
+
if (this.__cache__ === null) this.__compile__();
|
|
269
|
+
return this.__cache__[chainName] || [];
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
//#endregion
|
|
273
|
+
export { Ruler as default };
|
|
274
|
+
//# sourceMappingURL=ruler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruler.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs"],"sourcesContent":["/**\n * class Ruler\n *\n * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and\n * [[MarkdownIt#inline]] to manage sequences of functions (rules):\n *\n * - keep rules in defined order\n * - assign the name to each rule\n * - enable/disable rules\n * - add/replace rules\n * - allow assign rules to additional named chains (in the same)\n * - cacheing lists of active rules\n *\n * You will not need use this class directly until write plugins. For simple\n * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and\n * [[MarkdownIt.use]].\n **/\n\n/**\n * new Ruler()\n **/\nfunction Ruler () {\n // List of added rules. Each element is:\n //\n // {\n // name: XXX,\n // enabled: Boolean,\n // fn: Function(),\n // alt: [ name2, name3 ]\n // }\n //\n this.__rules__ = []\n\n // Cached rule chains.\n //\n // First level - chain name, '' for default.\n // Second level - diginal anchor for fast filtering by charcodes.\n //\n this.__cache__ = null\n}\n\n// Helper methods, should not be used directly\n\n// Find rule index by name\n//\nRuler.prototype.__find__ = function (name) {\n for (let i = 0; i < this.__rules__.length; i++) {\n if (this.__rules__[i].name === name) {\n return i\n }\n }\n return -1\n}\n\n// Build rules lookup cache\n//\nRuler.prototype.__compile__ = function () {\n const self = this\n const chains = ['']\n\n // collect unique names\n self.__rules__.forEach(function (rule) {\n if (!rule.enabled) { return }\n\n rule.alt.forEach(function (altName) {\n if (chains.indexOf(altName) < 0) {\n chains.push(altName)\n }\n })\n })\n\n self.__cache__ = {}\n\n chains.forEach(function (chain) {\n self.__cache__[chain] = []\n self.__rules__.forEach(function (rule) {\n if (!rule.enabled) { return }\n\n if (chain && rule.alt.indexOf(chain) < 0) { return }\n\n self.__cache__[chain].push(rule.fn)\n })\n })\n}\n\n/**\n * Ruler.at(name, fn [, options])\n * - name (String): rule name to replace.\n * - fn (Function): new rule function.\n * - options (Object): new rule options (not mandatory).\n *\n * Replace rule by name with new function & options. Throws error if name not\n * found.\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * Replace existing typographer replacement rule with new one:\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.core.ruler.at('replacements', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.at = function (name, fn, options) {\n const index = this.__find__(name)\n const opt = options || {}\n\n if (index === -1) { throw new Error('Parser rule not found: ' + name) }\n\n this.__rules__[index].fn = fn\n this.__rules__[index].alt = opt.alt || []\n this.__cache__ = null\n}\n\n/**\n * Ruler.before(beforeName, ruleName, fn [, options])\n * - beforeName (String): new rule will be added before this one.\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Add new rule to chain before one with given name. See also\n * [[Ruler.after]], [[Ruler.push]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.before = function (beforeName, ruleName, fn, options) {\n const index = this.__find__(beforeName)\n const opt = options || {}\n\n if (index === -1) { throw new Error('Parser rule not found: ' + beforeName) }\n\n this.__rules__.splice(index, 0, {\n name: ruleName,\n enabled: true,\n fn,\n alt: opt.alt || []\n })\n\n this.__cache__ = null\n}\n\n/**\n * Ruler.after(afterName, ruleName, fn [, options])\n * - afterName (String): new rule will be added after this one.\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Add new rule to chain after one with given name. See also\n * [[Ruler.before]], [[Ruler.push]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.inline.ruler.after('text', 'my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.after = function (afterName, ruleName, fn, options) {\n const index = this.__find__(afterName)\n const opt = options || {}\n\n if (index === -1) { throw new Error('Parser rule not found: ' + afterName) }\n\n this.__rules__.splice(index + 1, 0, {\n name: ruleName,\n enabled: true,\n fn,\n alt: opt.alt || []\n })\n\n this.__cache__ = null\n}\n\n/**\n * Ruler.push(ruleName, fn [, options])\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Push new rule to the end of chain. See also\n * [[Ruler.before]], [[Ruler.after]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.core.ruler.push('my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.push = function (ruleName, fn, options) {\n const opt = options || {}\n\n this.__rules__.push({\n name: ruleName,\n enabled: true,\n fn,\n alt: opt.alt || []\n })\n\n this.__cache__ = null\n}\n\n/**\n * Ruler.enable(list [, ignoreInvalid]) -> Array\n * - list (String|Array): list of rule names to enable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable rules with given names. If any rule name not found - throw Error.\n * Errors can be disabled by second param.\n *\n * Returns list of found rule names (if no exception happened).\n *\n * See also [[Ruler.disable]], [[Ruler.enableOnly]].\n **/\nRuler.prototype.enable = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) { list = [list] }\n\n const result = []\n\n // Search by name and enable\n list.forEach(function (name) {\n const idx = this.__find__(name)\n\n if (idx < 0) {\n if (ignoreInvalid) { return }\n throw new Error('Rules manager: invalid rule name ' + name)\n }\n this.__rules__[idx].enabled = true\n result.push(name)\n }, this)\n\n this.__cache__ = null\n return result\n}\n\n/**\n * Ruler.enableOnly(list [, ignoreInvalid])\n * - list (String|Array): list of rule names to enable (whitelist).\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable rules with given names, and disable everything else. If any rule name\n * not found - throw Error. Errors can be disabled by second param.\n *\n * See also [[Ruler.disable]], [[Ruler.enable]].\n **/\nRuler.prototype.enableOnly = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) { list = [list] }\n\n this.__rules__.forEach(function (rule) { rule.enabled = false })\n\n this.enable(list, ignoreInvalid)\n}\n\n/**\n * Ruler.disable(list [, ignoreInvalid]) -> Array\n * - list (String|Array): list of rule names to disable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Disable rules with given names. If any rule name not found - throw Error.\n * Errors can be disabled by second param.\n *\n * Returns list of found rule names (if no exception happened).\n *\n * See also [[Ruler.enable]], [[Ruler.enableOnly]].\n **/\nRuler.prototype.disable = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) { list = [list] }\n\n const result = []\n\n // Search by name and disable\n list.forEach(function (name) {\n const idx = this.__find__(name)\n\n if (idx < 0) {\n if (ignoreInvalid) { return }\n throw new Error('Rules manager: invalid rule name ' + name)\n }\n this.__rules__[idx].enabled = false\n result.push(name)\n }, this)\n\n this.__cache__ = null\n return result\n}\n\n/**\n * Ruler.getRules(chainName) -> Array\n *\n * Return array of active functions (rules) for given chain name. It analyzes\n * rules configuration, compiles caches if not exists and returns result.\n *\n * Default chain name is `''` (empty string). It can't be skipped. That's\n * done intentionally, to keep signature monomorphic for high speed.\n **/\nRuler.prototype.getRules = function (chainName) {\n if (this.__cache__ === null) {\n this.__compile__()\n }\n\n // Chain can be empty, if rules disabled. But we still have to return Array.\n return this.__cache__[chainName] || []\n}\n\nexport default Ruler\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,QAAS;AAUhB,MAAK,YAAY,EAAE;AAOnB,MAAK,YAAY;;AAOnB,MAAM,UAAU,WAAW,SAAU,MAAM;AACzC,MAAK,IAAI,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,IACzC,KAAI,KAAK,UAAU,GAAG,SAAS,KAC7B,QAAO;AAGX,QAAO;;AAKT,MAAM,UAAU,cAAc,WAAY;CACxC,MAAM,OAAO;CACb,MAAM,SAAS,CAAC,GAAG;AAGnB,MAAK,UAAU,QAAQ,SAAU,MAAM;AACrC,MAAI,CAAC,KAAK,QAAW;AAErB,OAAK,IAAI,QAAQ,SAAU,SAAS;AAClC,OAAI,OAAO,QAAQ,QAAQ,GAAG,EAC5B,QAAO,KAAK,QAAQ;IAEtB;GACF;AAEF,MAAK,YAAY,EAAE;AAEnB,QAAO,QAAQ,SAAU,OAAO;AAC9B,OAAK,UAAU,SAAS,EAAE;AAC1B,OAAK,UAAU,QAAQ,SAAU,MAAM;AACrC,OAAI,CAAC,KAAK,QAAW;AAErB,OAAI,SAAS,KAAK,IAAI,QAAQ,MAAM,GAAG,EAAK;AAE5C,QAAK,UAAU,OAAO,KAAK,KAAK,GAAG;IACnC;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BJ,MAAM,UAAU,KAAK,SAAU,MAAM,IAAI,SAAS;CAChD,MAAM,QAAQ,KAAK,SAAS,KAAK;CACjC,MAAM,MAAM,WAAW,EAAE;AAEzB,KAAI,UAAU,GAAM,OAAM,IAAI,MAAM,4BAA4B,KAAK;AAErE,MAAK,UAAU,OAAO,KAAK;AAC3B,MAAK,UAAU,OAAO,MAAM,IAAI,OAAO,EAAE;AACzC,MAAK,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BnB,MAAM,UAAU,SAAS,SAAU,YAAY,UAAU,IAAI,SAAS;CACpE,MAAM,QAAQ,KAAK,SAAS,WAAW;CACvC,MAAM,MAAM,WAAW,EAAE;AAEzB,KAAI,UAAU,GAAM,OAAM,IAAI,MAAM,4BAA4B,WAAW;AAE3E,MAAK,UAAU,OAAO,OAAO,GAAG;EAC9B,MAAM;EACN,SAAS;EACT;EACA,KAAK,IAAI,OAAO,EAAE;EACnB,CAAC;AAEF,MAAK,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BnB,MAAM,UAAU,QAAQ,SAAU,WAAW,UAAU,IAAI,SAAS;CAClE,MAAM,QAAQ,KAAK,SAAS,UAAU;CACtC,MAAM,MAAM,WAAW,EAAE;AAEzB,KAAI,UAAU,GAAM,OAAM,IAAI,MAAM,4BAA4B,UAAU;AAE1E,MAAK,UAAU,OAAO,QAAQ,GAAG,GAAG;EAClC,MAAM;EACN,SAAS;EACT;EACA,KAAK,IAAI,OAAO,EAAE;EACnB,CAAC;AAEF,MAAK,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;AA0BnB,MAAM,UAAU,OAAO,SAAU,UAAU,IAAI,SAAS;CACtD,MAAM,MAAM,WAAW,EAAE;AAEzB,MAAK,UAAU,KAAK;EAClB,MAAM;EACN,SAAS;EACT;EACA,KAAK,IAAI,OAAO,EAAE;EACnB,CAAC;AAEF,MAAK,YAAY;;;;;;;;;;;;;;AAenB,MAAM,UAAU,SAAS,SAAU,MAAM,eAAe;AACtD,KAAI,CAAC,MAAM,QAAQ,KAAK,CAAI,QAAO,CAAC,KAAK;CAEzC,MAAM,SAAS,EAAE;AAGjB,MAAK,QAAQ,SAAU,MAAM;EAC3B,MAAM,MAAM,KAAK,SAAS,KAAK;AAE/B,MAAI,MAAM,GAAG;AACX,OAAI,cAAiB;AACrB,SAAM,IAAI,MAAM,sCAAsC,KAAK;;AAE7D,OAAK,UAAU,KAAK,UAAU;AAC9B,SAAO,KAAK,KAAK;IAChB,KAAK;AAER,MAAK,YAAY;AACjB,QAAO;;;;;;;;;;;;AAaT,MAAM,UAAU,aAAa,SAAU,MAAM,eAAe;AAC1D,KAAI,CAAC,MAAM,QAAQ,KAAK,CAAI,QAAO,CAAC,KAAK;AAEzC,MAAK,UAAU,QAAQ,SAAU,MAAM;AAAE,OAAK,UAAU;GAAQ;AAEhE,MAAK,OAAO,MAAM,cAAc;;;;;;;;;;;;;;AAelC,MAAM,UAAU,UAAU,SAAU,MAAM,eAAe;AACvD,KAAI,CAAC,MAAM,QAAQ,KAAK,CAAI,QAAO,CAAC,KAAK;CAEzC,MAAM,SAAS,EAAE;AAGjB,MAAK,QAAQ,SAAU,MAAM;EAC3B,MAAM,MAAM,KAAK,SAAS,KAAK;AAE/B,MAAI,MAAM,GAAG;AACX,OAAI,cAAiB;AACrB,SAAM,IAAI,MAAM,sCAAsC,KAAK;;AAE7D,OAAK,UAAU,KAAK,UAAU;AAC9B,SAAO,KAAK,KAAK;IAChB,KAAK;AAER,MAAK,YAAY;AACjB,QAAO;;;;;;;;;;;AAYT,MAAM,UAAU,WAAW,SAAU,WAAW;AAC9C,KAAI,KAAK,cAAc,KACrB,MAAK,aAAa;AAIpB,QAAO,KAAK,UAAU,cAAc,EAAE"}
|
|
@@ -0,0 +1,107 @@
|
|
|
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/blockquote.mjs
|
|
4
|
+
function blockquote(state, startLine, endLine, silent) {
|
|
5
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
6
|
+
let max = state.eMarks[startLine];
|
|
7
|
+
const oldLineMax = state.lineMax;
|
|
8
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
9
|
+
if (state.src.charCodeAt(pos) !== 62) return false;
|
|
10
|
+
if (silent) return true;
|
|
11
|
+
const oldBMarks = [];
|
|
12
|
+
const oldBSCount = [];
|
|
13
|
+
const oldSCount = [];
|
|
14
|
+
const oldTShift = [];
|
|
15
|
+
const terminatorRules = state.md.block.ruler.getRules("blockquote");
|
|
16
|
+
const oldParentType = state.parentType;
|
|
17
|
+
state.parentType = "blockquote";
|
|
18
|
+
let lastLineEmpty = false;
|
|
19
|
+
let nextLine;
|
|
20
|
+
for (nextLine = startLine; nextLine < endLine; nextLine++) {
|
|
21
|
+
const isOutdented = state.sCount[nextLine] < state.blkIndent;
|
|
22
|
+
pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
23
|
+
max = state.eMarks[nextLine];
|
|
24
|
+
if (pos >= max) break;
|
|
25
|
+
if (state.src.charCodeAt(pos++) === 62 && !isOutdented) {
|
|
26
|
+
let initial = state.sCount[nextLine] + 1;
|
|
27
|
+
let spaceAfterMarker;
|
|
28
|
+
let adjustTab;
|
|
29
|
+
if (state.src.charCodeAt(pos) === 32) {
|
|
30
|
+
pos++;
|
|
31
|
+
initial++;
|
|
32
|
+
adjustTab = false;
|
|
33
|
+
spaceAfterMarker = true;
|
|
34
|
+
} else if (state.src.charCodeAt(pos) === 9) {
|
|
35
|
+
spaceAfterMarker = true;
|
|
36
|
+
if ((state.bsCount[nextLine] + initial) % 4 === 3) {
|
|
37
|
+
pos++;
|
|
38
|
+
initial++;
|
|
39
|
+
adjustTab = false;
|
|
40
|
+
} else adjustTab = true;
|
|
41
|
+
} else spaceAfterMarker = false;
|
|
42
|
+
let offset = initial;
|
|
43
|
+
oldBMarks.push(state.bMarks[nextLine]);
|
|
44
|
+
state.bMarks[nextLine] = pos;
|
|
45
|
+
while (pos < max) {
|
|
46
|
+
const ch = state.src.charCodeAt(pos);
|
|
47
|
+
if (require_utils.isSpace(ch)) if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
|
|
48
|
+
else offset++;
|
|
49
|
+
else break;
|
|
50
|
+
pos++;
|
|
51
|
+
}
|
|
52
|
+
lastLineEmpty = pos >= max;
|
|
53
|
+
oldBSCount.push(state.bsCount[nextLine]);
|
|
54
|
+
state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);
|
|
55
|
+
oldSCount.push(state.sCount[nextLine]);
|
|
56
|
+
state.sCount[nextLine] = offset - initial;
|
|
57
|
+
oldTShift.push(state.tShift[nextLine]);
|
|
58
|
+
state.tShift[nextLine] = pos - state.bMarks[nextLine];
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (lastLineEmpty) break;
|
|
62
|
+
let terminate = false;
|
|
63
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
64
|
+
terminate = true;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
if (terminate) {
|
|
68
|
+
state.lineMax = nextLine;
|
|
69
|
+
if (state.blkIndent !== 0) {
|
|
70
|
+
oldBMarks.push(state.bMarks[nextLine]);
|
|
71
|
+
oldBSCount.push(state.bsCount[nextLine]);
|
|
72
|
+
oldTShift.push(state.tShift[nextLine]);
|
|
73
|
+
oldSCount.push(state.sCount[nextLine]);
|
|
74
|
+
state.sCount[nextLine] -= state.blkIndent;
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
oldBMarks.push(state.bMarks[nextLine]);
|
|
79
|
+
oldBSCount.push(state.bsCount[nextLine]);
|
|
80
|
+
oldTShift.push(state.tShift[nextLine]);
|
|
81
|
+
oldSCount.push(state.sCount[nextLine]);
|
|
82
|
+
state.sCount[nextLine] = -1;
|
|
83
|
+
}
|
|
84
|
+
const oldIndent = state.blkIndent;
|
|
85
|
+
state.blkIndent = 0;
|
|
86
|
+
const token_o = state.push("blockquote_open", "blockquote", 1);
|
|
87
|
+
token_o.markup = ">";
|
|
88
|
+
const lines = [startLine, 0];
|
|
89
|
+
token_o.map = lines;
|
|
90
|
+
state.md.block.tokenize(state, startLine, nextLine);
|
|
91
|
+
const token_c = state.push("blockquote_close", "blockquote", -1);
|
|
92
|
+
token_c.markup = ">";
|
|
93
|
+
state.lineMax = oldLineMax;
|
|
94
|
+
state.parentType = oldParentType;
|
|
95
|
+
lines[1] = state.line;
|
|
96
|
+
for (let i = 0; i < oldTShift.length; i++) {
|
|
97
|
+
state.bMarks[i + startLine] = oldBMarks[i];
|
|
98
|
+
state.tShift[i + startLine] = oldTShift[i];
|
|
99
|
+
state.sCount[i + startLine] = oldSCount[i];
|
|
100
|
+
state.bsCount[i + startLine] = oldBSCount[i];
|
|
101
|
+
}
|
|
102
|
+
state.blkIndent = oldIndent;
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
exports.default = blockquote;
|