@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.
Files changed (340) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +16 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +42 -0
  3. package/dist/components/banner-builtin.cjs +3 -3
  4. package/dist/components/banner-builtin.mjs +3 -3
  5. package/dist/components/banner-builtin.mjs.map +1 -1
  6. package/dist/components/command-entry.cjs +1 -0
  7. package/dist/components/command-entry.mjs +1 -0
  8. package/dist/components/command-entry.mjs.map +1 -1
  9. package/dist/components/upgrade-builtin.cjs +1 -1
  10. package/dist/components/upgrade-builtin.mjs +1 -1
  11. package/dist/components/upgrade-builtin.mjs.map +1 -1
  12. package/dist/components/virtual-command-entry.cjs +1 -0
  13. package/dist/components/virtual-command-entry.mjs +1 -0
  14. package/dist/components/virtual-command-entry.mjs.map +1 -1
  15. package/dist/index.cjs +1 -1
  16. 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
  17. 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
  18. 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
  19. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +167 -0
  20. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +167 -0
  21. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +1 -0
  22. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +373 -0
  23. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +374 -0
  24. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
  25. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +60 -0
  26. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +59 -0
  27. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
  28. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +6 -0
  29. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +6 -0
  30. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
  31. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +6 -0
  32. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +6 -0
  33. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
  34. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +59 -0
  35. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +59 -0
  36. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +1 -0
  37. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +338 -0
  38. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +333 -0
  39. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +1 -0
  40. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +6 -0
  41. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +6 -0
  42. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +1 -0
  43. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +4095 -0
  44. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +4093 -0
  45. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +1 -0
  46. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +449 -0
  47. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +450 -0
  48. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
  49. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +47 -0
  50. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
  51. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
  52. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +94 -0
  53. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +94 -0
  54. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +1 -0
  55. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +78 -0
  56. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +78 -0
  57. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +1 -0
  58. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +123 -0
  59. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +123 -0
  60. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +1 -0
  61. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +246 -0
  62. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +244 -0
  63. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +1 -0
  64. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +80 -0
  65. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +80 -0
  66. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +1 -0
  67. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +80 -0
  68. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +80 -0
  69. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +1 -0
  70. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +45 -0
  71. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +45 -0
  72. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
  73. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +45 -0
  74. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +45 -0
  75. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
  76. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +94 -0
  77. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +92 -0
  78. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +1 -0
  79. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +1 -0
  80. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +3 -0
  81. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +69 -0
  82. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +69 -0
  83. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
  84. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +9 -0
  85. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +8 -0
  86. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
  87. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +205 -0
  88. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +189 -0
  89. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
  90. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +19 -0
  91. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +15 -0
  92. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
  93. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +61 -0
  94. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +62 -0
  95. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
  96. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +35 -0
  97. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +35 -0
  98. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
  99. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +43 -0
  100. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +44 -0
  101. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
  102. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +488 -0
  103. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +489 -0
  104. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +1 -0
  105. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +148 -0
  106. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +149 -0
  107. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
  108. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +51 -0
  109. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +52 -0
  110. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
  111. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +126 -0
  112. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +127 -0
  113. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +57 -0
  115. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +57 -0
  116. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
  117. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +23 -0
  118. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +23 -0
  119. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +31 -0
  121. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +31 -0
  122. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
  123. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +217 -0
  124. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +218 -0
  125. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +274 -0
  127. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +274 -0
  128. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
  129. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +107 -0
  130. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +108 -0
  131. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +27 -0
  133. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
  134. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
  135. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +48 -0
  136. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +48 -0
  137. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +35 -0
  139. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +36 -0
  140. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
  141. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +26 -0
  142. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +27 -0
  143. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +72 -0
  145. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
  146. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
  147. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +53 -0
  148. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +53 -0
  149. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
  150. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +157 -0
  151. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +158 -0
  152. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
  153. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +32 -0
  154. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +32 -0
  155. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
  156. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +140 -0
  157. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +141 -0
  158. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
  159. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +112 -0
  160. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +113 -0
  161. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
  162. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +139 -0
  163. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +140 -0
  164. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
  165. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +15 -0
  166. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
  167. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
  168. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +12 -0
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +81 -0
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +82 -0
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +13 -0
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +13 -0
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +45 -0
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +45 -0
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +112 -0
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +113 -0
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +14 -0
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +15 -0
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +22 -0
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +22 -0
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +55 -0
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +55 -0
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +41 -0
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +41 -0
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +62 -0
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +62 -0
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +64 -0
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +64 -0
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +45 -0
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +46 -0
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +48 -0
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +49 -0
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +22 -0
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +22 -0
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +34 -0
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +35 -0
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +82 -0
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +83 -0
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +84 -0
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +85 -0
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +42 -0
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +42 -0
  221. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
  222. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +26 -0
  223. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +27 -0
  224. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
  225. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +74 -0
  226. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
  227. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
  228. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +80 -0
  229. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +80 -0
  230. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
  231. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +41 -0
  232. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +41 -0
  233. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
  234. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +157 -0
  235. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +157 -0
  236. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +1 -0
  237. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +21 -0
  238. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +17 -0
  239. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
  240. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +74 -0
  241. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +74 -0
  242. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
  243. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +57 -0
  244. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +57 -0
  245. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
  246. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +18 -0
  247. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +18 -0
  248. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
  249. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +175 -0
  250. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +175 -0
  251. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
  252. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +19 -0
  253. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +15 -0
  254. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +1 -0
  255. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +104 -0
  256. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +104 -0
  257. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +1 -0
  258. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +73 -0
  259. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +68 -0
  260. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +1 -0
  261. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +266 -0
  262. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +262 -0
  263. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +575 -0
  265. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +543 -0
  266. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +1 -0
  267. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +27 -0
  268. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +21 -0
  269. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +105 -0
  271. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +94 -0
  272. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +1 -0
  273. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +33 -0
  274. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +34 -0
  275. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +99 -0
  277. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +93 -0
  278. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +1 -0
  279. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +2544 -0
  280. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +2545 -0
  281. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +296 -0
  283. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +297 -0
  284. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +1 -0
  285. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
  286. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +28 -0
  287. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +1 -0
  288. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +2069 -0
  289. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +2069 -0
  290. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +1 -0
  291. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +156 -0
  292. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +157 -0
  293. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +1 -0
  294. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +166 -0
  295. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +167 -0
  296. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +1 -0
  297. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +299 -0
  298. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +295 -0
  299. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +1 -0
  300. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +6 -0
  301. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +6 -0
  302. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
  303. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +6 -0
  304. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +6 -0
  305. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
  306. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +6 -0
  307. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +6 -0
  308. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
  309. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +6 -0
  310. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +6 -0
  311. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
  312. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +6 -0
  313. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +6 -0
  314. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
  315. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +25 -0
  316. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +21 -0
  317. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
  318. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +6 -0
  319. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +6 -0
  320. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
  321. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +15 -0
  322. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +17 -0
  323. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -0
  324. package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/changelog-command.cjs +5 -4
  325. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -3
  326. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  327. package/dist/{plugin-changelog → packages/plugin-changelog}/dist/index.cjs +1 -1
  328. package/dist/packages/unified/dist/html-DzncQodH.cjs +156 -0
  329. package/dist/packages/unified/dist/html-DzncQodH.mjs +157 -0
  330. package/dist/packages/unified/dist/html-DzncQodH.mjs.map +1 -0
  331. package/dist/packages/unified/dist/markdown/index.cjs +1 -0
  332. package/dist/packages/unified/dist/markdown/index.mjs +3 -0
  333. package/dist/packages/unified/dist/markdown-BiaU4FQg.cjs +82 -0
  334. package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs +83 -0
  335. package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs.map +1 -0
  336. package/package.json +35 -12
  337. package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs +0 -10
  338. package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs.map +0 -1
  339. package/dist/unified/dist/markdown-Bs-BRrSC.cjs +0 -10
  340. /package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/index.cjs +0 -0
