@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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs
|
|
2
|
+
function ins_plugin(md) {
|
|
3
|
+
function tokenize(state, silent) {
|
|
4
|
+
const start = state.pos;
|
|
5
|
+
const marker = state.src.charCodeAt(start);
|
|
6
|
+
if (silent) return false;
|
|
7
|
+
if (marker !== 43) return false;
|
|
8
|
+
const scanned = state.scanDelims(state.pos, true);
|
|
9
|
+
let len = scanned.length;
|
|
10
|
+
const ch = String.fromCharCode(marker);
|
|
11
|
+
if (len < 2) return false;
|
|
12
|
+
if (len % 2) {
|
|
13
|
+
const token = state.push("text", "", 0);
|
|
14
|
+
token.content = ch;
|
|
15
|
+
len--;
|
|
16
|
+
}
|
|
17
|
+
for (let i = 0; i < len; i += 2) {
|
|
18
|
+
const token = state.push("text", "", 0);
|
|
19
|
+
token.content = ch + ch;
|
|
20
|
+
if (!scanned.can_open && !scanned.can_close) continue;
|
|
21
|
+
state.delimiters.push({
|
|
22
|
+
marker,
|
|
23
|
+
length: 0,
|
|
24
|
+
jump: i / 2,
|
|
25
|
+
token: state.tokens.length - 1,
|
|
26
|
+
end: -1,
|
|
27
|
+
open: scanned.can_open,
|
|
28
|
+
close: scanned.can_close
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
state.pos += scanned.length;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function postProcess(state, delimiters) {
|
|
35
|
+
let token;
|
|
36
|
+
const loneMarkers = [];
|
|
37
|
+
const max = delimiters.length;
|
|
38
|
+
for (let i = 0; i < max; i++) {
|
|
39
|
+
const startDelim = delimiters[i];
|
|
40
|
+
if (startDelim.marker !== 43) continue;
|
|
41
|
+
if (startDelim.end === -1) continue;
|
|
42
|
+
const endDelim = delimiters[startDelim.end];
|
|
43
|
+
token = state.tokens[startDelim.token];
|
|
44
|
+
token.type = "ins_open";
|
|
45
|
+
token.tag = "ins";
|
|
46
|
+
token.nesting = 1;
|
|
47
|
+
token.markup = "++";
|
|
48
|
+
token.content = "";
|
|
49
|
+
token = state.tokens[endDelim.token];
|
|
50
|
+
token.type = "ins_close";
|
|
51
|
+
token.tag = "ins";
|
|
52
|
+
token.nesting = -1;
|
|
53
|
+
token.markup = "++";
|
|
54
|
+
token.content = "";
|
|
55
|
+
if (state.tokens[endDelim.token - 1].type === "text" && state.tokens[endDelim.token - 1].content === "+") loneMarkers.push(endDelim.token - 1);
|
|
56
|
+
}
|
|
57
|
+
while (loneMarkers.length) {
|
|
58
|
+
const i = loneMarkers.pop();
|
|
59
|
+
let j = i + 1;
|
|
60
|
+
while (j < state.tokens.length && state.tokens[j].type === "ins_close") j++;
|
|
61
|
+
j--;
|
|
62
|
+
if (i !== j) {
|
|
63
|
+
token = state.tokens[j];
|
|
64
|
+
state.tokens[j] = state.tokens[i];
|
|
65
|
+
state.tokens[i] = token;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
md.inline.ruler.before("emphasis", "ins", tokenize);
|
|
70
|
+
md.inline.ruler2.before("emphasis", "ins", function(state) {
|
|
71
|
+
const tokens_meta = state.tokens_meta;
|
|
72
|
+
const max = (state.tokens_meta || []).length;
|
|
73
|
+
postProcess(state, state.delimiters);
|
|
74
|
+
for (let curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) postProcess(state, tokens_meta[curr].delimiters);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { ins_plugin as default };
|
|
80
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs"],"sourcesContent":["export default function ins_plugin (md) {\n // Insert each marker as a separate text token, and add it to delimiter list\n //\n function tokenize (state, silent) {\n const start = state.pos\n const marker = state.src.charCodeAt(start)\n\n if (silent) { return false }\n\n if (marker !== 0x2B/* + */) { return false }\n\n const scanned = state.scanDelims(state.pos, true)\n let len = scanned.length\n const ch = String.fromCharCode(marker)\n\n if (len < 2) { return false }\n\n if (len % 2) {\n const token = state.push('text', '', 0)\n token.content = ch\n len--\n }\n\n for (let i = 0; i < len; i += 2) {\n const token = state.push('text', '', 0)\n token.content = ch + ch\n\n if (!scanned.can_open && !scanned.can_close) { continue }\n\n state.delimiters.push({\n marker,\n length: 0, // disable \"rule of 3\" length checks meant for emphasis\n jump: i / 2, // 1 delimiter = 2 characters\n token: state.tokens.length - 1,\n end: -1,\n open: scanned.can_open,\n close: scanned.can_close\n })\n }\n\n state.pos += scanned.length\n\n return true\n }\n\n // Walk through delimiter list and replace text tokens with tags\n //\n function postProcess (state, delimiters) {\n let token\n const loneMarkers = []\n const max = delimiters.length\n\n for (let i = 0; i < max; i++) {\n const startDelim = delimiters[i]\n\n if (startDelim.marker !== 0x2B/* + */) {\n continue\n }\n\n if (startDelim.end === -1) {\n continue\n }\n\n const endDelim = delimiters[startDelim.end]\n\n token = state.tokens[startDelim.token]\n token.type = 'ins_open'\n token.tag = 'ins'\n token.nesting = 1\n token.markup = '++'\n token.content = ''\n\n token = state.tokens[endDelim.token]\n token.type = 'ins_close'\n token.tag = 'ins'\n token.nesting = -1\n token.markup = '++'\n token.content = ''\n\n if (state.tokens[endDelim.token - 1].type === 'text' &&\n state.tokens[endDelim.token - 1].content === '+') {\n loneMarkers.push(endDelim.token - 1)\n }\n }\n\n // If a marker sequence has an odd number of characters, it's splitted\n // like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the\n // start of the sequence.\n //\n // So, we have to move all those markers after subsequent s_close tags.\n //\n while (loneMarkers.length) {\n const i = loneMarkers.pop()\n let j = i + 1\n\n while (j < state.tokens.length && state.tokens[j].type === 'ins_close') {\n j++\n }\n\n j--\n\n if (i !== j) {\n token = state.tokens[j]\n state.tokens[j] = state.tokens[i]\n state.tokens[i] = token\n }\n }\n }\n\n md.inline.ruler.before('emphasis', 'ins', tokenize)\n md.inline.ruler2.before('emphasis', 'ins', function (state) {\n const tokens_meta = state.tokens_meta\n const max = (state.tokens_meta || []).length\n\n postProcess(state, state.delimiters)\n\n for (let curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters)\n }\n }\n })\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,WAAY,IAAI;CAGtC,SAAS,SAAU,OAAO,QAAQ;EAChC,MAAM,QAAQ,MAAM;EACpB,MAAM,SAAS,MAAM,IAAI,WAAW,MAAM;AAE1C,MAAI,OAAU,QAAO;AAErB,MAAI,WAAW,GAAe,QAAO;EAErC,MAAM,UAAU,MAAM,WAAW,MAAM,KAAK,KAAK;EACjD,IAAI,MAAM,QAAQ;EAClB,MAAM,KAAK,OAAO,aAAa,OAAO;AAEtC,MAAI,MAAM,EAAK,QAAO;AAEtB,MAAI,MAAM,GAAG;GACX,MAAM,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAAE;AACvC,SAAM,UAAU;AAChB;;AAGF,OAAK,IAAI,IAAI,GAAG,IAAI,KAAK,KAAK,GAAG;GAC/B,MAAM,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAAE;AACvC,SAAM,UAAU,KAAK;AAErB,OAAI,CAAC,QAAQ,YAAY,CAAC,QAAQ,UAAa;AAE/C,SAAM,WAAW,KAAK;IACpB;IACA,QAAQ;IACR,MAAM,IAAI;IACV,OAAO,MAAM,OAAO,SAAS;IAC7B,KAAK;IACL,MAAM,QAAQ;IACd,OAAO,QAAQ;IAChB,CAAC;;AAGJ,QAAM,OAAO,QAAQ;AAErB,SAAO;;CAKT,SAAS,YAAa,OAAO,YAAY;EACvC,IAAI;EACJ,MAAM,cAAc,EAAE;EACtB,MAAM,MAAM,WAAW;AAEvB,OAAK,IAAI,IAAI,GAAG,IAAI,KAAK,KAAK;GAC5B,MAAM,aAAa,WAAW;AAE9B,OAAI,WAAW,WAAW,GACxB;AAGF,OAAI,WAAW,QAAQ,GACrB;GAGF,MAAM,WAAW,WAAW,WAAW;AAEvC,WAAgB,MAAM,OAAO,WAAW;AACxC,SAAM,OAAU;AAChB,SAAM,MAAU;AAChB,SAAM,UAAU;AAChB,SAAM,SAAU;AAChB,SAAM,UAAU;AAEhB,WAAgB,MAAM,OAAO,SAAS;AACtC,SAAM,OAAU;AAChB,SAAM,MAAU;AAChB,SAAM,UAAU;AAChB,SAAM,SAAU;AAChB,SAAM,UAAU;AAEhB,OAAI,MAAM,OAAO,SAAS,QAAQ,GAAG,SAAS,UAC1C,MAAM,OAAO,SAAS,QAAQ,GAAG,YAAY,IAC/C,aAAY,KAAK,SAAS,QAAQ,EAAE;;AAUxC,SAAO,YAAY,QAAQ;GACzB,MAAM,IAAI,YAAY,KAAK;GAC3B,IAAI,IAAI,IAAI;AAEZ,UAAO,IAAI,MAAM,OAAO,UAAU,MAAM,OAAO,GAAG,SAAS,YACzD;AAGF;AAEA,OAAI,MAAM,GAAG;AACX,YAAQ,MAAM,OAAO;AACrB,UAAM,OAAO,KAAK,MAAM,OAAO;AAC/B,UAAM,OAAO,KAAK;;;;AAKxB,IAAG,OAAO,MAAM,OAAO,YAAY,OAAO,SAAS;AACnD,IAAG,OAAO,OAAO,OAAO,YAAY,OAAO,SAAU,OAAO;EAC1D,MAAM,cAAc,MAAM;EAC1B,MAAM,OAAO,MAAM,eAAe,EAAE,EAAE;AAEtC,cAAY,OAAO,MAAM,WAAW;AAEpC,OAAK,IAAI,OAAO,GAAG,OAAO,KAAK,OAC7B,KAAI,YAAY,SAAS,YAAY,MAAM,WACzC,aAAY,OAAO,YAAY,MAAM,WAAW;GAGpD"}
|
package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs
|
|
3
|
+
function ins_plugin(md) {
|
|
4
|
+
function tokenize(state, silent) {
|
|
5
|
+
const start = state.pos;
|
|
6
|
+
const marker = state.src.charCodeAt(start);
|
|
7
|
+
if (silent) return false;
|
|
8
|
+
if (marker !== 61) return false;
|
|
9
|
+
const scanned = state.scanDelims(state.pos, true);
|
|
10
|
+
let len = scanned.length;
|
|
11
|
+
const ch = String.fromCharCode(marker);
|
|
12
|
+
if (len < 2) return false;
|
|
13
|
+
if (len % 2) {
|
|
14
|
+
const token = state.push("text", "", 0);
|
|
15
|
+
token.content = ch;
|
|
16
|
+
len--;
|
|
17
|
+
}
|
|
18
|
+
for (let i = 0; i < len; i += 2) {
|
|
19
|
+
const token = state.push("text", "", 0);
|
|
20
|
+
token.content = ch + ch;
|
|
21
|
+
if (!scanned.can_open && !scanned.can_close) continue;
|
|
22
|
+
state.delimiters.push({
|
|
23
|
+
marker,
|
|
24
|
+
length: 0,
|
|
25
|
+
jump: i / 2,
|
|
26
|
+
token: state.tokens.length - 1,
|
|
27
|
+
end: -1,
|
|
28
|
+
open: scanned.can_open,
|
|
29
|
+
close: scanned.can_close
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
state.pos += scanned.length;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function postProcess(state, delimiters) {
|
|
36
|
+
const loneMarkers = [];
|
|
37
|
+
const max = delimiters.length;
|
|
38
|
+
for (let i = 0; i < max; i++) {
|
|
39
|
+
const startDelim = delimiters[i];
|
|
40
|
+
if (startDelim.marker !== 61) continue;
|
|
41
|
+
if (startDelim.end === -1) continue;
|
|
42
|
+
const endDelim = delimiters[startDelim.end];
|
|
43
|
+
const token_o = state.tokens[startDelim.token];
|
|
44
|
+
token_o.type = "mark_open";
|
|
45
|
+
token_o.tag = "mark";
|
|
46
|
+
token_o.nesting = 1;
|
|
47
|
+
token_o.markup = "==";
|
|
48
|
+
token_o.content = "";
|
|
49
|
+
const token_c = state.tokens[endDelim.token];
|
|
50
|
+
token_c.type = "mark_close";
|
|
51
|
+
token_c.tag = "mark";
|
|
52
|
+
token_c.nesting = -1;
|
|
53
|
+
token_c.markup = "==";
|
|
54
|
+
token_c.content = "";
|
|
55
|
+
if (state.tokens[endDelim.token - 1].type === "text" && state.tokens[endDelim.token - 1].content === "=") loneMarkers.push(endDelim.token - 1);
|
|
56
|
+
}
|
|
57
|
+
while (loneMarkers.length) {
|
|
58
|
+
const i = loneMarkers.pop();
|
|
59
|
+
let j = i + 1;
|
|
60
|
+
while (j < state.tokens.length && state.tokens[j].type === "mark_close") j++;
|
|
61
|
+
j--;
|
|
62
|
+
if (i !== j) {
|
|
63
|
+
const token = state.tokens[j];
|
|
64
|
+
state.tokens[j] = state.tokens[i];
|
|
65
|
+
state.tokens[i] = token;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
md.inline.ruler.before("emphasis", "mark", tokenize);
|
|
70
|
+
md.inline.ruler2.before("emphasis", "mark", function(state) {
|
|
71
|
+
let curr;
|
|
72
|
+
const tokens_meta = state.tokens_meta;
|
|
73
|
+
const max = (state.tokens_meta || []).length;
|
|
74
|
+
postProcess(state, state.delimiters);
|
|
75
|
+
for (curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) postProcess(state, tokens_meta[curr].delimiters);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
exports.default = ins_plugin;
|
package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs
|
|
2
|
+
function ins_plugin(md) {
|
|
3
|
+
function tokenize(state, silent) {
|
|
4
|
+
const start = state.pos;
|
|
5
|
+
const marker = state.src.charCodeAt(start);
|
|
6
|
+
if (silent) return false;
|
|
7
|
+
if (marker !== 61) return false;
|
|
8
|
+
const scanned = state.scanDelims(state.pos, true);
|
|
9
|
+
let len = scanned.length;
|
|
10
|
+
const ch = String.fromCharCode(marker);
|
|
11
|
+
if (len < 2) return false;
|
|
12
|
+
if (len % 2) {
|
|
13
|
+
const token = state.push("text", "", 0);
|
|
14
|
+
token.content = ch;
|
|
15
|
+
len--;
|
|
16
|
+
}
|
|
17
|
+
for (let i = 0; i < len; i += 2) {
|
|
18
|
+
const token = state.push("text", "", 0);
|
|
19
|
+
token.content = ch + ch;
|
|
20
|
+
if (!scanned.can_open && !scanned.can_close) continue;
|
|
21
|
+
state.delimiters.push({
|
|
22
|
+
marker,
|
|
23
|
+
length: 0,
|
|
24
|
+
jump: i / 2,
|
|
25
|
+
token: state.tokens.length - 1,
|
|
26
|
+
end: -1,
|
|
27
|
+
open: scanned.can_open,
|
|
28
|
+
close: scanned.can_close
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
state.pos += scanned.length;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function postProcess(state, delimiters) {
|
|
35
|
+
const loneMarkers = [];
|
|
36
|
+
const max = delimiters.length;
|
|
37
|
+
for (let i = 0; i < max; i++) {
|
|
38
|
+
const startDelim = delimiters[i];
|
|
39
|
+
if (startDelim.marker !== 61) continue;
|
|
40
|
+
if (startDelim.end === -1) continue;
|
|
41
|
+
const endDelim = delimiters[startDelim.end];
|
|
42
|
+
const token_o = state.tokens[startDelim.token];
|
|
43
|
+
token_o.type = "mark_open";
|
|
44
|
+
token_o.tag = "mark";
|
|
45
|
+
token_o.nesting = 1;
|
|
46
|
+
token_o.markup = "==";
|
|
47
|
+
token_o.content = "";
|
|
48
|
+
const token_c = state.tokens[endDelim.token];
|
|
49
|
+
token_c.type = "mark_close";
|
|
50
|
+
token_c.tag = "mark";
|
|
51
|
+
token_c.nesting = -1;
|
|
52
|
+
token_c.markup = "==";
|
|
53
|
+
token_c.content = "";
|
|
54
|
+
if (state.tokens[endDelim.token - 1].type === "text" && state.tokens[endDelim.token - 1].content === "=") loneMarkers.push(endDelim.token - 1);
|
|
55
|
+
}
|
|
56
|
+
while (loneMarkers.length) {
|
|
57
|
+
const i = loneMarkers.pop();
|
|
58
|
+
let j = i + 1;
|
|
59
|
+
while (j < state.tokens.length && state.tokens[j].type === "mark_close") j++;
|
|
60
|
+
j--;
|
|
61
|
+
if (i !== j) {
|
|
62
|
+
const token = state.tokens[j];
|
|
63
|
+
state.tokens[j] = state.tokens[i];
|
|
64
|
+
state.tokens[i] = token;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
md.inline.ruler.before("emphasis", "mark", tokenize);
|
|
69
|
+
md.inline.ruler2.before("emphasis", "mark", function(state) {
|
|
70
|
+
let curr;
|
|
71
|
+
const tokens_meta = state.tokens_meta;
|
|
72
|
+
const max = (state.tokens_meta || []).length;
|
|
73
|
+
postProcess(state, state.delimiters);
|
|
74
|
+
for (curr = 0; curr < max; curr++) if (tokens_meta[curr] && tokens_meta[curr].delimiters) postProcess(state, tokens_meta[curr].delimiters);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { ins_plugin as default };
|
|
80
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs"],"sourcesContent":["export default function ins_plugin (md) {\n // Insert each marker as a separate text token, and add it to delimiter list\n //\n function tokenize (state, silent) {\n const start = state.pos\n const marker = state.src.charCodeAt(start)\n\n if (silent) { return false }\n\n if (marker !== 0x3D/* = */) { return false }\n\n const scanned = state.scanDelims(state.pos, true)\n let len = scanned.length\n const ch = String.fromCharCode(marker)\n\n if (len < 2) { return false }\n\n if (len % 2) {\n const token = state.push('text', '', 0)\n token.content = ch\n len--\n }\n\n for (let i = 0; i < len; i += 2) {\n const token = state.push('text', '', 0)\n token.content = ch + ch\n\n if (!scanned.can_open && !scanned.can_close) { continue }\n\n state.delimiters.push({\n marker,\n length: 0, // disable \"rule of 3\" length checks meant for emphasis\n jump: i / 2, // 1 delimiter = 2 characters\n token: state.tokens.length - 1,\n end: -1,\n open: scanned.can_open,\n close: scanned.can_close\n })\n }\n\n state.pos += scanned.length\n\n return true\n }\n\n // Walk through delimiter list and replace text tokens with tags\n //\n function postProcess (state, delimiters) {\n const loneMarkers = []\n const max = delimiters.length\n\n for (let i = 0; i < max; i++) {\n const startDelim = delimiters[i]\n\n if (startDelim.marker !== 0x3D/* = */) {\n continue\n }\n\n if (startDelim.end === -1) {\n continue\n }\n\n const endDelim = delimiters[startDelim.end]\n\n const token_o = state.tokens[startDelim.token]\n token_o.type = 'mark_open'\n token_o.tag = 'mark'\n token_o.nesting = 1\n token_o.markup = '=='\n token_o.content = ''\n\n const token_c = state.tokens[endDelim.token]\n token_c.type = 'mark_close'\n token_c.tag = 'mark'\n token_c.nesting = -1\n token_c.markup = '=='\n token_c.content = ''\n\n if (state.tokens[endDelim.token - 1].type === 'text' &&\n state.tokens[endDelim.token - 1].content === '=') {\n loneMarkers.push(endDelim.token - 1)\n }\n }\n\n // If a marker sequence has an odd number of characters, it's splitted\n // like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the\n // start of the sequence.\n //\n // So, we have to move all those markers after subsequent s_close tags.\n //\n while (loneMarkers.length) {\n const i = loneMarkers.pop()\n let j = i + 1\n\n while (j < state.tokens.length && state.tokens[j].type === 'mark_close') {\n j++\n }\n\n j--\n\n if (i !== j) {\n const token = state.tokens[j]\n state.tokens[j] = state.tokens[i]\n state.tokens[i] = token\n }\n }\n }\n\n md.inline.ruler.before('emphasis', 'mark', tokenize)\n md.inline.ruler2.before('emphasis', 'mark', function (state) {\n let curr\n const tokens_meta = state.tokens_meta\n const max = (state.tokens_meta || []).length\n\n postProcess(state, state.delimiters)\n\n for (curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters)\n }\n }\n })\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,WAAY,IAAI;CAGtC,SAAS,SAAU,OAAO,QAAQ;EAChC,MAAM,QAAQ,MAAM;EACpB,MAAM,SAAS,MAAM,IAAI,WAAW,MAAM;AAE1C,MAAI,OAAU,QAAO;AAErB,MAAI,WAAW,GAAe,QAAO;EAErC,MAAM,UAAU,MAAM,WAAW,MAAM,KAAK,KAAK;EACjD,IAAI,MAAM,QAAQ;EAClB,MAAM,KAAK,OAAO,aAAa,OAAO;AAEtC,MAAI,MAAM,EAAK,QAAO;AAEtB,MAAI,MAAM,GAAG;GACX,MAAM,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAAE;AACvC,SAAM,UAAU;AAChB;;AAGF,OAAK,IAAI,IAAI,GAAG,IAAI,KAAK,KAAK,GAAG;GAC/B,MAAM,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAAE;AACvC,SAAM,UAAU,KAAK;AAErB,OAAI,CAAC,QAAQ,YAAY,CAAC,QAAQ,UAAa;AAE/C,SAAM,WAAW,KAAK;IACpB;IACA,QAAQ;IACR,MAAM,IAAI;IACV,OAAO,MAAM,OAAO,SAAS;IAC7B,KAAK;IACL,MAAM,QAAQ;IACd,OAAO,QAAQ;IAChB,CAAC;;AAGJ,QAAM,OAAO,QAAQ;AAErB,SAAO;;CAKT,SAAS,YAAa,OAAO,YAAY;EACvC,MAAM,cAAc,EAAE;EACtB,MAAM,MAAM,WAAW;AAEvB,OAAK,IAAI,IAAI,GAAG,IAAI,KAAK,KAAK;GAC5B,MAAM,aAAa,WAAW;AAE9B,OAAI,WAAW,WAAW,GACxB;AAGF,OAAI,WAAW,QAAQ,GACrB;GAGF,MAAM,WAAW,WAAW,WAAW;GAEvC,MAAM,UAAU,MAAM,OAAO,WAAW;AACxC,WAAQ,OAAO;AACf,WAAQ,MAAM;AACd,WAAQ,UAAU;AAClB,WAAQ,SAAS;AACjB,WAAQ,UAAU;GAElB,MAAM,UAAU,MAAM,OAAO,SAAS;AACtC,WAAQ,OAAO;AACf,WAAQ,MAAM;AACd,WAAQ,UAAU;AAClB,WAAQ,SAAS;AACjB,WAAQ,UAAU;AAElB,OAAI,MAAM,OAAO,SAAS,QAAQ,GAAG,SAAS,UAC1C,MAAM,OAAO,SAAS,QAAQ,GAAG,YAAY,IAC/C,aAAY,KAAK,SAAS,QAAQ,EAAE;;AAUxC,SAAO,YAAY,QAAQ;GACzB,MAAM,IAAI,YAAY,KAAK;GAC3B,IAAI,IAAI,IAAI;AAEZ,UAAO,IAAI,MAAM,OAAO,UAAU,MAAM,OAAO,GAAG,SAAS,aACzD;AAGF;AAEA,OAAI,MAAM,GAAG;IACX,MAAM,QAAQ,MAAM,OAAO;AAC3B,UAAM,OAAO,KAAK,MAAM,OAAO;AAC/B,UAAM,OAAO,KAAK;;;;AAKxB,IAAG,OAAO,MAAM,OAAO,YAAY,QAAQ,SAAS;AACpD,IAAG,OAAO,OAAO,OAAO,YAAY,QAAQ,SAAU,OAAO;EAC3D,IAAI;EACJ,MAAM,cAAc,MAAM;EAC1B,MAAM,OAAO,MAAM,eAAe,EAAE,EAAE;AAEtC,cAAY,OAAO,MAAM,WAAW;AAEpC,OAAK,OAAO,GAAG,OAAO,KAAK,OACzB,KAAI,YAAY,SAAS,YAAY,MAAM,WACzC,aAAY,OAAO,YAAY,MAAM,WAAW;GAGpD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs
|
|
3
|
+
const UNESCAPE_RE = /\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;
|
|
4
|
+
function subscript(state, silent) {
|
|
5
|
+
const max = state.posMax;
|
|
6
|
+
const start = state.pos;
|
|
7
|
+
if (state.src.charCodeAt(start) !== 126) return false;
|
|
8
|
+
if (silent) return false;
|
|
9
|
+
if (start + 2 >= max) return false;
|
|
10
|
+
state.pos = start + 1;
|
|
11
|
+
let found = false;
|
|
12
|
+
while (state.pos < max) {
|
|
13
|
+
if (state.src.charCodeAt(state.pos) === 126) {
|
|
14
|
+
found = true;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
state.md.inline.skipToken(state);
|
|
18
|
+
}
|
|
19
|
+
if (!found || start + 1 === state.pos) {
|
|
20
|
+
state.pos = start;
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
const content = state.src.slice(start + 1, state.pos);
|
|
24
|
+
if (content.match(/(^|[^\\])(\\\\)*\s/)) {
|
|
25
|
+
state.pos = start;
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
state.posMax = state.pos;
|
|
29
|
+
state.pos = start + 1;
|
|
30
|
+
const token_so = state.push("sub_open", "sub", 1);
|
|
31
|
+
token_so.markup = "~";
|
|
32
|
+
const token_t = state.push("text", "", 0);
|
|
33
|
+
token_t.content = content.replace(UNESCAPE_RE, "$1");
|
|
34
|
+
const token_sc = state.push("sub_close", "sub", -1);
|
|
35
|
+
token_sc.markup = "~";
|
|
36
|
+
state.pos = state.posMax + 1;
|
|
37
|
+
state.posMax = max;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function sub_plugin(md) {
|
|
41
|
+
md.inline.ruler.after("emphasis", "sub", subscript);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.default = sub_plugin;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs
|
|
2
|
+
const UNESCAPE_RE = /\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;
|
|
3
|
+
function subscript(state, silent) {
|
|
4
|
+
const max = state.posMax;
|
|
5
|
+
const start = state.pos;
|
|
6
|
+
if (state.src.charCodeAt(start) !== 126) return false;
|
|
7
|
+
if (silent) return false;
|
|
8
|
+
if (start + 2 >= max) return false;
|
|
9
|
+
state.pos = start + 1;
|
|
10
|
+
let found = false;
|
|
11
|
+
while (state.pos < max) {
|
|
12
|
+
if (state.src.charCodeAt(state.pos) === 126) {
|
|
13
|
+
found = true;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
state.md.inline.skipToken(state);
|
|
17
|
+
}
|
|
18
|
+
if (!found || start + 1 === state.pos) {
|
|
19
|
+
state.pos = start;
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
const content = state.src.slice(start + 1, state.pos);
|
|
23
|
+
if (content.match(/(^|[^\\])(\\\\)*\s/)) {
|
|
24
|
+
state.pos = start;
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
state.posMax = state.pos;
|
|
28
|
+
state.pos = start + 1;
|
|
29
|
+
const token_so = state.push("sub_open", "sub", 1);
|
|
30
|
+
token_so.markup = "~";
|
|
31
|
+
const token_t = state.push("text", "", 0);
|
|
32
|
+
token_t.content = content.replace(UNESCAPE_RE, "$1");
|
|
33
|
+
const token_sc = state.push("sub_close", "sub", -1);
|
|
34
|
+
token_sc.markup = "~";
|
|
35
|
+
state.pos = state.posMax + 1;
|
|
36
|
+
state.posMax = max;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function sub_plugin(md) {
|
|
40
|
+
md.inline.ruler.after("emphasis", "sub", subscript);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { sub_plugin as default };
|
|
45
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs"],"sourcesContent":["// Process ~subscript~\n\n// same as UNESCAPE_MD_RE plus a space\nconst UNESCAPE_RE = /\\\\([ \\\\!\"#$%&'()*+,./:;<=>?@[\\]^_`{|}~-])/g\n\nfunction subscript (state, silent) {\n const max = state.posMax\n const start = state.pos\n\n if (state.src.charCodeAt(start) !== 0x7E/* ~ */) { return false }\n if (silent) { return false } // don't run any pairs in validation mode\n if (start + 2 >= max) { return false }\n\n state.pos = start + 1\n let found = false\n\n while (state.pos < max) {\n if (state.src.charCodeAt(state.pos) === 0x7E/* ~ */) {\n found = true\n break\n }\n\n state.md.inline.skipToken(state)\n }\n\n if (!found || start + 1 === state.pos) {\n state.pos = start\n return false\n }\n\n const content = state.src.slice(start + 1, state.pos)\n\n // don't allow unescaped spaces/newlines inside\n if (content.match(/(^|[^\\\\])(\\\\\\\\)*\\s/)) {\n state.pos = start\n return false\n }\n\n // found!\n state.posMax = state.pos\n state.pos = start + 1\n\n // Earlier we checked !silent, but this implementation does not need it\n const token_so = state.push('sub_open', 'sub', 1)\n token_so.markup = '~'\n\n const token_t = state.push('text', '', 0)\n token_t.content = content.replace(UNESCAPE_RE, '$1')\n\n const token_sc = state.push('sub_close', 'sub', -1)\n token_sc.markup = '~'\n\n state.pos = state.posMax + 1\n state.posMax = max\n return true\n}\n\nexport default function sub_plugin (md) {\n md.inline.ruler.after('emphasis', 'sub', subscript)\n};\n"],"x_google_ignoreList":[0],"mappings":";AAGA,MAAM,cAAc;AAEpB,SAAS,UAAW,OAAO,QAAQ;CACjC,MAAM,MAAM,MAAM;CAClB,MAAM,QAAQ,MAAM;AAEpB,KAAI,MAAM,IAAI,WAAW,MAAM,KAAK,IAAe,QAAO;AAC1D,KAAI,OAAU,QAAO;AACrB,KAAI,QAAQ,KAAK,IAAO,QAAO;AAE/B,OAAM,MAAM,QAAQ;CACpB,IAAI,QAAQ;AAEZ,QAAO,MAAM,MAAM,KAAK;AACtB,MAAI,MAAM,IAAI,WAAW,MAAM,IAAI,KAAK,KAAa;AACnD,WAAQ;AACR;;AAGF,QAAM,GAAG,OAAO,UAAU,MAAM;;AAGlC,KAAI,CAAC,SAAS,QAAQ,MAAM,MAAM,KAAK;AACrC,QAAM,MAAM;AACZ,SAAO;;CAGT,MAAM,UAAU,MAAM,IAAI,MAAM,QAAQ,GAAG,MAAM,IAAI;AAGrD,KAAI,QAAQ,MAAM,qBAAqB,EAAE;AACvC,QAAM,MAAM;AACZ,SAAO;;AAIT,OAAM,SAAS,MAAM;AACrB,OAAM,MAAM,QAAQ;CAGpB,MAAM,WAAW,MAAM,KAAK,YAAY,OAAO,EAAE;AACjD,UAAS,SAAS;CAElB,MAAM,UAAU,MAAM,KAAK,QAAQ,IAAI,EAAE;AACzC,SAAQ,UAAU,QAAQ,QAAQ,aAAa,KAAK;CAEpD,MAAM,WAAW,MAAM,KAAK,aAAa,OAAO,GAAG;AACnD,UAAS,SAAS;AAElB,OAAM,MAAM,MAAM,SAAS;AAC3B,OAAM,SAAS;AACf,QAAO;;AAGT,SAAwB,WAAY,IAAI;AACtC,IAAG,OAAO,MAAM,MAAM,YAAY,OAAO,UAAU"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs
|
|
3
|
+
const UNESCAPE_RE = /\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;
|
|
4
|
+
function superscript(state, silent) {
|
|
5
|
+
const max = state.posMax;
|
|
6
|
+
const start = state.pos;
|
|
7
|
+
if (state.src.charCodeAt(start) !== 94) return false;
|
|
8
|
+
if (silent) return false;
|
|
9
|
+
if (start + 2 >= max) return false;
|
|
10
|
+
state.pos = start + 1;
|
|
11
|
+
let found = false;
|
|
12
|
+
while (state.pos < max) {
|
|
13
|
+
if (state.src.charCodeAt(state.pos) === 94) {
|
|
14
|
+
found = true;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
state.md.inline.skipToken(state);
|
|
18
|
+
}
|
|
19
|
+
if (!found || start + 1 === state.pos) {
|
|
20
|
+
state.pos = start;
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
const content = state.src.slice(start + 1, state.pos);
|
|
24
|
+
if (content.match(/(^|[^\\])(\\\\)*\s/)) {
|
|
25
|
+
state.pos = start;
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
state.posMax = state.pos;
|
|
29
|
+
state.pos = start + 1;
|
|
30
|
+
const token_so = state.push("sup_open", "sup", 1);
|
|
31
|
+
token_so.markup = "^";
|
|
32
|
+
const token_t = state.push("text", "", 0);
|
|
33
|
+
token_t.content = content.replace(UNESCAPE_RE, "$1");
|
|
34
|
+
const token_sc = state.push("sup_close", "sup", -1);
|
|
35
|
+
token_sc.markup = "^";
|
|
36
|
+
state.pos = state.posMax + 1;
|
|
37
|
+
state.posMax = max;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function sup_plugin(md) {
|
|
41
|
+
md.inline.ruler.after("emphasis", "sup", superscript);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.default = sup_plugin;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs
|
|
2
|
+
const UNESCAPE_RE = /\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;
|
|
3
|
+
function superscript(state, silent) {
|
|
4
|
+
const max = state.posMax;
|
|
5
|
+
const start = state.pos;
|
|
6
|
+
if (state.src.charCodeAt(start) !== 94) return false;
|
|
7
|
+
if (silent) return false;
|
|
8
|
+
if (start + 2 >= max) return false;
|
|
9
|
+
state.pos = start + 1;
|
|
10
|
+
let found = false;
|
|
11
|
+
while (state.pos < max) {
|
|
12
|
+
if (state.src.charCodeAt(state.pos) === 94) {
|
|
13
|
+
found = true;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
state.md.inline.skipToken(state);
|
|
17
|
+
}
|
|
18
|
+
if (!found || start + 1 === state.pos) {
|
|
19
|
+
state.pos = start;
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
const content = state.src.slice(start + 1, state.pos);
|
|
23
|
+
if (content.match(/(^|[^\\])(\\\\)*\s/)) {
|
|
24
|
+
state.pos = start;
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
state.posMax = state.pos;
|
|
28
|
+
state.pos = start + 1;
|
|
29
|
+
const token_so = state.push("sup_open", "sup", 1);
|
|
30
|
+
token_so.markup = "^";
|
|
31
|
+
const token_t = state.push("text", "", 0);
|
|
32
|
+
token_t.content = content.replace(UNESCAPE_RE, "$1");
|
|
33
|
+
const token_sc = state.push("sup_close", "sup", -1);
|
|
34
|
+
token_sc.markup = "^";
|
|
35
|
+
state.pos = state.posMax + 1;
|
|
36
|
+
state.posMax = max;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function sup_plugin(md) {
|
|
40
|
+
md.inline.ruler.after("emphasis", "sup", superscript);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { sup_plugin as default };
|
|
45
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs"],"sourcesContent":["// Process ^superscript^\n\n// same as UNESCAPE_MD_RE plus a space\nconst UNESCAPE_RE = /\\\\([ \\\\!\"#$%&'()*+,./:;<=>?@[\\]^_`{|}~-])/g\n\nfunction superscript (state, silent) {\n const max = state.posMax\n const start = state.pos\n\n if (state.src.charCodeAt(start) !== 0x5E/* ^ */) { return false }\n if (silent) { return false } // don't run any pairs in validation mode\n if (start + 2 >= max) { return false }\n\n state.pos = start + 1\n let found = false\n\n while (state.pos < max) {\n if (state.src.charCodeAt(state.pos) === 0x5E/* ^ */) {\n found = true\n break\n }\n\n state.md.inline.skipToken(state)\n }\n\n if (!found || start + 1 === state.pos) {\n state.pos = start\n return false\n }\n\n const content = state.src.slice(start + 1, state.pos)\n\n // don't allow unescaped spaces/newlines inside\n if (content.match(/(^|[^\\\\])(\\\\\\\\)*\\s/)) {\n state.pos = start\n return false\n }\n\n // found!\n state.posMax = state.pos\n state.pos = start + 1\n\n // Earlier we checked !silent, but this implementation does not need it\n const token_so = state.push('sup_open', 'sup', 1)\n token_so.markup = '^'\n\n const token_t = state.push('text', '', 0)\n token_t.content = content.replace(UNESCAPE_RE, '$1')\n\n const token_sc = state.push('sup_close', 'sup', -1)\n token_sc.markup = '^'\n\n state.pos = state.posMax + 1\n state.posMax = max\n return true\n}\n\nexport default function sup_plugin (md) {\n md.inline.ruler.after('emphasis', 'sup', superscript)\n};\n"],"x_google_ignoreList":[0],"mappings":";AAGA,MAAM,cAAc;AAEpB,SAAS,YAAa,OAAO,QAAQ;CACnC,MAAM,MAAM,MAAM;CAClB,MAAM,QAAQ,MAAM;AAEpB,KAAI,MAAM,IAAI,WAAW,MAAM,KAAK,GAAe,QAAO;AAC1D,KAAI,OAAU,QAAO;AACrB,KAAI,QAAQ,KAAK,IAAO,QAAO;AAE/B,OAAM,MAAM,QAAQ;CACpB,IAAI,QAAQ;AAEZ,QAAO,MAAM,MAAM,KAAK;AACtB,MAAI,MAAM,IAAI,WAAW,MAAM,IAAI,KAAK,IAAa;AACnD,WAAQ;AACR;;AAGF,QAAM,GAAG,OAAO,UAAU,MAAM;;AAGlC,KAAI,CAAC,SAAS,QAAQ,MAAM,MAAM,KAAK;AACrC,QAAM,MAAM;AACZ,SAAO;;CAGT,MAAM,UAAU,MAAM,IAAI,MAAM,QAAQ,GAAG,MAAM,IAAI;AAGrD,KAAI,QAAQ,MAAM,qBAAqB,EAAE;AACvC,QAAM,MAAM;AACZ,SAAO;;AAIT,OAAM,SAAS,MAAM;AACrB,OAAM,MAAM,QAAQ;CAGpB,MAAM,WAAW,MAAM,KAAK,YAAY,OAAO,EAAE;AACjD,UAAS,SAAS;CAElB,MAAM,UAAU,MAAM,KAAK,QAAQ,IAAI,EAAE;AACzC,SAAQ,UAAU,QAAQ,QAAQ,aAAa,KAAK;CAEpD,MAAM,WAAW,MAAM,KAAK,aAAa,OAAO,GAAG;AACnD,UAAS,SAAS;AAElB,OAAM,MAAM,MAAM,SAAS;AAC3B,OAAM,SAAS;AACf,QAAO;;AAGT,SAAwB,WAAY,IAAI;AACtC,IAAG,OAAO,MAAM,MAAM,YAAY,OAAO,YAAY"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
const require_runtime = require('../../../../../_virtual/_rolldown/runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.js
|
|
4
|
+
var require_markdown_it_task_lists = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
|
|
5
|
+
var disableCheckboxes = true;
|
|
6
|
+
var useLabelWrapper = false;
|
|
7
|
+
var useLabelAfter = false;
|
|
8
|
+
module.exports = function(md, options) {
|
|
9
|
+
if (options) {
|
|
10
|
+
disableCheckboxes = !options.enabled;
|
|
11
|
+
useLabelWrapper = !!options.label;
|
|
12
|
+
useLabelAfter = !!options.labelAfter;
|
|
13
|
+
}
|
|
14
|
+
md.core.ruler.after("inline", "github-task-lists", function(state) {
|
|
15
|
+
var tokens = state.tokens;
|
|
16
|
+
for (var i = 2; i < tokens.length; i++) if (isTodoItem(tokens, i)) {
|
|
17
|
+
todoify(tokens[i], state.Token);
|
|
18
|
+
attrSet(tokens[i - 2], "class", "task-list-item" + (!disableCheckboxes ? " enabled" : ""));
|
|
19
|
+
attrSet(tokens[parentToken(tokens, i - 2)], "class", "contains-task-list");
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
function attrSet(token, name, value) {
|
|
24
|
+
var index = token.attrIndex(name);
|
|
25
|
+
var attr = [name, value];
|
|
26
|
+
if (index < 0) token.attrPush(attr);
|
|
27
|
+
else token.attrs[index] = attr;
|
|
28
|
+
}
|
|
29
|
+
function parentToken(tokens, index) {
|
|
30
|
+
var targetLevel = tokens[index].level - 1;
|
|
31
|
+
for (var i = index - 1; i >= 0; i--) if (tokens[i].level === targetLevel) return i;
|
|
32
|
+
return -1;
|
|
33
|
+
}
|
|
34
|
+
function isTodoItem(tokens, index) {
|
|
35
|
+
return isInline(tokens[index]) && isParagraph(tokens[index - 1]) && isListItem(tokens[index - 2]) && startsWithTodoMarkdown(tokens[index]);
|
|
36
|
+
}
|
|
37
|
+
function todoify(token, TokenConstructor) {
|
|
38
|
+
token.children.unshift(makeCheckbox(token, TokenConstructor));
|
|
39
|
+
token.children[1].content = token.children[1].content.slice(3);
|
|
40
|
+
token.content = token.content.slice(3);
|
|
41
|
+
if (useLabelWrapper) if (useLabelAfter) {
|
|
42
|
+
token.children.pop();
|
|
43
|
+
var id = "task-item-" + Math.ceil(Math.random() * (1e4 * 1e3) - 1e3);
|
|
44
|
+
token.children[0].content = token.children[0].content.slice(0, -1) + " id=\"" + id + "\">";
|
|
45
|
+
token.children.push(afterLabel(token.content, id, TokenConstructor));
|
|
46
|
+
} else {
|
|
47
|
+
token.children.unshift(beginLabel(TokenConstructor));
|
|
48
|
+
token.children.push(endLabel(TokenConstructor));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function makeCheckbox(token, TokenConstructor) {
|
|
52
|
+
var checkbox = new TokenConstructor("html_inline", "", 0);
|
|
53
|
+
var disabledAttr = disableCheckboxes ? " disabled=\"\" " : "";
|
|
54
|
+
if (token.content.indexOf("[ ] ") === 0) checkbox.content = "<input class=\"task-list-item-checkbox\"" + disabledAttr + "type=\"checkbox\">";
|
|
55
|
+
else if (token.content.indexOf("[x] ") === 0 || token.content.indexOf("[X] ") === 0) checkbox.content = "<input class=\"task-list-item-checkbox\" checked=\"\"" + disabledAttr + "type=\"checkbox\">";
|
|
56
|
+
return checkbox;
|
|
57
|
+
}
|
|
58
|
+
function beginLabel(TokenConstructor) {
|
|
59
|
+
var token = new TokenConstructor("html_inline", "", 0);
|
|
60
|
+
token.content = "<label>";
|
|
61
|
+
return token;
|
|
62
|
+
}
|
|
63
|
+
function endLabel(TokenConstructor) {
|
|
64
|
+
var token = new TokenConstructor("html_inline", "", 0);
|
|
65
|
+
token.content = "</label>";
|
|
66
|
+
return token;
|
|
67
|
+
}
|
|
68
|
+
function afterLabel(content, id, TokenConstructor) {
|
|
69
|
+
var token = new TokenConstructor("html_inline", "", 0);
|
|
70
|
+
token.content = "<label class=\"task-list-item-label\" for=\"" + id + "\">" + content + "</label>";
|
|
71
|
+
token.attrs = [{ for: id }];
|
|
72
|
+
return token;
|
|
73
|
+
}
|
|
74
|
+
function isInline(token) {
|
|
75
|
+
return token.type === "inline";
|
|
76
|
+
}
|
|
77
|
+
function isParagraph(token) {
|
|
78
|
+
return token.type === "paragraph_open";
|
|
79
|
+
}
|
|
80
|
+
function isListItem(token) {
|
|
81
|
+
return token.type === "list_item_open";
|
|
82
|
+
}
|
|
83
|
+
function startsWithTodoMarkdown(token) {
|
|
84
|
+
return token.content.indexOf("[ ] ") === 0 || token.content.indexOf("[x] ") === 0 || token.content.indexOf("[X] ") === 0;
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
Object.defineProperty(exports, 'default', {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return require_markdown_it_task_lists();
|
|
93
|
+
}
|
|
94
|
+
});
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.js
|
|
4
|
+
var require_markdown_it_task_lists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
var disableCheckboxes = true;
|
|
6
|
+
var useLabelWrapper = false;
|
|
7
|
+
var useLabelAfter = false;
|
|
8
|
+
module.exports = function(md, options) {
|
|
9
|
+
if (options) {
|
|
10
|
+
disableCheckboxes = !options.enabled;
|
|
11
|
+
useLabelWrapper = !!options.label;
|
|
12
|
+
useLabelAfter = !!options.labelAfter;
|
|
13
|
+
}
|
|
14
|
+
md.core.ruler.after("inline", "github-task-lists", function(state) {
|
|
15
|
+
var tokens = state.tokens;
|
|
16
|
+
for (var i = 2; i < tokens.length; i++) if (isTodoItem(tokens, i)) {
|
|
17
|
+
todoify(tokens[i], state.Token);
|
|
18
|
+
attrSet(tokens[i - 2], "class", "task-list-item" + (!disableCheckboxes ? " enabled" : ""));
|
|
19
|
+
attrSet(tokens[parentToken(tokens, i - 2)], "class", "contains-task-list");
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
function attrSet(token, name, value) {
|
|
24
|
+
var index = token.attrIndex(name);
|
|
25
|
+
var attr = [name, value];
|
|
26
|
+
if (index < 0) token.attrPush(attr);
|
|
27
|
+
else token.attrs[index] = attr;
|
|
28
|
+
}
|
|
29
|
+
function parentToken(tokens, index) {
|
|
30
|
+
var targetLevel = tokens[index].level - 1;
|
|
31
|
+
for (var i = index - 1; i >= 0; i--) if (tokens[i].level === targetLevel) return i;
|
|
32
|
+
return -1;
|
|
33
|
+
}
|
|
34
|
+
function isTodoItem(tokens, index) {
|
|
35
|
+
return isInline(tokens[index]) && isParagraph(tokens[index - 1]) && isListItem(tokens[index - 2]) && startsWithTodoMarkdown(tokens[index]);
|
|
36
|
+
}
|
|
37
|
+
function todoify(token, TokenConstructor) {
|
|
38
|
+
token.children.unshift(makeCheckbox(token, TokenConstructor));
|
|
39
|
+
token.children[1].content = token.children[1].content.slice(3);
|
|
40
|
+
token.content = token.content.slice(3);
|
|
41
|
+
if (useLabelWrapper) if (useLabelAfter) {
|
|
42
|
+
token.children.pop();
|
|
43
|
+
var id = "task-item-" + Math.ceil(Math.random() * (1e4 * 1e3) - 1e3);
|
|
44
|
+
token.children[0].content = token.children[0].content.slice(0, -1) + " id=\"" + id + "\">";
|
|
45
|
+
token.children.push(afterLabel(token.content, id, TokenConstructor));
|
|
46
|
+
} else {
|
|
47
|
+
token.children.unshift(beginLabel(TokenConstructor));
|
|
48
|
+
token.children.push(endLabel(TokenConstructor));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function makeCheckbox(token, TokenConstructor) {
|
|
52
|
+
var checkbox = new TokenConstructor("html_inline", "", 0);
|
|
53
|
+
var disabledAttr = disableCheckboxes ? " disabled=\"\" " : "";
|
|
54
|
+
if (token.content.indexOf("[ ] ") === 0) checkbox.content = "<input class=\"task-list-item-checkbox\"" + disabledAttr + "type=\"checkbox\">";
|
|
55
|
+
else if (token.content.indexOf("[x] ") === 0 || token.content.indexOf("[X] ") === 0) checkbox.content = "<input class=\"task-list-item-checkbox\" checked=\"\"" + disabledAttr + "type=\"checkbox\">";
|
|
56
|
+
return checkbox;
|
|
57
|
+
}
|
|
58
|
+
function beginLabel(TokenConstructor) {
|
|
59
|
+
var token = new TokenConstructor("html_inline", "", 0);
|
|
60
|
+
token.content = "<label>";
|
|
61
|
+
return token;
|
|
62
|
+
}
|
|
63
|
+
function endLabel(TokenConstructor) {
|
|
64
|
+
var token = new TokenConstructor("html_inline", "", 0);
|
|
65
|
+
token.content = "</label>";
|
|
66
|
+
return token;
|
|
67
|
+
}
|
|
68
|
+
function afterLabel(content, id, TokenConstructor) {
|
|
69
|
+
var token = new TokenConstructor("html_inline", "", 0);
|
|
70
|
+
token.content = "<label class=\"task-list-item-label\" for=\"" + id + "\">" + content + "</label>";
|
|
71
|
+
token.attrs = [{ for: id }];
|
|
72
|
+
return token;
|
|
73
|
+
}
|
|
74
|
+
function isInline(token) {
|
|
75
|
+
return token.type === "inline";
|
|
76
|
+
}
|
|
77
|
+
function isParagraph(token) {
|
|
78
|
+
return token.type === "paragraph_open";
|
|
79
|
+
}
|
|
80
|
+
function isListItem(token) {
|
|
81
|
+
return token.type === "list_item_open";
|
|
82
|
+
}
|
|
83
|
+
function startsWithTodoMarkdown(token) {
|
|
84
|
+
return token.content.indexOf("[ ] ") === 0 || token.content.indexOf("[x] ") === 0 || token.content.indexOf("[X] ") === 0;
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
export default require_markdown_it_task_lists();
|
|
90
|
+
|
|
91
|
+
export { require_markdown_it_task_lists };
|
|
92
|
+
//# sourceMappingURL=index.mjs.map
|