@shell-shock/preset-cli 0.9.11 → 0.9.13
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 +42 -0
- package/dist/components/banner-builtin.cjs +3 -3
- package/dist/components/banner-builtin.mjs +3 -3
- package/dist/components/banner-builtin.mjs.map +1 -1
- package/dist/components/command-entry.cjs +1 -0
- package/dist/components/command-entry.mjs +1 -0
- package/dist/components/command-entry.mjs.map +1 -1
- 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/components/virtual-command-entry.cjs +1 -0
- package/dist/components/virtual-command-entry.mjs +1 -0
- package/dist/components/virtual-command-entry.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/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/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-DzncQodH.cjs +156 -0
- package/dist/packages/unified/dist/html-DzncQodH.mjs +157 -0
- package/dist/packages/unified/dist/html-DzncQodH.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-BiaU4FQg.cjs +82 -0
- package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs +83 -0
- package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs.map +1 -0
- package/package.json +35 -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
package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs
|
|
3
|
+
function abbr_plugin(md) {
|
|
4
|
+
const escapeRE = md.utils.escapeRE;
|
|
5
|
+
const arrayReplaceAt = md.utils.arrayReplaceAt;
|
|
6
|
+
const OTHER_CHARS = " \r\n$+<=>^`|~";
|
|
7
|
+
const UNICODE_PUNCT_RE = md.utils.lib.ucmicro.P.source;
|
|
8
|
+
const UNICODE_SPACE_RE = md.utils.lib.ucmicro.Z.source;
|
|
9
|
+
function abbr_def(state, startLine, endLine, silent) {
|
|
10
|
+
let labelEnd;
|
|
11
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
12
|
+
const max = state.eMarks[startLine];
|
|
13
|
+
if (pos + 2 >= max) return false;
|
|
14
|
+
if (state.src.charCodeAt(pos++) !== 42) return false;
|
|
15
|
+
if (state.src.charCodeAt(pos++) !== 91) return false;
|
|
16
|
+
const labelStart = pos;
|
|
17
|
+
for (; pos < max; pos++) {
|
|
18
|
+
const ch = state.src.charCodeAt(pos);
|
|
19
|
+
if (ch === 91) return false;
|
|
20
|
+
else if (ch === 93) {
|
|
21
|
+
labelEnd = pos;
|
|
22
|
+
break;
|
|
23
|
+
} else if (ch === 92) pos++;
|
|
24
|
+
}
|
|
25
|
+
if (labelEnd < 0 || state.src.charCodeAt(labelEnd + 1) !== 58) return false;
|
|
26
|
+
if (silent) return true;
|
|
27
|
+
const label = state.src.slice(labelStart, labelEnd).replace(/\\(.)/g, "$1");
|
|
28
|
+
const title = state.src.slice(labelEnd + 2, max).trim();
|
|
29
|
+
if (label.length === 0) return false;
|
|
30
|
+
if (title.length === 0) return false;
|
|
31
|
+
if (!state.env.abbreviations) state.env.abbreviations = {};
|
|
32
|
+
if (typeof state.env.abbreviations[":" + label] === "undefined") state.env.abbreviations[":" + label] = title;
|
|
33
|
+
state.line = startLine + 1;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function abbr_replace(state) {
|
|
37
|
+
const blockTokens = state.tokens;
|
|
38
|
+
if (!state.env.abbreviations) return;
|
|
39
|
+
const regSimple = new RegExp("(?:" + Object.keys(state.env.abbreviations).map(function(x) {
|
|
40
|
+
return x.substr(1);
|
|
41
|
+
}).sort(function(a, b) {
|
|
42
|
+
return b.length - a.length;
|
|
43
|
+
}).map(escapeRE).join("|") + ")");
|
|
44
|
+
const regText = "(^|" + UNICODE_PUNCT_RE + "|" + UNICODE_SPACE_RE + "|[" + OTHER_CHARS.split("").map(escapeRE).join("") + "])(" + Object.keys(state.env.abbreviations).map(function(x) {
|
|
45
|
+
return x.substr(1);
|
|
46
|
+
}).sort(function(a, b) {
|
|
47
|
+
return b.length - a.length;
|
|
48
|
+
}).map(escapeRE).join("|") + ")($|" + UNICODE_PUNCT_RE + "|" + UNICODE_SPACE_RE + "|[" + OTHER_CHARS.split("").map(escapeRE).join("") + "])";
|
|
49
|
+
const reg = new RegExp(regText, "g");
|
|
50
|
+
for (let j = 0, l = blockTokens.length; j < l; j++) {
|
|
51
|
+
if (blockTokens[j].type !== "inline") continue;
|
|
52
|
+
let tokens = blockTokens[j].children;
|
|
53
|
+
for (let i = tokens.length - 1; i >= 0; i--) {
|
|
54
|
+
const currentToken = tokens[i];
|
|
55
|
+
if (currentToken.type !== "text") continue;
|
|
56
|
+
let pos = 0;
|
|
57
|
+
const text = currentToken.content;
|
|
58
|
+
reg.lastIndex = 0;
|
|
59
|
+
const nodes = [];
|
|
60
|
+
if (!regSimple.test(text)) continue;
|
|
61
|
+
let m;
|
|
62
|
+
while (m = reg.exec(text)) {
|
|
63
|
+
if (m.index > 0 || m[1].length > 0) {
|
|
64
|
+
const token = new state.Token("text", "", 0);
|
|
65
|
+
token.content = text.slice(pos, m.index + m[1].length);
|
|
66
|
+
nodes.push(token);
|
|
67
|
+
}
|
|
68
|
+
const token_o = new state.Token("abbr_open", "abbr", 1);
|
|
69
|
+
token_o.attrs = [["title", state.env.abbreviations[":" + m[2]]]];
|
|
70
|
+
nodes.push(token_o);
|
|
71
|
+
const token_t = new state.Token("text", "", 0);
|
|
72
|
+
token_t.content = m[2];
|
|
73
|
+
nodes.push(token_t);
|
|
74
|
+
const token_c = new state.Token("abbr_close", "abbr", -1);
|
|
75
|
+
nodes.push(token_c);
|
|
76
|
+
reg.lastIndex -= m[3].length;
|
|
77
|
+
pos = reg.lastIndex;
|
|
78
|
+
}
|
|
79
|
+
if (!nodes.length) continue;
|
|
80
|
+
if (pos < text.length) {
|
|
81
|
+
const token = new state.Token("text", "", 0);
|
|
82
|
+
token.content = text.slice(pos);
|
|
83
|
+
nodes.push(token);
|
|
84
|
+
}
|
|
85
|
+
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
md.block.ruler.before("reference", "abbr_def", abbr_def, { alt: ["paragraph", "reference"] });
|
|
90
|
+
md.core.ruler.after("linkify", "abbr_replace", abbr_replace);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
exports.default = abbr_plugin;
|
package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs
|
|
2
|
+
function abbr_plugin(md) {
|
|
3
|
+
const escapeRE = md.utils.escapeRE;
|
|
4
|
+
const arrayReplaceAt = md.utils.arrayReplaceAt;
|
|
5
|
+
const OTHER_CHARS = " \r\n$+<=>^`|~";
|
|
6
|
+
const UNICODE_PUNCT_RE = md.utils.lib.ucmicro.P.source;
|
|
7
|
+
const UNICODE_SPACE_RE = md.utils.lib.ucmicro.Z.source;
|
|
8
|
+
function abbr_def(state, startLine, endLine, silent) {
|
|
9
|
+
let labelEnd;
|
|
10
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
11
|
+
const max = state.eMarks[startLine];
|
|
12
|
+
if (pos + 2 >= max) return false;
|
|
13
|
+
if (state.src.charCodeAt(pos++) !== 42) return false;
|
|
14
|
+
if (state.src.charCodeAt(pos++) !== 91) return false;
|
|
15
|
+
const labelStart = pos;
|
|
16
|
+
for (; pos < max; pos++) {
|
|
17
|
+
const ch = state.src.charCodeAt(pos);
|
|
18
|
+
if (ch === 91) return false;
|
|
19
|
+
else if (ch === 93) {
|
|
20
|
+
labelEnd = pos;
|
|
21
|
+
break;
|
|
22
|
+
} else if (ch === 92) pos++;
|
|
23
|
+
}
|
|
24
|
+
if (labelEnd < 0 || state.src.charCodeAt(labelEnd + 1) !== 58) return false;
|
|
25
|
+
if (silent) return true;
|
|
26
|
+
const label = state.src.slice(labelStart, labelEnd).replace(/\\(.)/g, "$1");
|
|
27
|
+
const title = state.src.slice(labelEnd + 2, max).trim();
|
|
28
|
+
if (label.length === 0) return false;
|
|
29
|
+
if (title.length === 0) return false;
|
|
30
|
+
if (!state.env.abbreviations) state.env.abbreviations = {};
|
|
31
|
+
if (typeof state.env.abbreviations[":" + label] === "undefined") state.env.abbreviations[":" + label] = title;
|
|
32
|
+
state.line = startLine + 1;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function abbr_replace(state) {
|
|
36
|
+
const blockTokens = state.tokens;
|
|
37
|
+
if (!state.env.abbreviations) return;
|
|
38
|
+
const regSimple = new RegExp("(?:" + Object.keys(state.env.abbreviations).map(function(x) {
|
|
39
|
+
return x.substr(1);
|
|
40
|
+
}).sort(function(a, b) {
|
|
41
|
+
return b.length - a.length;
|
|
42
|
+
}).map(escapeRE).join("|") + ")");
|
|
43
|
+
const regText = "(^|" + UNICODE_PUNCT_RE + "|" + UNICODE_SPACE_RE + "|[" + OTHER_CHARS.split("").map(escapeRE).join("") + "])(" + Object.keys(state.env.abbreviations).map(function(x) {
|
|
44
|
+
return x.substr(1);
|
|
45
|
+
}).sort(function(a, b) {
|
|
46
|
+
return b.length - a.length;
|
|
47
|
+
}).map(escapeRE).join("|") + ")($|" + UNICODE_PUNCT_RE + "|" + UNICODE_SPACE_RE + "|[" + OTHER_CHARS.split("").map(escapeRE).join("") + "])";
|
|
48
|
+
const reg = new RegExp(regText, "g");
|
|
49
|
+
for (let j = 0, l = blockTokens.length; j < l; j++) {
|
|
50
|
+
if (blockTokens[j].type !== "inline") continue;
|
|
51
|
+
let tokens = blockTokens[j].children;
|
|
52
|
+
for (let i = tokens.length - 1; i >= 0; i--) {
|
|
53
|
+
const currentToken = tokens[i];
|
|
54
|
+
if (currentToken.type !== "text") continue;
|
|
55
|
+
let pos = 0;
|
|
56
|
+
const text = currentToken.content;
|
|
57
|
+
reg.lastIndex = 0;
|
|
58
|
+
const nodes = [];
|
|
59
|
+
if (!regSimple.test(text)) continue;
|
|
60
|
+
let m;
|
|
61
|
+
while (m = reg.exec(text)) {
|
|
62
|
+
if (m.index > 0 || m[1].length > 0) {
|
|
63
|
+
const token = new state.Token("text", "", 0);
|
|
64
|
+
token.content = text.slice(pos, m.index + m[1].length);
|
|
65
|
+
nodes.push(token);
|
|
66
|
+
}
|
|
67
|
+
const token_o = new state.Token("abbr_open", "abbr", 1);
|
|
68
|
+
token_o.attrs = [["title", state.env.abbreviations[":" + m[2]]]];
|
|
69
|
+
nodes.push(token_o);
|
|
70
|
+
const token_t = new state.Token("text", "", 0);
|
|
71
|
+
token_t.content = m[2];
|
|
72
|
+
nodes.push(token_t);
|
|
73
|
+
const token_c = new state.Token("abbr_close", "abbr", -1);
|
|
74
|
+
nodes.push(token_c);
|
|
75
|
+
reg.lastIndex -= m[3].length;
|
|
76
|
+
pos = reg.lastIndex;
|
|
77
|
+
}
|
|
78
|
+
if (!nodes.length) continue;
|
|
79
|
+
if (pos < text.length) {
|
|
80
|
+
const token = new state.Token("text", "", 0);
|
|
81
|
+
token.content = text.slice(pos);
|
|
82
|
+
nodes.push(token);
|
|
83
|
+
}
|
|
84
|
+
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
md.block.ruler.before("reference", "abbr_def", abbr_def, { alt: ["paragraph", "reference"] });
|
|
89
|
+
md.core.ruler.after("linkify", "abbr_replace", abbr_replace);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
export { abbr_plugin as default };
|
|
94
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs"],"sourcesContent":["// Enclose abbreviations in <abbr> tags\n//\nexport default function abbr_plugin (md) {\n const escapeRE = md.utils.escapeRE\n const arrayReplaceAt = md.utils.arrayReplaceAt\n\n // ASCII characters in Cc, Sc, Sm, Sk categories we should terminate on;\n // you can check character classes here:\n // http://www.unicode.org/Public/UNIDATA/UnicodeData.txt\n const OTHER_CHARS = ' \\r\\n$+<=>^`|~'\n\n const UNICODE_PUNCT_RE = md.utils.lib.ucmicro.P.source\n const UNICODE_SPACE_RE = md.utils.lib.ucmicro.Z.source\n\n function abbr_def (state, startLine, endLine, silent) {\n let labelEnd\n let pos = state.bMarks[startLine] + state.tShift[startLine]\n const max = state.eMarks[startLine]\n\n if (pos + 2 >= max) { return false }\n\n if (state.src.charCodeAt(pos++) !== 0x2A/* * */) { return false }\n if (state.src.charCodeAt(pos++) !== 0x5B/* [ */) { return false }\n\n const labelStart = pos\n\n for (; pos < max; pos++) {\n const ch = state.src.charCodeAt(pos)\n if (ch === 0x5B /* [ */) {\n return false\n } else if (ch === 0x5D /* ] */) {\n labelEnd = pos\n break\n } else if (ch === 0x5C /* \\ */) {\n pos++\n }\n }\n\n if (labelEnd < 0 || state.src.charCodeAt(labelEnd + 1) !== 0x3A/* : */) {\n return false\n }\n\n if (silent) { return true }\n\n const label = state.src.slice(labelStart, labelEnd).replace(/\\\\(.)/g, '$1')\n const title = state.src.slice(labelEnd + 2, max).trim()\n if (label.length === 0) { return false }\n if (title.length === 0) { return false }\n if (!state.env.abbreviations) { state.env.abbreviations = {} }\n // prepend ':' to avoid conflict with Object.prototype members\n if (typeof state.env.abbreviations[':' + label] === 'undefined') {\n state.env.abbreviations[':' + label] = title\n }\n\n state.line = startLine + 1\n return true\n }\n\n function abbr_replace (state) {\n const blockTokens = state.tokens\n\n if (!state.env.abbreviations) { return }\n\n const regSimple = new RegExp('(?:' +\n Object.keys(state.env.abbreviations).map(function (x) {\n return x.substr(1)\n }).sort(function (a, b) {\n return b.length - a.length\n }).map(escapeRE).join('|') +\n ')')\n\n const regText = '(^|' + UNICODE_PUNCT_RE + '|' + UNICODE_SPACE_RE +\n '|[' + OTHER_CHARS.split('').map(escapeRE).join('') + '])' +\n '(' + Object.keys(state.env.abbreviations).map(function (x) {\n return x.substr(1)\n }).sort(function (a, b) {\n return b.length - a.length\n }).map(escapeRE).join('|') + ')' +\n '($|' + UNICODE_PUNCT_RE + '|' + UNICODE_SPACE_RE +\n '|[' + OTHER_CHARS.split('').map(escapeRE).join('') + '])'\n\n const reg = new RegExp(regText, 'g')\n\n for (let j = 0, l = blockTokens.length; j < l; j++) {\n if (blockTokens[j].type !== 'inline') { continue }\n let tokens = blockTokens[j].children\n\n // We scan from the end, to keep position when new tags added.\n for (let i = tokens.length - 1; i >= 0; i--) {\n const currentToken = tokens[i]\n if (currentToken.type !== 'text') { continue }\n\n let pos = 0\n const text = currentToken.content\n reg.lastIndex = 0\n const nodes = []\n\n // fast regexp run to determine whether there are any abbreviated words\n // in the current token\n if (!regSimple.test(text)) { continue }\n\n let m\n\n while ((m = reg.exec(text))) {\n if (m.index > 0 || m[1].length > 0) {\n const token = new state.Token('text', '', 0)\n token.content = text.slice(pos, m.index + m[1].length)\n nodes.push(token)\n }\n\n const token_o = new state.Token('abbr_open', 'abbr', 1)\n token_o.attrs = [['title', state.env.abbreviations[':' + m[2]]]]\n nodes.push(token_o)\n\n const token_t = new state.Token('text', '', 0)\n token_t.content = m[2]\n nodes.push(token_t)\n\n const token_c = new state.Token('abbr_close', 'abbr', -1)\n nodes.push(token_c)\n\n reg.lastIndex -= m[3].length\n pos = reg.lastIndex\n }\n\n if (!nodes.length) { continue }\n\n if (pos < text.length) {\n const token = new state.Token('text', '', 0)\n token.content = text.slice(pos)\n nodes.push(token)\n }\n\n // replace current node\n blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes)\n }\n }\n }\n\n md.block.ruler.before('reference', 'abbr_def', abbr_def, { alt: ['paragraph', 'reference'] })\n\n md.core.ruler.after('linkify', 'abbr_replace', abbr_replace)\n};\n"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,YAAa,IAAI;CACvC,MAAM,WAAkB,GAAG,MAAM;CACjC,MAAM,iBAAkB,GAAG,MAAM;CAKjC,MAAM,cAAmB;CAEzB,MAAM,mBAAmB,GAAG,MAAM,IAAI,QAAQ,EAAE;CAChD,MAAM,mBAAmB,GAAG,MAAM,IAAI,QAAQ,EAAE;CAEhD,SAAS,SAAU,OAAO,WAAW,SAAS,QAAQ;EACpD,IAAI;EACJ,IAAI,MAAM,MAAM,OAAO,aAAa,MAAM,OAAO;EACjD,MAAM,MAAM,MAAM,OAAO;AAEzB,MAAI,MAAM,KAAK,IAAO,QAAO;AAE7B,MAAI,MAAM,IAAI,WAAW,MAAM,KAAK,GAAe,QAAO;AAC1D,MAAI,MAAM,IAAI,WAAW,MAAM,KAAK,GAAe,QAAO;EAE1D,MAAM,aAAa;AAEnB,SAAO,MAAM,KAAK,OAAO;GACvB,MAAM,KAAK,MAAM,IAAI,WAAW,IAAI;AACpC,OAAI,OAAO,GACT,QAAO;YACE,OAAO,IAAc;AAC9B,eAAW;AACX;cACS,OAAO,GAChB;;AAIJ,MAAI,WAAW,KAAK,MAAM,IAAI,WAAW,WAAW,EAAE,KAAK,GACzD,QAAO;AAGT,MAAI,OAAU,QAAO;EAErB,MAAM,QAAQ,MAAM,IAAI,MAAM,YAAY,SAAS,CAAC,QAAQ,UAAU,KAAK;EAC3E,MAAM,QAAQ,MAAM,IAAI,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM;AACvD,MAAI,MAAM,WAAW,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|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs
|
|
3
|
+
function container_plugin(md, name, options) {
|
|
4
|
+
function validateDefault(params) {
|
|
5
|
+
return params.trim().split(" ", 2)[0] === name;
|
|
6
|
+
}
|
|
7
|
+
function renderDefault(tokens, idx, _options, env, slf) {
|
|
8
|
+
if (tokens[idx].nesting === 1) tokens[idx].attrJoin("class", name);
|
|
9
|
+
return slf.renderToken(tokens, idx, _options, env, slf);
|
|
10
|
+
}
|
|
11
|
+
options = options || {};
|
|
12
|
+
const min_markers = 3;
|
|
13
|
+
const marker_str = options.marker || ":";
|
|
14
|
+
const marker_char = marker_str.charCodeAt(0);
|
|
15
|
+
const marker_len = marker_str.length;
|
|
16
|
+
const validate = options.validate || validateDefault;
|
|
17
|
+
const render = options.render || renderDefault;
|
|
18
|
+
function container(state, startLine, endLine, silent) {
|
|
19
|
+
let pos;
|
|
20
|
+
let auto_closed = false;
|
|
21
|
+
let start = state.bMarks[startLine] + state.tShift[startLine];
|
|
22
|
+
let max = state.eMarks[startLine];
|
|
23
|
+
if (marker_char !== state.src.charCodeAt(start)) return false;
|
|
24
|
+
for (pos = start + 1; pos <= max; pos++) if (marker_str[(pos - start) % marker_len] !== state.src[pos]) break;
|
|
25
|
+
const marker_count = Math.floor((pos - start) / marker_len);
|
|
26
|
+
if (marker_count < min_markers) return false;
|
|
27
|
+
pos -= (pos - start) % marker_len;
|
|
28
|
+
const markup = state.src.slice(start, pos);
|
|
29
|
+
const params = state.src.slice(pos, max);
|
|
30
|
+
if (!validate(params, markup)) return false;
|
|
31
|
+
if (silent) return true;
|
|
32
|
+
let nextLine = startLine;
|
|
33
|
+
for (;;) {
|
|
34
|
+
nextLine++;
|
|
35
|
+
if (nextLine >= endLine) break;
|
|
36
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
37
|
+
max = state.eMarks[nextLine];
|
|
38
|
+
if (start < max && state.sCount[nextLine] < state.blkIndent) break;
|
|
39
|
+
if (marker_char !== state.src.charCodeAt(start)) continue;
|
|
40
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) continue;
|
|
41
|
+
for (pos = start + 1; pos <= max; pos++) if (marker_str[(pos - start) % marker_len] !== state.src[pos]) break;
|
|
42
|
+
if (Math.floor((pos - start) / marker_len) < marker_count) continue;
|
|
43
|
+
pos -= (pos - start) % marker_len;
|
|
44
|
+
pos = state.skipSpaces(pos);
|
|
45
|
+
if (pos < max) continue;
|
|
46
|
+
auto_closed = true;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
const old_parent = state.parentType;
|
|
50
|
+
const old_line_max = state.lineMax;
|
|
51
|
+
state.parentType = "container";
|
|
52
|
+
state.lineMax = nextLine;
|
|
53
|
+
const token_o = state.push("container_" + name + "_open", "div", 1);
|
|
54
|
+
token_o.markup = markup;
|
|
55
|
+
token_o.block = true;
|
|
56
|
+
token_o.info = params;
|
|
57
|
+
token_o.map = [startLine, nextLine];
|
|
58
|
+
state.md.block.tokenize(state, startLine + 1, nextLine);
|
|
59
|
+
const token_c = state.push("container_" + name + "_close", "div", -1);
|
|
60
|
+
token_c.markup = state.src.slice(start, pos);
|
|
61
|
+
token_c.block = true;
|
|
62
|
+
state.parentType = old_parent;
|
|
63
|
+
state.lineMax = old_line_max;
|
|
64
|
+
state.line = nextLine + (auto_closed ? 1 : 0);
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
md.block.ruler.before("fence", "container_" + name, container, { alt: [
|
|
68
|
+
"paragraph",
|
|
69
|
+
"reference",
|
|
70
|
+
"blockquote",
|
|
71
|
+
"list"
|
|
72
|
+
] });
|
|
73
|
+
md.renderer.rules["container_" + name + "_open"] = render;
|
|
74
|
+
md.renderer.rules["container_" + name + "_close"] = render;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
exports.default = container_plugin;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs
|
|
2
|
+
function container_plugin(md, name, options) {
|
|
3
|
+
function validateDefault(params) {
|
|
4
|
+
return params.trim().split(" ", 2)[0] === name;
|
|
5
|
+
}
|
|
6
|
+
function renderDefault(tokens, idx, _options, env, slf) {
|
|
7
|
+
if (tokens[idx].nesting === 1) tokens[idx].attrJoin("class", name);
|
|
8
|
+
return slf.renderToken(tokens, idx, _options, env, slf);
|
|
9
|
+
}
|
|
10
|
+
options = options || {};
|
|
11
|
+
const min_markers = 3;
|
|
12
|
+
const marker_str = options.marker || ":";
|
|
13
|
+
const marker_char = marker_str.charCodeAt(0);
|
|
14
|
+
const marker_len = marker_str.length;
|
|
15
|
+
const validate = options.validate || validateDefault;
|
|
16
|
+
const render = options.render || renderDefault;
|
|
17
|
+
function container(state, startLine, endLine, silent) {
|
|
18
|
+
let pos;
|
|
19
|
+
let auto_closed = false;
|
|
20
|
+
let start = state.bMarks[startLine] + state.tShift[startLine];
|
|
21
|
+
let max = state.eMarks[startLine];
|
|
22
|
+
if (marker_char !== state.src.charCodeAt(start)) return false;
|
|
23
|
+
for (pos = start + 1; pos <= max; pos++) if (marker_str[(pos - start) % marker_len] !== state.src[pos]) break;
|
|
24
|
+
const marker_count = Math.floor((pos - start) / marker_len);
|
|
25
|
+
if (marker_count < min_markers) return false;
|
|
26
|
+
pos -= (pos - start) % marker_len;
|
|
27
|
+
const markup = state.src.slice(start, pos);
|
|
28
|
+
const params = state.src.slice(pos, max);
|
|
29
|
+
if (!validate(params, markup)) return false;
|
|
30
|
+
if (silent) return true;
|
|
31
|
+
let nextLine = startLine;
|
|
32
|
+
for (;;) {
|
|
33
|
+
nextLine++;
|
|
34
|
+
if (nextLine >= endLine) break;
|
|
35
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
36
|
+
max = state.eMarks[nextLine];
|
|
37
|
+
if (start < max && state.sCount[nextLine] < state.blkIndent) break;
|
|
38
|
+
if (marker_char !== state.src.charCodeAt(start)) continue;
|
|
39
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) continue;
|
|
40
|
+
for (pos = start + 1; pos <= max; pos++) if (marker_str[(pos - start) % marker_len] !== state.src[pos]) break;
|
|
41
|
+
if (Math.floor((pos - start) / marker_len) < marker_count) continue;
|
|
42
|
+
pos -= (pos - start) % marker_len;
|
|
43
|
+
pos = state.skipSpaces(pos);
|
|
44
|
+
if (pos < max) continue;
|
|
45
|
+
auto_closed = true;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
const old_parent = state.parentType;
|
|
49
|
+
const old_line_max = state.lineMax;
|
|
50
|
+
state.parentType = "container";
|
|
51
|
+
state.lineMax = nextLine;
|
|
52
|
+
const token_o = state.push("container_" + name + "_open", "div", 1);
|
|
53
|
+
token_o.markup = markup;
|
|
54
|
+
token_o.block = true;
|
|
55
|
+
token_o.info = params;
|
|
56
|
+
token_o.map = [startLine, nextLine];
|
|
57
|
+
state.md.block.tokenize(state, startLine + 1, nextLine);
|
|
58
|
+
const token_c = state.push("container_" + name + "_close", "div", -1);
|
|
59
|
+
token_c.markup = state.src.slice(start, pos);
|
|
60
|
+
token_c.block = true;
|
|
61
|
+
state.parentType = old_parent;
|
|
62
|
+
state.lineMax = old_line_max;
|
|
63
|
+
state.line = nextLine + (auto_closed ? 1 : 0);
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
md.block.ruler.before("fence", "container_" + name, container, { alt: [
|
|
67
|
+
"paragraph",
|
|
68
|
+
"reference",
|
|
69
|
+
"blockquote",
|
|
70
|
+
"list"
|
|
71
|
+
] });
|
|
72
|
+
md.renderer.rules["container_" + name + "_open"] = render;
|
|
73
|
+
md.renderer.rules["container_" + name + "_close"] = render;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { container_plugin as default };
|
|
78
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs"],"sourcesContent":["// Process block-level custom containers\n//\nexport default function container_plugin (md, name, options) {\n // Second param may be useful if you decide\n // to increase minimal allowed marker length\n function validateDefault (params/*, markup */) {\n return params.trim().split(' ', 2)[0] === name\n }\n\n function renderDefault (tokens, idx, _options, env, slf) {\n // add a class to the opening tag\n if (tokens[idx].nesting === 1) {\n tokens[idx].attrJoin('class', name)\n }\n\n return slf.renderToken(tokens, idx, _options, env, slf)\n }\n\n options = options || {}\n\n const min_markers = 3\n const marker_str = options.marker || ':'\n const marker_char = marker_str.charCodeAt(0)\n const marker_len = marker_str.length\n const validate = options.validate || validateDefault\n const render = options.render || renderDefault\n\n function container (state, startLine, endLine, silent) {\n let pos\n let auto_closed = false\n let start = state.bMarks[startLine] + state.tShift[startLine]\n let max = state.eMarks[startLine]\n\n // Check out the first character quickly,\n // this should filter out most of non-containers\n //\n if (marker_char !== state.src.charCodeAt(start)) { return false }\n\n // Check out the rest of the marker string\n //\n for (pos = start + 1; pos <= max; pos++) {\n if (marker_str[(pos - start) % marker_len] !== state.src[pos]) {\n break\n }\n }\n\n const marker_count = Math.floor((pos - start) / marker_len)\n if (marker_count < min_markers) { return false }\n pos -= (pos - start) % marker_len\n\n const markup = state.src.slice(start, pos)\n const params = state.src.slice(pos, max)\n if (!validate(params, markup)) { return false }\n\n // Since start is found, we can report success here in validation mode\n //\n if (silent) { return true }\n\n // Search for the end of the block\n //\n let nextLine = startLine\n\n for (;;) {\n nextLine++\n if (nextLine >= endLine) {\n // unclosed block should be autoclosed by end of document.\n // also block seems to be autoclosed by end of parent\n break\n }\n\n start = state.bMarks[nextLine] + state.tShift[nextLine]\n max = state.eMarks[nextLine]\n\n if (start < max && state.sCount[nextLine] < state.blkIndent) {\n // non-empty line with negative indent should stop the list:\n // - ```\n // test\n break\n }\n\n if (marker_char !== state.src.charCodeAt(start)) { continue }\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n // closing fence should be indented less than 4 spaces\n continue\n }\n\n for (pos = start + 1; pos <= max; pos++) {\n if (marker_str[(pos - start) % marker_len] !== state.src[pos]) {\n break\n }\n }\n\n // closing code fence must be at least as long as the opening one\n if (Math.floor((pos - start) / marker_len) < marker_count) { continue }\n\n // make sure tail has spaces only\n pos -= (pos - start) % marker_len\n pos = state.skipSpaces(pos)\n\n if (pos < max) { continue }\n\n // found!\n auto_closed = true\n break\n }\n\n const old_parent = state.parentType\n const old_line_max = state.lineMax\n state.parentType = 'container'\n\n // this will prevent lazy continuations from ever going past our end marker\n state.lineMax = nextLine\n\n const token_o = state.push('container_' + name + '_open', 'div', 1)\n token_o.markup = markup\n token_o.block = true\n token_o.info = params\n token_o.map = [startLine, nextLine]\n\n state.md.block.tokenize(state, startLine + 1, nextLine)\n\n const token_c = state.push('container_' + name + '_close', 'div', -1)\n token_c.markup = state.src.slice(start, pos)\n token_c.block = true\n\n state.parentType = old_parent\n state.lineMax = old_line_max\n state.line = nextLine + (auto_closed ? 1 : 0)\n\n return true\n }\n\n md.block.ruler.before('fence', 'container_' + name, container, {\n alt: ['paragraph', 'reference', 'blockquote', 'list']\n })\n md.renderer.rules['container_' + name + '_open'] = render\n md.renderer.rules['container_' + name + '_close'] = render\n};\n"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,iBAAkB,IAAI,MAAM,SAAS;CAG3D,SAAS,gBAAiB,QAAqB;AAC7C,SAAO,OAAO,MAAM,CAAC,MAAM,KAAK,EAAE,CAAC,OAAO;;CAG5C,SAAS,cAAe,QAAQ,KAAK,UAAU,KAAK,KAAK;AAEvD,MAAI,OAAO,KAAK,YAAY,EAC1B,QAAO,KAAK,SAAS,SAAS,KAAK;AAGrC,SAAO,IAAI,YAAY,QAAQ,KAAK,UAAU,KAAK,IAAI;;AAGzD,WAAU,WAAW,EAAE;CAEvB,MAAM,cAA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MAAM,WAAW,IAAI;AAE3B,OAAI,MAAM,IAAO;AAGjB,iBAAc;AACd;;EAGF,MAAM,aAAa,MAAM;EACzB,MAAM,eAAe,MAAM;AAC3B,QAAM,aAAa;AAGnB,QAAM,UAAU;EAEhB,MAAM,UAAW,MAAM,KAAK,eAAe,OAAO,SAAS,OAAO,EAAE;AACpE,UAAQ,SAAS;AACjB,UAAQ,QAAS;AACjB,UAAQ,OAAS;AACjB,UAAQ,MAAS,CAAC,WAAW,SAAS;AAEtC,QAAM,GAAG,MAAM,SAAS,OAAO,YAAY,GAAG,SAAS;EAEvD,MAAM,UAAW,MAAM,KAAK,eAAe,OAAO,UAAU,OAAO,GAAG;AACtE,UAAQ,SAAS,MAAM,IAAI,MAAM,OAAO,IAAI;AAC5C,UAAQ,QAAS;AAEjB,QAAM,aAAa;AACnB,QAAM,UAAU;AAChB,QAAM,OAAO,YAAY,cAAc,IAAI;AAE3C,SAAO;;AAGT,IAAG,MAAM,MAAM,OAAO,SAAS,eAAe,MAAM,WAAW,EAC7D,KAAK;EAAC;EAAa;EAAa;EAAc;EAAO,EACtD,CAAC;AACF,IAAG,SAAS,MAAM,eAAe,OAAO,WAAW;AACnD,IAAG,SAAS,MAAM,eAAe,OAAO,YAAY"}
|
package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs
|
|
3
|
+
function deflist_plugin(md) {
|
|
4
|
+
const isSpace = md.utils.isSpace;
|
|
5
|
+
function skipMarker(state, line) {
|
|
6
|
+
let start = state.bMarks[line] + state.tShift[line];
|
|
7
|
+
const max = state.eMarks[line];
|
|
8
|
+
if (start >= max) return -1;
|
|
9
|
+
const marker = state.src.charCodeAt(start++);
|
|
10
|
+
if (marker !== 126 && marker !== 58) return -1;
|
|
11
|
+
const pos = state.skipSpaces(start);
|
|
12
|
+
if (start === pos) return -1;
|
|
13
|
+
if (pos >= max) return -1;
|
|
14
|
+
return start;
|
|
15
|
+
}
|
|
16
|
+
function markTightParagraphs(state, idx) {
|
|
17
|
+
const level = state.level + 2;
|
|
18
|
+
for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
|
|
19
|
+
state.tokens[i + 2].hidden = true;
|
|
20
|
+
state.tokens[i].hidden = true;
|
|
21
|
+
i += 2;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function deflist(state, startLine, endLine, silent) {
|
|
25
|
+
if (silent) {
|
|
26
|
+
if (state.ddIndent < 0) return false;
|
|
27
|
+
return skipMarker(state, startLine) >= 0;
|
|
28
|
+
}
|
|
29
|
+
let nextLine = startLine + 1;
|
|
30
|
+
if (nextLine >= endLine) return false;
|
|
31
|
+
if (state.isEmpty(nextLine)) {
|
|
32
|
+
nextLine++;
|
|
33
|
+
if (nextLine >= endLine) return false;
|
|
34
|
+
}
|
|
35
|
+
if (state.sCount[nextLine] < state.blkIndent) return false;
|
|
36
|
+
let contentStart = skipMarker(state, nextLine);
|
|
37
|
+
if (contentStart < 0) return false;
|
|
38
|
+
const listTokIdx = state.tokens.length;
|
|
39
|
+
let tight = true;
|
|
40
|
+
const token_dl_o = state.push("dl_open", "dl", 1);
|
|
41
|
+
const listLines = [startLine, 0];
|
|
42
|
+
token_dl_o.map = listLines;
|
|
43
|
+
let dtLine = startLine;
|
|
44
|
+
let ddLine = nextLine;
|
|
45
|
+
OUTER: for (;;) {
|
|
46
|
+
let prevEmptyEnd = false;
|
|
47
|
+
const token_dt_o = state.push("dt_open", "dt", 1);
|
|
48
|
+
token_dt_o.map = [dtLine, dtLine];
|
|
49
|
+
const token_i = state.push("inline", "", 0);
|
|
50
|
+
token_i.map = [dtLine, dtLine];
|
|
51
|
+
token_i.content = state.getLines(dtLine, dtLine + 1, state.blkIndent, false).trim();
|
|
52
|
+
token_i.children = [];
|
|
53
|
+
state.push("dt_close", "dt", -1);
|
|
54
|
+
for (;;) {
|
|
55
|
+
const token_dd_o = state.push("dd_open", "dd", 1);
|
|
56
|
+
const itemLines = [nextLine, 0];
|
|
57
|
+
token_dd_o.map = itemLines;
|
|
58
|
+
let pos = contentStart;
|
|
59
|
+
const max = state.eMarks[ddLine];
|
|
60
|
+
let offset = state.sCount[ddLine] + contentStart - (state.bMarks[ddLine] + state.tShift[ddLine]);
|
|
61
|
+
while (pos < max) {
|
|
62
|
+
const ch = state.src.charCodeAt(pos);
|
|
63
|
+
if (isSpace(ch)) if (ch === 9) offset += 4 - offset % 4;
|
|
64
|
+
else offset++;
|
|
65
|
+
else break;
|
|
66
|
+
pos++;
|
|
67
|
+
}
|
|
68
|
+
contentStart = pos;
|
|
69
|
+
const oldTight = state.tight;
|
|
70
|
+
const oldDDIndent = state.ddIndent;
|
|
71
|
+
const oldIndent = state.blkIndent;
|
|
72
|
+
const oldTShift = state.tShift[ddLine];
|
|
73
|
+
const oldSCount = state.sCount[ddLine];
|
|
74
|
+
const oldParentType = state.parentType;
|
|
75
|
+
state.blkIndent = state.ddIndent = state.sCount[ddLine] + 2;
|
|
76
|
+
state.tShift[ddLine] = contentStart - state.bMarks[ddLine];
|
|
77
|
+
state.sCount[ddLine] = offset;
|
|
78
|
+
state.tight = true;
|
|
79
|
+
state.parentType = "deflist";
|
|
80
|
+
state.md.block.tokenize(state, ddLine, endLine, true);
|
|
81
|
+
if (!state.tight || prevEmptyEnd) tight = false;
|
|
82
|
+
prevEmptyEnd = state.line - ddLine > 1 && state.isEmpty(state.line - 1);
|
|
83
|
+
state.tShift[ddLine] = oldTShift;
|
|
84
|
+
state.sCount[ddLine] = oldSCount;
|
|
85
|
+
state.tight = oldTight;
|
|
86
|
+
state.parentType = oldParentType;
|
|
87
|
+
state.blkIndent = oldIndent;
|
|
88
|
+
state.ddIndent = oldDDIndent;
|
|
89
|
+
state.push("dd_close", "dd", -1);
|
|
90
|
+
itemLines[1] = nextLine = state.line;
|
|
91
|
+
if (nextLine >= endLine) break OUTER;
|
|
92
|
+
if (state.sCount[nextLine] < state.blkIndent) break OUTER;
|
|
93
|
+
contentStart = skipMarker(state, nextLine);
|
|
94
|
+
if (contentStart < 0) break;
|
|
95
|
+
ddLine = nextLine;
|
|
96
|
+
}
|
|
97
|
+
if (nextLine >= endLine) break;
|
|
98
|
+
dtLine = nextLine;
|
|
99
|
+
if (state.isEmpty(dtLine)) break;
|
|
100
|
+
if (state.sCount[dtLine] < state.blkIndent) break;
|
|
101
|
+
ddLine = dtLine + 1;
|
|
102
|
+
if (ddLine >= endLine) break;
|
|
103
|
+
if (state.isEmpty(ddLine)) ddLine++;
|
|
104
|
+
if (ddLine >= endLine) break;
|
|
105
|
+
if (state.sCount[ddLine] < state.blkIndent) break;
|
|
106
|
+
contentStart = skipMarker(state, ddLine);
|
|
107
|
+
if (contentStart < 0) break;
|
|
108
|
+
}
|
|
109
|
+
state.push("dl_close", "dl", -1);
|
|
110
|
+
listLines[1] = nextLine;
|
|
111
|
+
state.line = nextLine;
|
|
112
|
+
if (tight) markTightParagraphs(state, listTokIdx);
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
md.block.ruler.before("paragraph", "deflist", deflist, { alt: [
|
|
116
|
+
"paragraph",
|
|
117
|
+
"reference",
|
|
118
|
+
"blockquote"
|
|
119
|
+
] });
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
//#endregion
|
|
123
|
+
exports.default = deflist_plugin;
|
package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs
|
|
2
|
+
function deflist_plugin(md) {
|
|
3
|
+
const isSpace = md.utils.isSpace;
|
|
4
|
+
function skipMarker(state, line) {
|
|
5
|
+
let start = state.bMarks[line] + state.tShift[line];
|
|
6
|
+
const max = state.eMarks[line];
|
|
7
|
+
if (start >= max) return -1;
|
|
8
|
+
const marker = state.src.charCodeAt(start++);
|
|
9
|
+
if (marker !== 126 && marker !== 58) return -1;
|
|
10
|
+
const pos = state.skipSpaces(start);
|
|
11
|
+
if (start === pos) return -1;
|
|
12
|
+
if (pos >= max) return -1;
|
|
13
|
+
return start;
|
|
14
|
+
}
|
|
15
|
+
function markTightParagraphs(state, idx) {
|
|
16
|
+
const level = state.level + 2;
|
|
17
|
+
for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
|
|
18
|
+
state.tokens[i + 2].hidden = true;
|
|
19
|
+
state.tokens[i].hidden = true;
|
|
20
|
+
i += 2;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function deflist(state, startLine, endLine, silent) {
|
|
24
|
+
if (silent) {
|
|
25
|
+
if (state.ddIndent < 0) return false;
|
|
26
|
+
return skipMarker(state, startLine) >= 0;
|
|
27
|
+
}
|
|
28
|
+
let nextLine = startLine + 1;
|
|
29
|
+
if (nextLine >= endLine) return false;
|
|
30
|
+
if (state.isEmpty(nextLine)) {
|
|
31
|
+
nextLine++;
|
|
32
|
+
if (nextLine >= endLine) return false;
|
|
33
|
+
}
|
|
34
|
+
if (state.sCount[nextLine] < state.blkIndent) return false;
|
|
35
|
+
let contentStart = skipMarker(state, nextLine);
|
|
36
|
+
if (contentStart < 0) return false;
|
|
37
|
+
const listTokIdx = state.tokens.length;
|
|
38
|
+
let tight = true;
|
|
39
|
+
const token_dl_o = state.push("dl_open", "dl", 1);
|
|
40
|
+
const listLines = [startLine, 0];
|
|
41
|
+
token_dl_o.map = listLines;
|
|
42
|
+
let dtLine = startLine;
|
|
43
|
+
let ddLine = nextLine;
|
|
44
|
+
OUTER: for (;;) {
|
|
45
|
+
let prevEmptyEnd = false;
|
|
46
|
+
const token_dt_o = state.push("dt_open", "dt", 1);
|
|
47
|
+
token_dt_o.map = [dtLine, dtLine];
|
|
48
|
+
const token_i = state.push("inline", "", 0);
|
|
49
|
+
token_i.map = [dtLine, dtLine];
|
|
50
|
+
token_i.content = state.getLines(dtLine, dtLine + 1, state.blkIndent, false).trim();
|
|
51
|
+
token_i.children = [];
|
|
52
|
+
state.push("dt_close", "dt", -1);
|
|
53
|
+
for (;;) {
|
|
54
|
+
const token_dd_o = state.push("dd_open", "dd", 1);
|
|
55
|
+
const itemLines = [nextLine, 0];
|
|
56
|
+
token_dd_o.map = itemLines;
|
|
57
|
+
let pos = contentStart;
|
|
58
|
+
const max = state.eMarks[ddLine];
|
|
59
|
+
let offset = state.sCount[ddLine] + contentStart - (state.bMarks[ddLine] + state.tShift[ddLine]);
|
|
60
|
+
while (pos < max) {
|
|
61
|
+
const ch = state.src.charCodeAt(pos);
|
|
62
|
+
if (isSpace(ch)) if (ch === 9) offset += 4 - offset % 4;
|
|
63
|
+
else offset++;
|
|
64
|
+
else break;
|
|
65
|
+
pos++;
|
|
66
|
+
}
|
|
67
|
+
contentStart = pos;
|
|
68
|
+
const oldTight = state.tight;
|
|
69
|
+
const oldDDIndent = state.ddIndent;
|
|
70
|
+
const oldIndent = state.blkIndent;
|
|
71
|
+
const oldTShift = state.tShift[ddLine];
|
|
72
|
+
const oldSCount = state.sCount[ddLine];
|
|
73
|
+
const oldParentType = state.parentType;
|
|
74
|
+
state.blkIndent = state.ddIndent = state.sCount[ddLine] + 2;
|
|
75
|
+
state.tShift[ddLine] = contentStart - state.bMarks[ddLine];
|
|
76
|
+
state.sCount[ddLine] = offset;
|
|
77
|
+
state.tight = true;
|
|
78
|
+
state.parentType = "deflist";
|
|
79
|
+
state.md.block.tokenize(state, ddLine, endLine, true);
|
|
80
|
+
if (!state.tight || prevEmptyEnd) tight = false;
|
|
81
|
+
prevEmptyEnd = state.line - ddLine > 1 && state.isEmpty(state.line - 1);
|
|
82
|
+
state.tShift[ddLine] = oldTShift;
|
|
83
|
+
state.sCount[ddLine] = oldSCount;
|
|
84
|
+
state.tight = oldTight;
|
|
85
|
+
state.parentType = oldParentType;
|
|
86
|
+
state.blkIndent = oldIndent;
|
|
87
|
+
state.ddIndent = oldDDIndent;
|
|
88
|
+
state.push("dd_close", "dd", -1);
|
|
89
|
+
itemLines[1] = nextLine = state.line;
|
|
90
|
+
if (nextLine >= endLine) break OUTER;
|
|
91
|
+
if (state.sCount[nextLine] < state.blkIndent) break OUTER;
|
|
92
|
+
contentStart = skipMarker(state, nextLine);
|
|
93
|
+
if (contentStart < 0) break;
|
|
94
|
+
ddLine = nextLine;
|
|
95
|
+
}
|
|
96
|
+
if (nextLine >= endLine) break;
|
|
97
|
+
dtLine = nextLine;
|
|
98
|
+
if (state.isEmpty(dtLine)) break;
|
|
99
|
+
if (state.sCount[dtLine] < state.blkIndent) break;
|
|
100
|
+
ddLine = dtLine + 1;
|
|
101
|
+
if (ddLine >= endLine) break;
|
|
102
|
+
if (state.isEmpty(ddLine)) ddLine++;
|
|
103
|
+
if (ddLine >= endLine) break;
|
|
104
|
+
if (state.sCount[ddLine] < state.blkIndent) break;
|
|
105
|
+
contentStart = skipMarker(state, ddLine);
|
|
106
|
+
if (contentStart < 0) break;
|
|
107
|
+
}
|
|
108
|
+
state.push("dl_close", "dl", -1);
|
|
109
|
+
listLines[1] = nextLine;
|
|
110
|
+
state.line = nextLine;
|
|
111
|
+
if (tight) markTightParagraphs(state, listTokIdx);
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
md.block.ruler.before("paragraph", "deflist", deflist, { alt: [
|
|
115
|
+
"paragraph",
|
|
116
|
+
"reference",
|
|
117
|
+
"blockquote"
|
|
118
|
+
] });
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
//#endregion
|
|
122
|
+
export { deflist_plugin as default };
|
|
123
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs"],"sourcesContent":["// Process definition lists\n//\nexport default function deflist_plugin (md) {\n const isSpace = md.utils.isSpace\n\n // Search `[:~][\\n ]`, returns next pos after marker on success\n // or -1 on fail.\n function skipMarker (state, line) {\n let start = state.bMarks[line] + state.tShift[line]\n const max = state.eMarks[line]\n\n if (start >= max) { return -1 }\n\n // Check bullet\n const marker = state.src.charCodeAt(start++)\n if (marker !== 0x7E/* ~ */ && marker !== 0x3A/* : */) { return -1 }\n\n const pos = state.skipSpaces(start)\n\n // require space after \":\"\n if (start === pos) { return -1 }\n\n // no empty definitions, e.g. \" : \"\n if (pos >= max) { return -1 }\n\n return start\n }\n\n function markTightParagraphs (state, idx) {\n const level = state.level + 2\n\n for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) {\n if (state.tokens[i].level === level && state.tokens[i].type === 'paragraph_open') {\n state.tokens[i + 2].hidden = true\n state.tokens[i].hidden = true\n i += 2\n }\n }\n }\n\n function deflist (state, startLine, endLine, silent) {\n if (silent) {\n // quirk: validation mode validates a dd block only, not a whole deflist\n if (state.ddIndent < 0) { return false }\n return skipMarker(state, startLine) >= 0\n }\n\n let nextLine = startLine + 1\n if (nextLine >= endLine) { return false }\n\n if (state.isEmpty(nextLine)) {\n nextLine++\n if (nextLine >= endLine) { return false }\n }\n\n if (state.sCount[nextLine] < state.blkIndent) { return false }\n let contentStart = skipMarker(state, nextLine)\n if (contentStart < 0) { return false }\n\n // Start list\n const listTokIdx = state.tokens.length\n let tight = true\n\n const token_dl_o = state.push('dl_open', 'dl', 1)\n const listLines = [startLine, 0]\n token_dl_o.map = listLines\n\n //\n // Iterate list items\n //\n\n let dtLine = startLine\n let ddLine = nextLine\n\n // One definition list can contain multiple DTs,\n // and one DT can be followed by multiple DDs.\n //\n // Thus, there is two loops here, and label is\n // needed to break out of the second one\n //\n /* eslint no-labels:0,block-scoped-var:0 */\n OUTER:\n for (;;) {\n let prevEmptyEnd = false\n\n const token_dt_o = state.push('dt_open', 'dt', 1)\n token_dt_o.map = [dtLine, dtLine]\n\n const token_i = state.push('inline', '', 0)\n token_i.map = [dtLine, dtLine]\n token_i.content = state.getLines(dtLine, dtLine + 1, state.blkIndent, false).trim()\n token_i.children = []\n\n state.push('dt_close', 'dt', -1)\n\n for (;;) {\n const token_dd_o = state.push('dd_open', 'dd', 1)\n const itemLines = [nextLine, 0]\n token_dd_o.map = itemLines\n\n let pos = contentStart\n const max = state.eMarks[ddLine]\n let offset = state.sCount[ddLine] + contentStart - (state.bMarks[ddLine] + state.tShift[ddLine])\n\n while (pos < max) {\n const ch = state.src.charCodeAt(pos)\n\n if (isSpace(ch)) {\n if (ch === 0x09) {\n offset += 4 - offset % 4\n } else {\n offset++\n }\n } else {\n break\n }\n\n pos++\n }\n\n contentStart = pos\n\n const oldTight = state.tight\n const oldDDIndent = state.ddIndent\n const oldIndent = state.blkIndent\n const oldTShift = state.tShift[ddLine]\n const oldSCount = state.sCount[ddLine]\n const oldParentType = state.parentType\n state.blkIndent = state.ddIndent = state.sCount[ddLine] + 2\n state.tShift[ddLine] = contentStart - state.bMarks[ddLine]\n state.sCount[ddLine] = offset\n state.tight = true\n state.parentType = 'deflist'\n\n state.md.block.tokenize(state, ddLine, endLine, true)\n\n // If any of list item is tight, mark list as tight\n if (!state.tight || prevEmptyEnd) {\n tight = false\n }\n // Item become loose if finish with empty line,\n // but we should filter last element, because it means list finish\n prevEmptyEnd = (state.line - ddLine) > 1 && state.isEmpty(state.line - 1)\n\n state.tShift[ddLine] = oldTShift\n state.sCount[ddLine] = oldSCount\n state.tight = oldTight\n state.parentType = oldParentType\n state.blkIndent = oldIndent\n state.ddIndent = oldDDIndent\n\n state.push('dd_close', 'dd', -1)\n\n itemLines[1] = nextLine = state.line\n\n if (nextLine >= endLine) { break OUTER }\n\n if (state.sCount[nextLine] < state.blkIndent) { break OUTER }\n contentStart = skipMarker(state, nextLine)\n if (contentStart < 0) { break }\n\n ddLine = nextLine\n\n // go to the next loop iteration:\n // insert DD tag and repeat checking\n }\n\n if (nextLine >= endLine) { break }\n dtLine = nextLine\n\n if (state.isEmpty(dtLine)) { break }\n if (state.sCount[dtLine] < state.blkIndent) { break }\n\n ddLine = dtLine + 1\n if (ddLine >= endLine) { break }\n if (state.isEmpty(ddLine)) { ddLine++ }\n if (ddLine >= endLine) { break }\n\n if (state.sCount[ddLine] < state.blkIndent) { break }\n contentStart = skipMarker(state, ddLine)\n if (contentStart < 0) { break }\n\n // go to the next loop iteration:\n // insert DT and DD tags and repeat checking\n }\n\n // Finilize list\n state.push('dl_close', 'dl', -1)\n\n listLines[1] = nextLine\n\n state.line = nextLine\n\n // mark paragraphs tight if needed\n if (tight) {\n markTightParagraphs(state, listTokIdx)\n }\n\n return true\n }\n\n md.block.ruler.before('paragraph', 'deflist', deflist, { alt: ['paragraph', 'reference', 'blockquote'] })\n};\n"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,eAAgB,IAAI;CAC1C,MAAM,UAAU,GAAG,MAAM;CAIzB,SAAS,WAAY,OAAO,MAAM;EAChC,IAAI,QAAQ,MAAM,OAAO,QAAQ,MAAM,OAAO;EAC9C,MAAM,MAAM,MAAM,OAAO;AAEzB,MAAI,SAAS,IAAO,QAAO;EAG3B,MAAM,SAAS,MAAM,IAAI,WAAW,QAAQ;AAC5C,MAAI,WAAW,OAAe,WAAW,GAAe,QAAO;EAE/D,MAAM,MAAM,MAAM,WAAW,MAAM;AAGnC,MAAI,UAAU,IAAO,QAAO;AAG5B,MAAI,OAAO,IAAO,QAAO;AAEzB,SAAO;;CAGT,SAAS,oBAAqB,OAAO,KAAK;EACxC,MAAM,QAAQ,MAAM,QAAQ;AAE5B,OAAK,IAAI,IAAI,MAAM,GAAG,IAAI,MAAM,OAAO,SAAS,GAAG,IAAI,GAAG,IACxD,KAAI,MAAM,OAAO,GAAG,UAAU,SAAS,MAAM,OAAO,GAAG,SAAS,kBAAkB;AAChF,SAAM,OAAO,IAAI,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