@@ -0,0 +1,274 @@
1
+
2
+ //#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs
3
+ /**
4
+ * class Ruler
5
+ *
6
+ * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
7
+ * [[MarkdownIt#inline]] to manage sequences of functions (rules):
8
+ *
9
+ * - keep rules in defined order
10
+ * - assign the name to each rule
11
+ * - enable/disable rules
12
+ * - add/replace rules
13
+ * - allow assign rules to additional named chains (in the same)
14
+ * - cacheing lists of active rules
15
+ *
16
+ * You will not need use this class directly until write plugins. For simple
17
+ * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
18
+ * [[MarkdownIt.use]].
19
+ **/
20
+ /**
21
+ * new Ruler()
22
+ **/
23
+ function Ruler() {
24
+ this.__rules__ = [];
25
+ this.__cache__ = null;
26
+ }
27
+ Ruler.prototype.__find__ = function(name) {
28
+ for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
29
+ return -1;
30
+ };
31
+ Ruler.prototype.__compile__ = function() {
32
+ const self = this;
33
+ const chains = [""];
34
+ self.__rules__.forEach(function(rule) {
35
+ if (!rule.enabled) return;
36
+ rule.alt.forEach(function(altName) {
37
+ if (chains.indexOf(altName) < 0) chains.push(altName);
38
+ });
39
+ });
40
+ self.__cache__ = {};
41
+ chains.forEach(function(chain) {
42
+ self.__cache__[chain] = [];
43
+ self.__rules__.forEach(function(rule) {
44
+ if (!rule.enabled) return;
45
+ if (chain && rule.alt.indexOf(chain) < 0) return;
46
+ self.__cache__[chain].push(rule.fn);
47
+ });
48
+ });
49
+ };
50
+ /**
51
+ * Ruler.at(name, fn [, options])
52
+ * - name (String): rule name to replace.
53
+ * - fn (Function): new rule function.
54
+ * - options (Object): new rule options (not mandatory).
55
+ *
56
+ * Replace rule by name with new function & options. Throws error if name not
57
+ * found.
58
+ *
59
+ * ##### Options:
60
+ *
61
+ * - __alt__ - array with names of "alternate" chains.
62
+ *
63
+ * ##### Example
64
+ *
65
+ * Replace existing typographer replacement rule with new one:
66
+ *
67
+ * ```javascript
68
+ * var md = require('markdown-it')();
69
+ *
70
+ * md.core.ruler.at('replacements', function replace(state) {
71
+ * //...
72
+ * });
73
+ * ```
74
+ **/
75
+ Ruler.prototype.at = function(name, fn, options) {
76
+ const index = this.__find__(name);
77
+ const opt = options || {};
78
+ if (index === -1) throw new Error("Parser rule not found: " + name);
79
+ this.__rules__[index].fn = fn;
80
+ this.__rules__[index].alt = opt.alt || [];
81
+ this.__cache__ = null;
82
+ };
83
+ /**
84
+ * Ruler.before(beforeName, ruleName, fn [, options])
85
+ * - beforeName (String): new rule will be added before this one.
86
+ * - ruleName (String): name of added rule.
87
+ * - fn (Function): rule function.
88
+ * - options (Object): rule options (not mandatory).
89
+ *
90
+ * Add new rule to chain before one with given name. See also
91
+ * [[Ruler.after]], [[Ruler.push]].
92
+ *
93
+ * ##### Options:
94
+ *
95
+ * - __alt__ - array with names of "alternate" chains.
96
+ *
97
+ * ##### Example
98
+ *
99
+ * ```javascript
100
+ * var md = require('markdown-it')();
101
+ *
102
+ * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
103
+ * //...
104
+ * });
105
+ * ```
106
+ **/
107
+ Ruler.prototype.before = function(beforeName, ruleName, fn, options) {
108
+ const index = this.__find__(beforeName);
109
+ const opt = options || {};
110
+ if (index === -1) throw new Error("Parser rule not found: " + beforeName);
111
+ this.__rules__.splice(index, 0, {
112
+ name: ruleName,
113
+ enabled: true,
114
+ fn,
115
+ alt: opt.alt || []
116
+ });
117
+ this.__cache__ = null;
118
+ };
119
+ /**
120
+ * Ruler.after(afterName, ruleName, fn [, options])
121
+ * - afterName (String): new rule will be added after this one.
122
+ * - ruleName (String): name of added rule.
123
+ * - fn (Function): rule function.
124
+ * - options (Object): rule options (not mandatory).
125
+ *
126
+ * Add new rule to chain after one with given name. See also
127
+ * [[Ruler.before]], [[Ruler.push]].
128
+ *
129
+ * ##### Options:
130
+ *
131
+ * - __alt__ - array with names of "alternate" chains.
132
+ *
133
+ * ##### Example
134
+ *
135
+ * ```javascript
136
+ * var md = require('markdown-it')();
137
+ *
138
+ * md.inline.ruler.after('text', 'my_rule', function replace(state) {
139
+ * //...
140
+ * });
141
+ * ```
142
+ **/
143
+ Ruler.prototype.after = function(afterName, ruleName, fn, options) {
144
+ const index = this.__find__(afterName);
145
+ const opt = options || {};
146
+ if (index === -1) throw new Error("Parser rule not found: " + afterName);
147
+ this.__rules__.splice(index + 1, 0, {
148
+ name: ruleName,
149
+ enabled: true,
150
+ fn,
151
+ alt: opt.alt || []
152
+ });
153
+ this.__cache__ = null;
154
+ };
155
+ /**
156
+ * Ruler.push(ruleName, fn [, options])
157
+ * - ruleName (String): name of added rule.
158
+ * - fn (Function): rule function.
159
+ * - options (Object): rule options (not mandatory).
160
+ *
161
+ * Push new rule to the end of chain. See also
162
+ * [[Ruler.before]], [[Ruler.after]].
163
+ *
164
+ * ##### Options:
165
+ *
166
+ * - __alt__ - array with names of "alternate" chains.
167
+ *
168
+ * ##### Example
169
+ *
170
+ * ```javascript
171
+ * var md = require('markdown-it')();
172
+ *
173
+ * md.core.ruler.push('my_rule', function replace(state) {
174
+ * //...
175
+ * });
176
+ * ```
177
+ **/
178
+ Ruler.prototype.push = function(ruleName, fn, options) {
179
+ const opt = options || {};
180
+ this.__rules__.push({
181
+ name: ruleName,
182
+ enabled: true,
183
+ fn,
184
+ alt: opt.alt || []
185
+ });
186
+ this.__cache__ = null;
187
+ };
188
+ /**
189
+ * Ruler.enable(list [, ignoreInvalid]) -> Array
190
+ * - list (String|Array): list of rule names to enable.
191
+ * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
192
+ *
193
+ * Enable rules with given names. If any rule name not found - throw Error.
194
+ * Errors can be disabled by second param.
195
+ *
196
+ * Returns list of found rule names (if no exception happened).
197
+ *
198
+ * See also [[Ruler.disable]], [[Ruler.enableOnly]].
199
+ **/
200
+ Ruler.prototype.enable = function(list, ignoreInvalid) {
201
+ if (!Array.isArray(list)) list = [list];
202
+ const result = [];
203
+ list.forEach(function(name) {
204
+ const idx = this.__find__(name);
205
+ if (idx < 0) {
206
+ if (ignoreInvalid) return;
207
+ throw new Error("Rules manager: invalid rule name " + name);
208
+ }
209
+ this.__rules__[idx].enabled = true;
210
+ result.push(name);
211
+ }, this);
212
+ this.__cache__ = null;
213
+ return result;
214
+ };
215
+ /**
216
+ * Ruler.enableOnly(list [, ignoreInvalid])
217
+ * - list (String|Array): list of rule names to enable (whitelist).
218
+ * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
219
+ *
220
+ * Enable rules with given names, and disable everything else. If any rule name
221
+ * not found - throw Error. Errors can be disabled by second param.
222
+ *
223
+ * See also [[Ruler.disable]], [[Ruler.enable]].
224
+ **/
225
+ Ruler.prototype.enableOnly = function(list, ignoreInvalid) {
226
+ if (!Array.isArray(list)) list = [list];
227
+ this.__rules__.forEach(function(rule) {
228
+ rule.enabled = false;
229
+ });
230
+ this.enable(list, ignoreInvalid);
231
+ };
232
+ /**
233
+ * Ruler.disable(list [, ignoreInvalid]) -> Array
234
+ * - list (String|Array): list of rule names to disable.
235
+ * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
236
+ *
237
+ * Disable rules with given names. If any rule name not found - throw Error.
238
+ * Errors can be disabled by second param.
239
+ *
240
+ * Returns list of found rule names (if no exception happened).
241
+ *
242
+ * See also [[Ruler.enable]], [[Ruler.enableOnly]].
243
+ **/
244
+ Ruler.prototype.disable = function(list, ignoreInvalid) {
245
+ if (!Array.isArray(list)) list = [list];
246
+ const result = [];
247
+ list.forEach(function(name) {
248
+ const idx = this.__find__(name);
249
+ if (idx < 0) {
250
+ if (ignoreInvalid) return;
251
+ throw new Error("Rules manager: invalid rule name " + name);
252
+ }
253
+ this.__rules__[idx].enabled = false;
254
+ result.push(name);
255
+ }, this);
256
+ this.__cache__ = null;
257
+ return result;
258
+ };
259
+ /**
260
+ * Ruler.getRules(chainName) -> Array
261
+ *
262
+ * Return array of active functions (rules) for given chain name. It analyzes
263
+ * rules configuration, compiles caches if not exists and returns result.
264
+ *
265
+ * Default chain name is `''` (empty string). It can't be skipped. That's
266
+ * done intentionally, to keep signature monomorphic for high speed.
267
+ **/
268
+ Ruler.prototype.getRules = function(chainName) {
269
+ if (this.__cache__ === null) this.__compile__();
270
+ return this.__cache__[chainName] || [];
271
+ };
272
+
273
+ //#endregion
274
+ exports.default = Ruler;
@@ -0,0 +1,274 @@
1
+ //#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs
2
+ /**
3
+ * class Ruler
4
+ *
5
+ * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
6
+ * [[MarkdownIt#inline]] to manage sequences of functions (rules):
7
+ *
8
+ * - keep rules in defined order
9
+ * - assign the name to each rule
10
+ * - enable/disable rules
11
+ * - add/replace rules
12
+ * - allow assign rules to additional named chains (in the same)
13
+ * - cacheing lists of active rules
14
+ *
15
+ * You will not need use this class directly until write plugins. For simple
16
+ * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
17
+ * [[MarkdownIt.use]].
18
+ **/
19
+ /**
20
+ * new Ruler()
21
+ **/
22
+ function Ruler() {
23
+ this.__rules__ = [];
24
+ this.__cache__ = null;
25
+ }
26
+ Ruler.prototype.__find__ = function(name) {
27
+ for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
28
+ return -1;
29
+ };
30
+ Ruler.prototype.__compile__ = function() {
31
+ const self = this;
32
+ const chains = [""];
33
+ self.__rules__.forEach(function(rule) {
34
+ if (!rule.enabled) return;
35
+ rule.alt.forEach(function(altName) {
36
+ if (chains.indexOf(altName) < 0) chains.push(altName);
37
+ });
38
+ });
39
+ self.__cache__ = {};
40
+ chains.forEach(function(chain) {
41
+ self.__cache__[chain] = [];
42
+ self.__rules__.forEach(function(rule) {
43
+ if (!rule.enabled) return;
44
+ if (chain && rule.alt.indexOf(chain) < 0) return;
45
+ self.__cache__[chain].push(rule.fn);
46
+ });
47
+ });
48
+ };
49
+ /**
50
+ * Ruler.at(name, fn [, options])
51
+ * - name (String): rule name to replace.
52
+ * - fn (Function): new rule function.
53
+ * - options (Object): new rule options (not mandatory).
54
+ *
55
+ * Replace rule by name with new function & options. Throws error if name not
56
+ * found.
57
+ *
58
+ * ##### Options:
59
+ *
60
+ * - __alt__ - array with names of "alternate" chains.
61
+ *
62
+ * ##### Example
63
+ *
64
+ * Replace existing typographer replacement rule with new one:
65
+ *
66
+ * ```javascript
67
+ * var md = require('markdown-it')();
68
+ *
69
+ * md.core.ruler.at('replacements', function replace(state) {
70
+ * //...
71
+ * });
72
+ * ```
73
+ **/
74
+ Ruler.prototype.at = function(name, fn, options) {
75
+ const index = this.__find__(name);
76
+ const opt = options || {};
77
+ if (index === -1) throw new Error("Parser rule not found: " + name);
78
+ this.__rules__[index].fn = fn;
79
+ this.__rules__[index].alt = opt.alt || [];
80
+ this.__cache__ = null;
81
+ };
82
+ /**
83
+ * Ruler.before(beforeName, ruleName, fn [, options])
84
+ * - beforeName (String): new rule will be added before this one.
85
+ * - ruleName (String): name of added rule.
86
+ * - fn (Function): rule function.
87
+ * - options (Object): rule options (not mandatory).
88
+ *
89
+ * Add new rule to chain before one with given name. See also
90
+ * [[Ruler.after]], [[Ruler.push]].
91
+ *
92
+ * ##### Options:
93
+ *
94
+ * - __alt__ - array with names of "alternate" chains.
95
+ *
96
+ * ##### Example
97
+ *
98
+ * ```javascript
99
+ * var md = require('markdown-it')();
100
+ *
101
+ * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
102
+ * //...
103
+ * });
104
+ * ```
105
+ **/
106
+ Ruler.prototype.before = function(beforeName, ruleName, fn, options) {
107
+ const index = this.__find__(beforeName);
108
+ const opt = options || {};
109
+ if (index === -1) throw new Error("Parser rule not found: " + beforeName);
110
+ this.__rules__.splice(index, 0, {
111
+ name: ruleName,
112
+ enabled: true,
113
+ fn,
114
+ alt: opt.alt || []
115
+ });
116
+ this.__cache__ = null;
117
+ };
118
+ /**
119
+ * Ruler.after(afterName, ruleName, fn [, options])
120
+ * - afterName (String): new rule will be added after this one.
121
+ * - ruleName (String): name of added rule.
122
+ * - fn (Function): rule function.
123
+ * - options (Object): rule options (not mandatory).
124
+ *
125
+ * Add new rule to chain after one with given name. See also
126
+ * [[Ruler.before]], [[Ruler.push]].
127
+ *
128
+ * ##### Options:
129
+ *
130
+ * - __alt__ - array with names of "alternate" chains.
131
+ *
132
+ * ##### Example
133
+ *
134
+ * ```javascript
135
+ * var md = require('markdown-it')();
136
+ *
137
+ * md.inline.ruler.after('text', 'my_rule', function replace(state) {
138
+ * //...
139
+ * });
140
+ * ```
141
+ **/
142
+ Ruler.prototype.after = function(afterName, ruleName, fn, options) {
143
+ const index = this.__find__(afterName);
144
+ const opt = options || {};
145
+ if (index === -1) throw new Error("Parser rule not found: " + afterName);
146
+ this.__rules__.splice(index + 1, 0, {
147
+ name: ruleName,
148
+ enabled: true,
149
+ fn,
150
+ alt: opt.alt || []
151
+ });
152
+ this.__cache__ = null;
153
+ };
154
+ /**
155
+ * Ruler.push(ruleName, fn [, options])
156
+ * - ruleName (String): name of added rule.
157
+ * - fn (Function): rule function.
158
+ * - options (Object): rule options (not mandatory).
159
+ *
160
+ * Push new rule to the end of chain. See also
161
+ * [[Ruler.before]], [[Ruler.after]].
162
+ *
163
+ * ##### Options:
164
+ *
165
+ * - __alt__ - array with names of "alternate" chains.
166
+ *
167
+ * ##### Example
168
+ *
169
+ * ```javascript
170
+ * var md = require('markdown-it')();
171
+ *
172
+ * md.core.ruler.push('my_rule', function replace(state) {
173
+ * //...
174
+ * });
175
+ * ```
176
+ **/
177
+ Ruler.prototype.push = function(ruleName, fn, options) {
178
+ const opt = options || {};
179
+ this.__rules__.push({
180
+ name: ruleName,
181
+ enabled: true,
182
+ fn,
183
+ alt: opt.alt || []
184
+ });
185
+ this.__cache__ = null;
186
+ };
187
+ /**
188
+ * Ruler.enable(list [, ignoreInvalid]) -> Array
189
+ * - list (String|Array): list of rule names to enable.
190
+ * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
191
+ *
192
+ * Enable rules with given names. If any rule name not found - throw Error.
193
+ * Errors can be disabled by second param.
194
+ *
195
+ * Returns list of found rule names (if no exception happened).
196
+ *
197
+ * See also [[Ruler.disable]], [[Ruler.enableOnly]].
198
+ **/
199
+ Ruler.prototype.enable = function(list, ignoreInvalid) {
200
+ if (!Array.isArray(list)) list = [list];
201
+ const result = [];
202
+ list.forEach(function(name) {
203
+ const idx = this.__find__(name);
204
+ if (idx < 0) {
205
+ if (ignoreInvalid) return;
206
+ throw new Error("Rules manager: invalid rule name " + name);
207
+ }
208
+ this.__rules__[idx].enabled = true;
209
+ result.push(name);
210
+ }, this);
211
+ this.__cache__ = null;
212
+ return result;
213
+ };
214
+ /**
215
+ * Ruler.enableOnly(list [, ignoreInvalid])
216
+ * - list (String|Array): list of rule names to enable (whitelist).
217
+ * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
218
+ *
219
+ * Enable rules with given names, and disable everything else. If any rule name
220
+ * not found - throw Error. Errors can be disabled by second param.
221
+ *
222
+ * See also [[Ruler.disable]], [[Ruler.enable]].
223
+ **/
224
+ Ruler.prototype.enableOnly = function(list, ignoreInvalid) {
225
+ if (!Array.isArray(list)) list = [list];
226
+ this.__rules__.forEach(function(rule) {
227
+ rule.enabled = false;
228
+ });
229
+ this.enable(list, ignoreInvalid);
230
+ };
231
+ /**
232
+ * Ruler.disable(list [, ignoreInvalid]) -> Array
233
+ * - list (String|Array): list of rule names to disable.
234
+ * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
235
+ *
236
+ * Disable rules with given names. If any rule name not found - throw Error.
237
+ * Errors can be disabled by second param.
238
+ *
239
+ * Returns list of found rule names (if no exception happened).
240
+ *
241
+ * See also [[Ruler.enable]], [[Ruler.enableOnly]].
242
+ **/
243
+ Ruler.prototype.disable = function(list, ignoreInvalid) {
244
+ if (!Array.isArray(list)) list = [list];
245
+ const result = [];
246
+ list.forEach(function(name) {
247
+ const idx = this.__find__(name);
248
+ if (idx < 0) {
249
+ if (ignoreInvalid) return;
250
+ throw new Error("Rules manager: invalid rule name " + name);
251
+ }
252
+ this.__rules__[idx].enabled = false;
253
+ result.push(name);
254
+ }, this);
255
+ this.__cache__ = null;
256
+ return result;
257
+ };
258
+ /**
259
+ * Ruler.getRules(chainName) -> Array
260
+ *
261
+ * Return array of active functions (rules) for given chain name. It analyzes
262
+ * rules configuration, compiles caches if not exists and returns result.
263
+ *
264
+ * Default chain name is `''` (empty string). It can't be skipped. That's
265
+ * done intentionally, to keep signature monomorphic for high speed.
266
+ **/
267
+ Ruler.prototype.getRules = function(chainName) {
268
+ if (this.__cache__ === null) this.__compile__();
269
+ return this.__cache__[chainName] || [];
270
+ };
271
+
272
+ //#endregion
273
+ export { Ruler as default };
274
+ //# sourceMappingURL=ruler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruler.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs"],"sourcesContent":["/**\n * class Ruler\n *\n * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and\n * [[MarkdownIt#inline]] to manage sequences of functions (rules):\n *\n * - keep rules in defined order\n * - assign the name to each rule\n * - enable/disable rules\n * - add/replace rules\n * - allow assign rules to additional named chains (in the same)\n * - cacheing lists of active rules\n *\n * You will not need use this class directly until write plugins. For simple\n * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and\n * [[MarkdownIt.use]].\n **/\n\n/**\n * new Ruler()\n **/\nfunction Ruler () {\n // List of added rules. Each element is:\n //\n // {\n // name: XXX,\n // enabled: Boolean,\n // fn: Function(),\n // alt: [ name2, name3 ]\n // }\n //\n this.__rules__ = []\n\n // Cached rule chains.\n //\n // First level - chain name, '' for default.\n // Second level - diginal anchor for fast filtering by charcodes.\n //\n this.__cache__ = null\n}\n\n// Helper methods, should not be used directly\n\n// Find rule index by name\n//\nRuler.prototype.__find__ = function (name) {\n for (let i = 0; i < this.__rules__.length; i++) {\n if (this.__rules__[i].name === name) {\n return i\n }\n }\n return -1\n}\n\n// Build rules lookup cache\n//\nRuler.prototype.__compile__ = function () {\n const self = this\n const chains = ['']\n\n // collect unique names\n self.__rules__.forEach(function (rule) {\n if (!rule.enabled) { return }\n\n rule.alt.forEach(function (altName) {\n if (chains.indexOf(altName) < 0) {\n chains.push(altName)\n }\n })\n })\n\n self.__cache__ = {}\n\n chains.forEach(function (chain) {\n self.__cache__[chain] = []\n self.__rules__.forEach(function (rule) {\n if (!rule.enabled) { return }\n\n if (chain && rule.alt.indexOf(chain) < 0) { return }\n\n self.__cache__[chain].push(rule.fn)\n })\n })\n}\n\n/**\n * Ruler.at(name, fn [, options])\n * - name (String): rule name to replace.\n * - fn (Function): new rule function.\n * - options (Object): new rule options (not mandatory).\n *\n * Replace rule by name with new function & options. Throws error if name not\n * found.\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * Replace existing typographer replacement rule with new one:\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.core.ruler.at('replacements', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.at = function (name, fn, options) {\n const index = this.__find__(name)\n const opt = options || {}\n\n if (index === -1) { throw new Error('Parser rule not found: ' + name) }\n\n this.__rules__[index].fn = fn\n this.__rules__[index].alt = opt.alt || []\n this.__cache__ = null\n}\n\n/**\n * Ruler.before(beforeName, ruleName, fn [, options])\n * - beforeName (String): new rule will be added before this one.\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Add new rule to chain before one with given name. See also\n * [[Ruler.after]], [[Ruler.push]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.before = function (beforeName, ruleName, fn, options) {\n const index = this.__find__(beforeName)\n const opt = options || {}\n\n if (index === -1) { throw new Error('Parser rule not found: ' + beforeName) }\n\n this.__rules__.splice(index, 0, {\n name: ruleName,\n enabled: true,\n fn,\n alt: opt.alt || []\n })\n\n this.__cache__ = null\n}\n\n/**\n * Ruler.after(afterName, ruleName, fn [, options])\n * - afterName (String): new rule will be added after this one.\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Add new rule to chain after one with given name. See also\n * [[Ruler.before]], [[Ruler.push]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.inline.ruler.after('text', 'my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.after = function (afterName, ruleName, fn, options) {\n const index = this.__find__(afterName)\n const opt = options || {}\n\n if (index === -1) { throw new Error('Parser rule not found: ' + afterName) }\n\n this.__rules__.splice(index + 1, 0, {\n name: ruleName,\n enabled: true,\n fn,\n alt: opt.alt || []\n })\n\n this.__cache__ = null\n}\n\n/**\n * Ruler.push(ruleName, fn [, options])\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Push new rule to the end of chain. See also\n * [[Ruler.before]], [[Ruler.after]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.core.ruler.push('my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\nRuler.prototype.push = function (ruleName, fn, options) {\n const opt = options || {}\n\n this.__rules__.push({\n name: ruleName,\n enabled: true,\n fn,\n alt: opt.alt || []\n })\n\n this.__cache__ = null\n}\n\n/**\n * Ruler.enable(list [, ignoreInvalid]) -> Array\n * - list (String|Array): list of rule names to enable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable rules with given names. If any rule name not found - throw Error.\n * Errors can be disabled by second param.\n *\n * Returns list of found rule names (if no exception happened).\n *\n * See also [[Ruler.disable]], [[Ruler.enableOnly]].\n **/\nRuler.prototype.enable = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) { list = [list] }\n\n const result = []\n\n // Search by name and enable\n list.forEach(function (name) {\n const idx = this.__find__(name)\n\n if (idx < 0) {\n if (ignoreInvalid) { return }\n throw new Error('Rules manager: invalid rule name ' + name)\n }\n this.__rules__[idx].enabled = true\n result.push(name)\n }, this)\n\n this.__cache__ = null\n return result\n}\n\n/**\n * Ruler.enableOnly(list [, ignoreInvalid])\n * - list (String|Array): list of rule names to enable (whitelist).\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable rules with given names, and disable everything else. If any rule name\n * not found - throw Error. Errors can be disabled by second param.\n *\n * See also [[Ruler.disable]], [[Ruler.enable]].\n **/\nRuler.prototype.enableOnly = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) { list = [list] }\n\n this.__rules__.forEach(function (rule) { rule.enabled = false })\n\n this.enable(list, ignoreInvalid)\n}\n\n/**\n * Ruler.disable(list [, ignoreInvalid]) -> Array\n * - list (String|Array): list of rule names to disable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Disable rules with given names. If any rule name not found - throw Error.\n * Errors can be disabled by second param.\n *\n * Returns list of found rule names (if no exception happened).\n *\n * See also [[Ruler.enable]], [[Ruler.enableOnly]].\n **/\nRuler.prototype.disable = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) { list = [list] }\n\n const result = []\n\n // Search by name and disable\n list.forEach(function (name) {\n const idx = this.__find__(name)\n\n if (idx < 0) {\n if (ignoreInvalid) { return }\n throw new Error('Rules manager: invalid rule name ' + name)\n }\n this.__rules__[idx].enabled = false\n result.push(name)\n }, this)\n\n this.__cache__ = null\n return result\n}\n\n/**\n * Ruler.getRules(chainName) -> Array\n *\n * Return array of active functions (rules) for given chain name. It analyzes\n * rules configuration, compiles caches if not exists and returns result.\n *\n * Default chain name is `''` (empty string). It can't be skipped. That's\n * done intentionally, to keep signature monomorphic for high speed.\n **/\nRuler.prototype.getRules = function (chainName) {\n if (this.__cache__ === null) {\n this.__compile__()\n }\n\n // Chain can be empty, if rules disabled. But we still have to return Array.\n return this.__cache__[chainName] || []\n}\n\nexport default Ruler\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,QAAS;AAUhB,MAAK,YAAY,EAAE;AAOnB,MAAK,YAAY;;AAOnB,MAAM,UAAU,WAAW,SAAU,MAAM;AACzC,MAAK,IAAI,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,IACzC,KAAI,KAAK,UAAU,GAAG,SAAS,KAC7B,QAAO;AAGX,QAAO;;AAKT,MAAM,UAAU,cAAc,WAAY;CACxC,MAAM,OAAO;CACb,MAAM,SAAS,CAAC,GAAG;AAGnB,MAAK,UAAU,QAAQ,SAAU,MAAM;AACrC,MAAI,CAAC,KAAK,QAAW;AAErB,OAAK,IAAI,QAAQ,SAAU,SAAS;AAClC,OAAI,OAAO,QAAQ,QAAQ,GAAG,EAC5B,QAAO,KAAK,QAAQ;IAEtB;GACF;AAEF,MAAK,YAAY,EAAE;AAEnB,QAAO,QAAQ,SAAU,OAAO;AAC9B,OAAK,UAAU,SAAS,EAAE;AAC1B,OAAK,UAAU,QAAQ,SAAU,MAAM;AACrC,OAAI,CAAC,KAAK,QAAW;AAErB,OAAI,SAAS,KAAK,IAAI,QAAQ,MAAM,GAAG,EAAK;AAE5C,QAAK,UAAU,OAAO,KAAK,KAAK,GAAG;IACnC;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BJ,MAAM,UAAU,KAAK,SAAU,MAAM,IAAI,SAAS;CAChD,MAAM,QAAQ,KAAK,SAAS,KAAK;CACjC,MAAM,MAAM,WAAW,EAAE;AAEzB,KAAI,UAAU,GAAM,OAAM,IAAI,MAAM,4BAA4B,KAAK;AAErE,MAAK,UAAU,OAAO,KAAK;AAC3B,MAAK,UAAU,OAAO,MAAM,IAAI,OAAO,EAAE;AACzC,MAAK,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BnB,MAAM,UAAU,SAAS,SAAU,YAAY,UAAU,IAAI,SAAS;CACpE,MAAM,QAAQ,KAAK,SAAS,WAAW;CACvC,MAAM,MAAM,WAAW,EAAE;AAEzB,KAAI,UAAU,GAAM,OAAM,IAAI,MAAM,4BAA4B,WAAW;AAE3E,MAAK,UAAU,OAAO,OAAO,GAAG;EAC9B,MAAM;EACN,SAAS;EACT;EACA,KAAK,IAAI,OAAO,EAAE;EACnB,CAAC;AAEF,MAAK,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BnB,MAAM,UAAU,QAAQ,SAAU,WAAW,UAAU,IAAI,SAAS;CAClE,MAAM,QAAQ,KAAK,SAAS,UAAU;CACtC,MAAM,MAAM,WAAW,EAAE;AAEzB,KAAI,UAAU,GAAM,OAAM,IAAI,MAAM,4BAA4B,UAAU;AAE1E,MAAK,UAAU,OAAO,QAAQ,GAAG,GAAG;EAClC,MAAM;EACN,SAAS;EACT;EACA,KAAK,IAAI,OAAO,EAAE;EACnB,CAAC;AAEF,MAAK,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;AA0BnB,MAAM,UAAU,OAAO,SAAU,UAAU,IAAI,SAAS;CACtD,MAAM,MAAM,WAAW,EAAE;AAEzB,MAAK,UAAU,KAAK;EAClB,MAAM;EACN,SAAS;EACT;EACA,KAAK,IAAI,OAAO,EAAE;EACnB,CAAC;AAEF,MAAK,YAAY;;;;;;;;;;;;;;AAenB,MAAM,UAAU,SAAS,SAAU,MAAM,eAAe;AACtD,KAAI,CAAC,MAAM,QAAQ,KAAK,CAAI,QAAO,CAAC,KAAK;CAEzC,MAAM,SAAS,EAAE;AAGjB,MAAK,QAAQ,SAAU,MAAM;EAC3B,MAAM,MAAM,KAAK,SAAS,KAAK;AAE/B,MAAI,MAAM,GAAG;AACX,OAAI,cAAiB;AACrB,SAAM,IAAI,MAAM,sCAAsC,KAAK;;AAE7D,OAAK,UAAU,KAAK,UAAU;AAC9B,SAAO,KAAK,KAAK;IAChB,KAAK;AAER,MAAK,YAAY;AACjB,QAAO;;;;;;;;;;;;AAaT,MAAM,UAAU,aAAa,SAAU,MAAM,eAAe;AAC1D,KAAI,CAAC,MAAM,QAAQ,KAAK,CAAI,QAAO,CAAC,KAAK;AAEzC,MAAK,UAAU,QAAQ,SAAU,MAAM;AAAE,OAAK,UAAU;GAAQ;AAEhE,MAAK,OAAO,MAAM,cAAc;;;;;;;;;;;;;;AAelC,MAAM,UAAU,UAAU,SAAU,MAAM,eAAe;AACvD,KAAI,CAAC,MAAM,QAAQ,KAAK,CAAI,QAAO,CAAC,KAAK;CAEzC,MAAM,SAAS,EAAE;AAGjB,MAAK,QAAQ,SAAU,MAAM;EAC3B,MAAM,MAAM,KAAK,SAAS,KAAK;AAE/B,MAAI,MAAM,GAAG;AACX,OAAI,cAAiB;AACrB,SAAM,IAAI,MAAM,sCAAsC,KAAK;;AAE7D,OAAK,UAAU,KAAK,UAAU;AAC9B,SAAO,KAAK,KAAK;IAChB,KAAK;AAER,MAAK,YAAY;AACjB,QAAO;;;;;;;;;;;AAYT,MAAM,UAAU,WAAW,SAAU,WAAW;AAC9C,KAAI,KAAK,cAAc,KACrB,MAAK,aAAa;AAIpB,QAAO,KAAK,UAAU,cAAc,EAAE"}
@@ -0,0 +1,107 @@
1
+ const require_utils = require('../common/utils.cjs');
2
+
3
+ //#region ../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs
4
+ function blockquote(state, startLine, endLine, silent) {
5
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
6
+ let max = state.eMarks[startLine];
7
+ const oldLineMax = state.lineMax;
8
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
9
+ if (state.src.charCodeAt(pos) !== 62) return false;
10
+ if (silent) return true;
11
+ const oldBMarks = [];
12
+ const oldBSCount = [];
13
+ const oldSCount = [];
14
+ const oldTShift = [];
15
+ const terminatorRules = state.md.block.ruler.getRules("blockquote");
16
+ const oldParentType = state.parentType;
17
+ state.parentType = "blockquote";
18
+ let lastLineEmpty = false;
19
+ let nextLine;
20
+ for (nextLine = startLine; nextLine < endLine; nextLine++) {
21
+ const isOutdented = state.sCount[nextLine] < state.blkIndent;
22
+ pos = state.bMarks[nextLine] + state.tShift[nextLine];
23
+ max = state.eMarks[nextLine];
24
+ if (pos >= max) break;
25
+ if (state.src.charCodeAt(pos++) === 62 && !isOutdented) {
26
+ let initial = state.sCount[nextLine] + 1;
27
+ let spaceAfterMarker;
28
+ let adjustTab;
29
+ if (state.src.charCodeAt(pos) === 32) {
30
+ pos++;
31
+ initial++;
32
+ adjustTab = false;
33
+ spaceAfterMarker = true;
34
+ } else if (state.src.charCodeAt(pos) === 9) {
35
+ spaceAfterMarker = true;
36
+ if ((state.bsCount[nextLine] + initial) % 4 === 3) {
37
+ pos++;
38
+ initial++;
39
+ adjustTab = false;
40
+ } else adjustTab = true;
41
+ } else spaceAfterMarker = false;
42
+ let offset = initial;
43
+ oldBMarks.push(state.bMarks[nextLine]);
44
+ state.bMarks[nextLine] = pos;
45
+ while (pos < max) {
46
+ const ch = state.src.charCodeAt(pos);
47
+ if (require_utils.isSpace(ch)) if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
48
+ else offset++;
49
+ else break;
50
+ pos++;
51
+ }
52
+ lastLineEmpty = pos >= max;
53
+ oldBSCount.push(state.bsCount[nextLine]);
54
+ state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);
55
+ oldSCount.push(state.sCount[nextLine]);
56
+ state.sCount[nextLine] = offset - initial;
57
+ oldTShift.push(state.tShift[nextLine]);
58
+ state.tShift[nextLine] = pos - state.bMarks[nextLine];
59
+ continue;
60
+ }
61
+ if (lastLineEmpty) break;
62
+ let terminate = false;
63
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
64
+ terminate = true;
65
+ break;
66
+ }
67
+ if (terminate) {
68
+ state.lineMax = nextLine;
69
+ if (state.blkIndent !== 0) {
70
+ oldBMarks.push(state.bMarks[nextLine]);
71
+ oldBSCount.push(state.bsCount[nextLine]);
72
+ oldTShift.push(state.tShift[nextLine]);
73
+ oldSCount.push(state.sCount[nextLine]);
74
+ state.sCount[nextLine] -= state.blkIndent;
75
+ }
76
+ break;
77
+ }
78
+ oldBMarks.push(state.bMarks[nextLine]);
79
+ oldBSCount.push(state.bsCount[nextLine]);
80
+ oldTShift.push(state.tShift[nextLine]);
81
+ oldSCount.push(state.sCount[nextLine]);
82
+ state.sCount[nextLine] = -1;
83
+ }
84
+ const oldIndent = state.blkIndent;
85
+ state.blkIndent = 0;
86
+ const token_o = state.push("blockquote_open", "blockquote", 1);
87
+ token_o.markup = ">";
88
+ const lines = [startLine, 0];
89
+ token_o.map = lines;
90
+ state.md.block.tokenize(state, startLine, nextLine);
91
+ const token_c = state.push("blockquote_close", "blockquote", -1);
92
+ token_c.markup = ">";
93
+ state.lineMax = oldLineMax;
94
+ state.parentType = oldParentType;
95
+ lines[1] = state.line;
96
+ for (let i = 0; i < oldTShift.length; i++) {
97
+ state.bMarks[i + startLine] = oldBMarks[i];
98
+ state.tShift[i + startLine] = oldTShift[i];
99
+ state.sCount[i + startLine] = oldSCount[i];
100
+ state.bsCount[i + startLine] = oldBSCount[i];
101
+ }
102
+ state.blkIndent = oldIndent;
103
+ return true;
104
+ }
105
+
106
+ //#endregion
107
+ exports.default = blockquote;