@alexlit/lint-kit 110.1.0 → 111.0.0

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 (324) hide show
  1. package/.eslintrc.cjs +2 -8
  2. package/package.json +1 -1
  3. package/packages/config-commitlint/package.json +2 -2
  4. package/packages/config-eslint/README.md +22 -46
  5. package/packages/config-eslint/index.js +344 -213
  6. package/packages/config-eslint/package.json +6 -4
  7. package/packages/config-eslint/plugins/array-func.js +0 -1
  8. package/packages/config-eslint/plugins/compat.js +0 -1
  9. package/packages/config-eslint/plugins/decorator-position.js +0 -1
  10. package/packages/config-eslint/plugins/eslint-comments.js +0 -1
  11. package/packages/config-eslint/plugins/etc.js +0 -1
  12. package/packages/config-eslint/plugins/ext.js +0 -1
  13. package/packages/config-eslint/plugins/filenames.js +0 -1
  14. package/packages/config-eslint/plugins/import.js +0 -4
  15. package/packages/config-eslint/plugins/jsdoc.js +0 -1
  16. package/packages/config-eslint/plugins/jsx-a11y.js +0 -1
  17. package/packages/config-eslint/plugins/lit-a11y.js +0 -1
  18. package/packages/config-eslint/plugins/lit.js +0 -1
  19. package/packages/config-eslint/plugins/more.js +0 -1
  20. package/packages/config-eslint/plugins/no-await-in-promise.js +0 -1
  21. package/packages/config-eslint/plugins/no-constructor-bind.js +0 -1
  22. package/packages/config-eslint/plugins/no-explicit-type-exports.js +0 -1
  23. package/packages/config-eslint/plugins/no-loops.js +0 -1
  24. package/packages/config-eslint/plugins/no-secrets.js +0 -1
  25. package/packages/config-eslint/plugins/no-use-extend-native.js +0 -1
  26. package/packages/config-eslint/plugins/{optional/node.js → node.js} +0 -1
  27. package/packages/config-eslint/plugins/prettier.js +0 -1
  28. package/packages/config-eslint/plugins/promise.js +0 -1
  29. package/packages/config-eslint/plugins/regexp.js +0 -1
  30. package/packages/config-eslint/plugins/{optional/security.js → security.js} +0 -1
  31. package/packages/config-eslint/plugins/simple-import-sort.js +0 -1
  32. package/packages/config-eslint/plugins/sonar.js +0 -1
  33. package/packages/config-eslint/plugins/sort-class-members.js +0 -1
  34. package/packages/config-eslint/plugins/sort-destructure-keys.js +0 -1
  35. package/packages/config-eslint/plugins/sort-keys-fix.js +0 -1
  36. package/packages/config-eslint/plugins/spellcheck.js +2 -12
  37. package/packages/config-eslint/plugins/sql.js +0 -1
  38. package/packages/config-eslint/plugins/tanstack-query.js +0 -1
  39. package/packages/config-eslint/plugins/testing-library.js +0 -1
  40. package/packages/config-eslint/plugins/typescript-sort-keys.js +0 -1
  41. package/packages/config-eslint/plugins/{typescript/index.js → typescript.js} +3 -4
  42. package/packages/config-eslint/plugins/unicorn.js +0 -1
  43. package/packages/config-eslint/plugins/unused-imports.js +0 -1
  44. package/packages/config-eslint/plugins/vitest.js +0 -1
  45. package/packages/config-eslint/plugins/vue-i18n.js +0 -1
  46. package/packages/config-eslint/plugins/vue.js +1 -10
  47. package/packages/config-eslint/plugins/vuejs-accessibility.js +0 -1
  48. package/packages/config-eslint/plugins/wc.js +0 -1
  49. package/packages/config-eslint/plugins/write-good-comments.js +0 -2
  50. package/packages/config-eslint/utils/extend-spell-checker.js +23 -0
  51. package/packages/config-markdownlint/node_modules/entities/LICENSE +11 -0
  52. package/packages/config-markdownlint/node_modules/entities/lib/decode.d.ts +211 -0
  53. package/packages/config-markdownlint/node_modules/entities/lib/decode.d.ts.map +1 -0
  54. package/packages/config-markdownlint/node_modules/entities/lib/decode.js +536 -0
  55. package/packages/config-markdownlint/node_modules/entities/lib/decode.js.map +1 -0
  56. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  57. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
  58. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.js +76 -0
  59. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  60. package/packages/config-markdownlint/node_modules/entities/lib/encode.d.ts +22 -0
  61. package/packages/config-markdownlint/node_modules/entities/lib/encode.d.ts.map +1 -0
  62. package/packages/config-markdownlint/node_modules/entities/lib/encode.js +77 -0
  63. package/packages/config-markdownlint/node_modules/entities/lib/encode.js.map +1 -0
  64. package/packages/config-markdownlint/node_modules/entities/lib/escape.d.ts +43 -0
  65. package/packages/config-markdownlint/node_modules/entities/lib/escape.d.ts.map +1 -0
  66. package/packages/config-markdownlint/node_modules/entities/lib/escape.js +122 -0
  67. package/packages/config-markdownlint/node_modules/entities/lib/escape.js.map +1 -0
  68. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.d.ts +211 -0
  69. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
  70. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.js +496 -0
  71. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.js.map +1 -0
  72. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  73. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
  74. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
  75. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  76. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.d.ts +22 -0
  77. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
  78. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.js +69 -0
  79. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.js.map +1 -0
  80. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.d.ts +43 -0
  81. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
  82. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.js +116 -0
  83. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.js.map +1 -0
  84. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  85. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
  86. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  87. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  88. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  89. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
  90. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  91. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  92. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  93. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
  94. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
  95. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
  96. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.d.ts +96 -0
  97. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.d.ts.map +1 -0
  98. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.js +99 -0
  99. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.js.map +1 -0
  100. package/packages/config-markdownlint/node_modules/entities/lib/esm/package.json +1 -0
  101. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  102. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
  103. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.js +9 -0
  104. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  105. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  106. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
  107. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
  108. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  109. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  110. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
  111. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.js +12 -0
  112. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  113. package/packages/config-markdownlint/node_modules/entities/lib/index.d.ts +96 -0
  114. package/packages/config-markdownlint/node_modules/entities/lib/index.d.ts.map +1 -0
  115. package/packages/config-markdownlint/node_modules/entities/lib/index.js +126 -0
  116. package/packages/config-markdownlint/node_modules/entities/lib/index.js.map +1 -0
  117. package/packages/config-markdownlint/node_modules/entities/package.json +90 -0
  118. package/packages/config-markdownlint/node_modules/entities/readme.md +122 -0
  119. package/packages/config-markdownlint/node_modules/markdown-it/LICENSE +22 -0
  120. package/packages/config-markdownlint/node_modules/markdown-it/README.md +324 -0
  121. package/packages/config-markdownlint/node_modules/markdown-it/bin/markdown-it.mjs +107 -0
  122. package/packages/config-markdownlint/node_modules/markdown-it/dist/index.cjs.js +5540 -0
  123. package/packages/config-markdownlint/node_modules/markdown-it/dist/markdown-it.js +6963 -0
  124. package/packages/config-markdownlint/node_modules/markdown-it/dist/markdown-it.min.js +2 -0
  125. package/packages/config-markdownlint/node_modules/markdown-it/index.mjs +1 -0
  126. package/packages/config-markdownlint/node_modules/markdown-it/lib/common/html_blocks.mjs +67 -0
  127. package/packages/config-markdownlint/node_modules/markdown-it/lib/common/html_re.mjs +25 -0
  128. package/packages/config-markdownlint/node_modules/markdown-it/lib/common/utils.mjs +304 -0
  129. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/index.mjs +11 -0
  130. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +77 -0
  131. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +49 -0
  132. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +66 -0
  133. package/packages/config-markdownlint/node_modules/markdown-it/lib/index.mjs +565 -0
  134. package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_block.mjs +134 -0
  135. package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_core.mjs +62 -0
  136. package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
  137. package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/commonmark.mjs +88 -0
  138. package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/default.mjs +47 -0
  139. package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/zero.mjs +70 -0
  140. package/packages/config-markdownlint/node_modules/markdown-it/lib/renderer.mjs +322 -0
  141. package/packages/config-markdownlint/node_modules/markdown-it/lib/ruler.mjs +340 -0
  142. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/blockquote.mjs +209 -0
  143. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/code.mjs +30 -0
  144. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/fence.mjs +94 -0
  145. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/heading.mjs +51 -0
  146. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/hr.mjs +40 -0
  147. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/html_block.mjs +69 -0
  148. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/lheading.mjs +82 -0
  149. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/list.mjs +331 -0
  150. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/paragraph.mjs +46 -0
  151. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/reference.mjs +212 -0
  152. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/state_block.mjs +220 -0
  153. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/table.mjs +228 -0
  154. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/block.mjs +13 -0
  155. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/inline.mjs +11 -0
  156. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/linkify.mjs +134 -0
  157. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/normalize.mjs +17 -0
  158. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/replacements.mjs +101 -0
  159. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +193 -0
  160. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/state_core.mjs +17 -0
  161. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/text_join.mjs +43 -0
  162. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/autolink.mjs +72 -0
  163. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/backticks.mjs +60 -0
  164. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +124 -0
  165. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +123 -0
  166. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/entity.mjs +51 -0
  167. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/escape.mjs +69 -0
  168. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +38 -0
  169. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +50 -0
  170. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/image.mjs +138 -0
  171. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/link.mjs +139 -0
  172. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/linkify.mjs +56 -0
  173. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/newline.mjs +42 -0
  174. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +123 -0
  175. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +127 -0
  176. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/text.mjs +86 -0
  177. package/packages/config-markdownlint/node_modules/markdown-it/lib/token.mjs +191 -0
  178. package/packages/config-markdownlint/node_modules/markdown-it/package.json +92 -0
  179. package/packages/config-markdownlint/node_modules/markdownlint/CHANGELOG.md +446 -0
  180. package/packages/config-markdownlint/node_modules/markdownlint/CONTRIBUTING.md +93 -0
  181. package/packages/config-markdownlint/node_modules/markdownlint/LICENSE +21 -0
  182. package/packages/config-markdownlint/node_modules/markdownlint/README.md +1032 -0
  183. package/packages/config-markdownlint/node_modules/markdownlint/demo/markdownlint-browser.js +7116 -0
  184. package/packages/config-markdownlint/node_modules/markdownlint/doc/CustomRules.md +383 -0
  185. package/packages/config-markdownlint/node_modules/markdownlint/doc/Prettier.md +27 -0
  186. package/packages/config-markdownlint/node_modules/markdownlint/doc/ReleaseProcess.md +20 -0
  187. package/packages/config-markdownlint/node_modules/markdownlint/doc/Rules.md +2462 -0
  188. package/packages/config-markdownlint/node_modules/markdownlint/doc/md001.md +37 -0
  189. package/packages/config-markdownlint/node_modules/markdownlint/doc/md003.md +59 -0
  190. package/packages/config-markdownlint/node_modules/markdownlint/doc/md004.md +49 -0
  191. package/packages/config-markdownlint/node_modules/markdownlint/doc/md005.md +53 -0
  192. package/packages/config-markdownlint/node_modules/markdownlint/doc/md007.md +52 -0
  193. package/packages/config-markdownlint/node_modules/markdownlint/doc/md009.md +51 -0
  194. package/packages/config-markdownlint/node_modules/markdownlint/doc/md010.md +56 -0
  195. package/packages/config-markdownlint/node_modules/markdownlint/doc/md011.md +30 -0
  196. package/packages/config-markdownlint/node_modules/markdownlint/doc/md012.md +38 -0
  197. package/packages/config-markdownlint/node_modules/markdownlint/doc/md013.md +58 -0
  198. package/packages/config-markdownlint/node_modules/markdownlint/doc/md014.md +54 -0
  199. package/packages/config-markdownlint/node_modules/markdownlint/doc/md018.md +27 -0
  200. package/packages/config-markdownlint/node_modules/markdownlint/doc/md019.md +28 -0
  201. package/packages/config-markdownlint/node_modules/markdownlint/doc/md020.md +29 -0
  202. package/packages/config-markdownlint/node_modules/markdownlint/doc/md021.md +31 -0
  203. package/packages/config-markdownlint/node_modules/markdownlint/doc/md022.md +52 -0
  204. package/packages/config-markdownlint/node_modules/markdownlint/doc/md023.md +33 -0
  205. package/packages/config-markdownlint/node_modules/markdownlint/doc/md024.md +44 -0
  206. package/packages/config-markdownlint/node_modules/markdownlint/doc/md025.md +49 -0
  207. package/packages/config-markdownlint/node_modules/markdownlint/doc/md026.md +40 -0
  208. package/packages/config-markdownlint/node_modules/markdownlint/doc/md027.md +24 -0
  209. package/packages/config-markdownlint/node_modules/markdownlint/doc/md028.md +40 -0
  210. package/packages/config-markdownlint/node_modules/markdownlint/doc/md029.md +98 -0
  211. package/packages/config-markdownlint/node_modules/markdownlint/doc/md030.md +82 -0
  212. package/packages/config-markdownlint/node_modules/markdownlint/doc/md031.md +50 -0
  213. package/packages/config-markdownlint/node_modules/markdownlint/doc/md032.md +55 -0
  214. package/packages/config-markdownlint/node_modules/markdownlint/doc/md033.md +27 -0
  215. package/packages/config-markdownlint/node_modules/markdownlint/doc/md034.md +50 -0
  216. package/packages/config-markdownlint/node_modules/markdownlint/doc/md035.md +42 -0
  217. package/packages/config-markdownlint/node_modules/markdownlint/doc/md036.md +45 -0
  218. package/packages/config-markdownlint/node_modules/markdownlint/doc/md037.md +37 -0
  219. package/packages/config-markdownlint/node_modules/markdownlint/doc/md038.md +40 -0
  220. package/packages/config-markdownlint/node_modules/markdownlint/doc/md039.md +21 -0
  221. package/packages/config-markdownlint/node_modules/markdownlint/doc/md040.md +52 -0
  222. package/packages/config-markdownlint/node_modules/markdownlint/doc/md041.md +49 -0
  223. package/packages/config-markdownlint/node_modules/markdownlint/doc/md042.md +32 -0
  224. package/packages/config-markdownlint/node_modules/markdownlint/doc/md043.md +69 -0
  225. package/packages/config-markdownlint/node_modules/markdownlint/doc/md044.md +35 -0
  226. package/packages/config-markdownlint/node_modules/markdownlint/doc/md045.md +40 -0
  227. package/packages/config-markdownlint/node_modules/markdownlint/doc/md046.md +40 -0
  228. package/packages/config-markdownlint/node_modules/markdownlint/doc/md047.md +34 -0
  229. package/packages/config-markdownlint/node_modules/markdownlint/doc/md048.md +41 -0
  230. package/packages/config-markdownlint/node_modules/markdownlint/doc/md049.md +35 -0
  231. package/packages/config-markdownlint/node_modules/markdownlint/doc/md050.md +35 -0
  232. package/packages/config-markdownlint/node_modules/markdownlint/doc/md051.md +87 -0
  233. package/packages/config-markdownlint/node_modules/markdownlint/doc/md052.md +40 -0
  234. package/packages/config-markdownlint/node_modules/markdownlint/doc/md053.md +38 -0
  235. package/packages/config-markdownlint/node_modules/markdownlint/doc/md054.md +100 -0
  236. package/packages/config-markdownlint/node_modules/markdownlint/doc/md055.md +54 -0
  237. package/packages/config-markdownlint/node_modules/markdownlint/doc/md056.md +37 -0
  238. package/packages/config-markdownlint/node_modules/markdownlint/helpers/LICENSE +21 -0
  239. package/packages/config-markdownlint/node_modules/markdownlint/helpers/README.md +72 -0
  240. package/packages/config-markdownlint/node_modules/markdownlint/helpers/helpers.js +1025 -0
  241. package/packages/config-markdownlint/node_modules/markdownlint/helpers/micromark.cjs +445 -0
  242. package/packages/config-markdownlint/node_modules/markdownlint/helpers/package.json +26 -0
  243. package/packages/config-markdownlint/node_modules/markdownlint/helpers/shared.js +10 -0
  244. package/packages/config-markdownlint/node_modules/markdownlint/lib/cache.js +21 -0
  245. package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration.d.ts +1178 -0
  246. package/packages/config-markdownlint/node_modules/markdownlint/lib/constants.js +14 -0
  247. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.d.ts +479 -0
  248. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.js +1550 -0
  249. package/packages/config-markdownlint/node_modules/markdownlint/lib/md001.js +25 -0
  250. package/packages/config-markdownlint/node_modules/markdownlint/lib/md003.js +45 -0
  251. package/packages/config-markdownlint/node_modules/markdownlint/lib/md004.js +79 -0
  252. package/packages/config-markdownlint/node_modules/markdownlint/lib/md005.js +81 -0
  253. package/packages/config-markdownlint/node_modules/markdownlint/lib/md007.js +92 -0
  254. package/packages/config-markdownlint/node_modules/markdownlint/lib/md009.js +89 -0
  255. package/packages/config-markdownlint/node_modules/markdownlint/lib/md010.js +63 -0
  256. package/packages/config-markdownlint/node_modules/markdownlint/lib/md011.js +49 -0
  257. package/packages/config-markdownlint/node_modules/markdownlint/lib/md012.js +35 -0
  258. package/packages/config-markdownlint/node_modules/markdownlint/lib/md013.js +99 -0
  259. package/packages/config-markdownlint/node_modules/markdownlint/lib/md014.js +57 -0
  260. package/packages/config-markdownlint/node_modules/markdownlint/lib/md018.js +38 -0
  261. package/packages/config-markdownlint/node_modules/markdownlint/lib/md019.js +42 -0
  262. package/packages/config-markdownlint/node_modules/markdownlint/lib/md020.js +65 -0
  263. package/packages/config-markdownlint/node_modules/markdownlint/lib/md021.js +65 -0
  264. package/packages/config-markdownlint/node_modules/markdownlint/lib/md022.js +116 -0
  265. package/packages/config-markdownlint/node_modules/markdownlint/lib/md023.js +41 -0
  266. package/packages/config-markdownlint/node_modules/markdownlint/lib/md024.js +45 -0
  267. package/packages/config-markdownlint/node_modules/markdownlint/lib/md025.js +35 -0
  268. package/packages/config-markdownlint/node_modules/markdownlint/lib/md026.js +54 -0
  269. package/packages/config-markdownlint/node_modules/markdownlint/lib/md027.js +42 -0
  270. package/packages/config-markdownlint/node_modules/markdownlint/lib/md028.js +47 -0
  271. package/packages/config-markdownlint/node_modules/markdownlint/lib/md029.js +70 -0
  272. package/packages/config-markdownlint/node_modules/markdownlint/lib/md030.js +66 -0
  273. package/packages/config-markdownlint/node_modules/markdownlint/lib/md031.js +43 -0
  274. package/packages/config-markdownlint/node_modules/markdownlint/lib/md032.js +76 -0
  275. package/packages/config-markdownlint/node_modules/markdownlint/lib/md033.js +46 -0
  276. package/packages/config-markdownlint/node_modules/markdownlint/lib/md034.js +105 -0
  277. package/packages/config-markdownlint/node_modules/markdownlint/lib/md035.js +31 -0
  278. package/packages/config-markdownlint/node_modules/markdownlint/lib/md036.js +50 -0
  279. package/packages/config-markdownlint/node_modules/markdownlint/lib/md037.js +99 -0
  280. package/packages/config-markdownlint/node_modules/markdownlint/lib/md038.js +106 -0
  281. package/packages/config-markdownlint/node_modules/markdownlint/lib/md039.js +71 -0
  282. package/packages/config-markdownlint/node_modules/markdownlint/lib/md040.js +42 -0
  283. package/packages/config-markdownlint/node_modules/markdownlint/lib/md041.js +37 -0
  284. package/packages/config-markdownlint/node_modules/markdownlint/lib/md042.js +53 -0
  285. package/packages/config-markdownlint/node_modules/markdownlint/lib/md043.js +67 -0
  286. package/packages/config-markdownlint/node_modules/markdownlint/lib/md044.js +115 -0
  287. package/packages/config-markdownlint/node_modules/markdownlint/lib/md045.js +67 -0
  288. package/packages/config-markdownlint/node_modules/markdownlint/lib/md046.js +40 -0
  289. package/packages/config-markdownlint/node_modules/markdownlint/lib/md047.js +31 -0
  290. package/packages/config-markdownlint/node_modules/markdownlint/lib/md048.js +43 -0
  291. package/packages/config-markdownlint/node_modules/markdownlint/lib/md049-md050.js +108 -0
  292. package/packages/config-markdownlint/node_modules/markdownlint/lib/md051.js +176 -0
  293. package/packages/config-markdownlint/node_modules/markdownlint/lib/md052.js +42 -0
  294. package/packages/config-markdownlint/node_modules/markdownlint/lib/md053.js +62 -0
  295. package/packages/config-markdownlint/node_modules/markdownlint/lib/md054.js +130 -0
  296. package/packages/config-markdownlint/node_modules/markdownlint/lib/md055.js +80 -0
  297. package/packages/config-markdownlint/node_modules/markdownlint/lib/md056.js +52 -0
  298. package/packages/config-markdownlint/node_modules/markdownlint/lib/rules.js +67 -0
  299. package/packages/config-markdownlint/node_modules/markdownlint/package.json +103 -0
  300. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.jsonc +304 -0
  301. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.yaml +272 -0
  302. package/packages/config-markdownlint/node_modules/markdownlint/schema/ValidatingConfiguration.md +28 -0
  303. package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema.json +1814 -0
  304. package/packages/config-markdownlint/node_modules/markdownlint/style/all.json +5 -0
  305. package/packages/config-markdownlint/node_modules/markdownlint/style/cirosantilli.json +22 -0
  306. package/packages/config-markdownlint/node_modules/markdownlint/style/prettier.json +26 -0
  307. package/packages/config-markdownlint/node_modules/markdownlint/style/relaxed.json +12 -0
  308. package/packages/config-markdownlint/node_modules/markdownlint-micromark/LICENSE +21 -0
  309. package/packages/config-markdownlint/node_modules/markdownlint-micromark/README.md +10 -0
  310. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-browser.js +2 -0
  311. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-html-browser.js +2 -0
  312. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.cjs +1 -0
  313. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.d.ts +1751 -0
  314. package/packages/config-markdownlint/node_modules/markdownlint-micromark/package.json +46 -0
  315. package/packages/config-markdownlint/package.json +2 -2
  316. package/packages/config-stylelint/README.md +1 -1
  317. package/packages/config-stylelint/index.js +2 -2
  318. package/packages/config-stylelint/package.json +2 -2
  319. package/packages/config-eslint/plugins/no-inferred-method-name.js +0 -8
  320. package/packages/config-eslint/plugins/nuxt.js +0 -10
  321. package/packages/config-eslint/plugins/quasar.js +0 -6
  322. /package/packages/config-eslint/{plugins/typescript/allow-boolean-property-list.const.js → constants/allow-boolean-property-list.js} +0 -0
  323. /package/packages/config-eslint/{plugins/typescript/boolean-prefixes.const.js → constants/boolean-prefixes.js} +0 -0
  324. /package/packages/config-eslint/{plugins/typescript/english-verbs.const.js → constants/english-verbs.js} +0 -0
@@ -0,0 +1,1751 @@
1
+ /**
2
+ * Attempt deals with several values, and tries to parse according to those
3
+ * values.
4
+ *
5
+ * If a value resulted in `ok`, it worked, the tokens that were made are used,
6
+ * and `ok` is switched to.
7
+ * If the result is `nok`, the attempt failed, so we revert to the original
8
+ * state, and `nok` is used.
9
+ *
10
+ * @param construct
11
+ * Construct(s) to try.
12
+ * @param ok
13
+ * State to move to when successful.
14
+ * @param nok
15
+ * State to move to when unsuccessful.
16
+ * @returns
17
+ * Next state.
18
+ */
19
+ declare type Attempt = (
20
+ construct: Array<Construct> | Construct | ConstructRecord,
21
+ ok: State,
22
+ nok?: State | undefined
23
+ ) => State
24
+
25
+ /**
26
+ * Generate a back label dynamically.
27
+ *
28
+ * For the following markdown:
29
+ *
30
+ * ```markdown
31
+ * Alpha[^micromark], bravo[^micromark], and charlie[^remark].
32
+ *
33
+ * [^remark]: things about remark
34
+ * [^micromark]: things about micromark
35
+ * ```
36
+ *
37
+ * This function will be called with:
38
+ *
39
+ * * `0` and `0` for the backreference from `things about micromark` to
40
+ * `alpha`, as it is the first used definition, and the first call to it
41
+ * * `0` and `1` for the backreference from `things about micromark` to
42
+ * `bravo`, as it is the first used definition, and the second call to it
43
+ * * `1` and `0` for the backreference from `things about remark` to
44
+ * `charlie`, as it is the second used definition
45
+ */
46
+ declare type BackLabelTemplate = (
47
+ referenceIndex: number,
48
+ rereferenceIndex: number
49
+ ) => string
50
+
51
+ /**
52
+ * A chunk is either a character code or a slice of a buffer in the form of a
53
+ * string.
54
+ *
55
+ * Chunks are used because strings are more efficient storage that character
56
+ * codes, but limited in what they can represent.
57
+ */
58
+ declare type Chunk = Code | string
59
+
60
+ declare type Chunk_2 = Chunk
61
+
62
+ /**
63
+ * A character code.
64
+ *
65
+ * This is often the same as what `String#charCodeAt()` yields but micromark
66
+ * adds meaning to certain other values.
67
+ *
68
+ * `null` represents the end of the input stream (called eof).
69
+ * Negative integers are used instead of certain sequences of characters (such
70
+ * as line endings and tabs).
71
+ */
72
+ declare type Code = number | null
73
+
74
+ declare type Compile = Compile_2
75
+
76
+ /**
77
+ * @param {CompileOptions | null | undefined} [options]
78
+ * @returns {Compile}
79
+ */
80
+ export declare function compile(options?: CompileOptions_2 | null | undefined): Compile
81
+
82
+ /**
83
+ * Serialize micromark events as HTML.
84
+ */
85
+ declare type Compile_2 = (events: Array<Event_2>) => string
86
+
87
+ declare type CompileContext = CompileContext_2
88
+
89
+ /**
90
+ * HTML compiler context.
91
+ */
92
+ declare type CompileContext_2 = {
93
+ /**
94
+ * Configuration passed by the user.
95
+ */
96
+ options: CompileOptions
97
+
98
+ /**
99
+ * Set data into the key-value store.
100
+ *
101
+ * @param key
102
+ * Key.
103
+ * @param value
104
+ * Value.
105
+ * @returns
106
+ * Nothing.
107
+ */
108
+ setData: <Key extends keyof CompileData>(
109
+ key: Key,
110
+ value?: CompileData[Key]
111
+ ) => undefined
112
+
113
+ /**
114
+ * Get data from the key-value store.
115
+ *
116
+ * @param key
117
+ * Key.
118
+ * @returns
119
+ * Value at `key` in compile data.
120
+ */
121
+ getData: <Key extends keyof CompileData>(key: Key) => CompileData[Key]
122
+
123
+ /**
124
+ * Output an extra line ending if the previous value wasn’t EOF/EOL.
125
+ *
126
+ * @returns
127
+ * Nothing.
128
+ */
129
+ lineEndingIfNeeded: () => undefined
130
+
131
+ /**
132
+ * Make a value safe for injection in HTML (except w/ `ignoreEncode`).
133
+ *
134
+ * @param value
135
+ * Raw value.
136
+ * @returns
137
+ * Safe value.
138
+ */
139
+ encode: (value: string) => string
140
+
141
+ /**
142
+ * Capture some of the output data.
143
+ *
144
+ * @returns
145
+ * Nothing.
146
+ */
147
+ buffer: () => undefined
148
+
149
+ /**
150
+ * Stop capturing and access the output data.
151
+ *
152
+ * @returns
153
+ * Captured data.
154
+ */
155
+ resume: () => string
156
+
157
+ /**
158
+ * Output raw data.
159
+ *
160
+ * @param value
161
+ * Raw value.
162
+ * @returns
163
+ * Nothing.
164
+ */
165
+ raw: (value: string) => undefined
166
+
167
+ /**
168
+ * Output (parts of) HTML tags.
169
+ *
170
+ * @param value
171
+ * Raw value.
172
+ * @returns
173
+ * Nothing.
174
+ */
175
+ tag: (value: string) => undefined
176
+
177
+ /**
178
+ * Get the string value of a token.
179
+ *
180
+ * @param token
181
+ * Start/end in stream.
182
+ * @param expandTabs
183
+ * Whether to expand tabs.
184
+ * @returns
185
+ * Serialized chunks.
186
+ */
187
+ sliceSerialize: TokenizeContext['sliceSerialize']
188
+ }
189
+
190
+ /**
191
+ * State tracked to compile events as HTML.
192
+ */
193
+ export declare interface CompileData {
194
+ /**
195
+ * Whether the last emitted value was a tag.
196
+ */
197
+ lastWasTag?: boolean | undefined
198
+
199
+ /**
200
+ * Whether the first list item is expected, used by lists.
201
+ */
202
+ expectFirstItem?: boolean | undefined
203
+
204
+ /**
205
+ * Whether to slurp the next line ending (resets itself on the next line
206
+ * ending).
207
+ */
208
+ slurpOneLineEnding?: boolean | undefined
209
+
210
+ /**
211
+ * Whether to slurp all future line endings (has to be unset manually).
212
+ */
213
+ slurpAllLineEndings?: boolean | undefined
214
+
215
+ /**
216
+ * Whether we’re in fenced code, used by code (fenced).
217
+ */
218
+ fencedCodeInside?: boolean | undefined
219
+
220
+ /**
221
+ * Number of fences that were seen, used by code (fenced).
222
+ */
223
+ fencesCount?: number | undefined
224
+
225
+ /**
226
+ * Whether we’ve seen code data, used by code (fenced, indented).
227
+ */
228
+ flowCodeSeenData?: boolean | undefined
229
+
230
+ /**
231
+ * Ignore encoding unsafe characters, used for example for URLs which are
232
+ * first percent encoded, or by HTML when supporting it.
233
+ */
234
+ ignoreEncode?: boolean | undefined
235
+
236
+ /**
237
+ * Current heading rank, used by heading (atx, setext).
238
+ */
239
+ headingRank?: number | undefined
240
+
241
+ /**
242
+ * Whether we’re in code data, used by code (text).
243
+ */
244
+ inCodeText?: boolean | undefined
245
+
246
+ /**
247
+ * Current character reference kind.
248
+ */
249
+ characterReferenceType?: string | undefined
250
+
251
+ /**
252
+ * Stack of containers, whether they’re tight or not.
253
+ */
254
+ tightStack: Array<boolean>
255
+
256
+ /**
257
+ * Collected definitions.
258
+ */
259
+ definitions: Record<string, Definition>
260
+ }
261
+
262
+ /**
263
+ * Compile options.
264
+ */
265
+ declare interface CompileOptions {
266
+ /**
267
+ * Whether to allow (dangerous) HTML (`boolean`, default: `false`).
268
+ *
269
+ * The default is `false`, which still parses the HTML according to
270
+ * `CommonMark` but shows the HTML as text instead of as elements.
271
+ *
272
+ * Pass `true` for trusted content to get actual HTML elements.
273
+ */
274
+ allowDangerousHtml?: boolean | null | undefined
275
+
276
+ /**
277
+ * Whether to allow dangerous protocols in links and images (`boolean`,
278
+ * default: `false`).
279
+ *
280
+ * The default is `false`, which drops URLs in links and images that use
281
+ * dangerous protocols.
282
+ *
283
+ * Pass `true` for trusted content to support all protocols.
284
+ *
285
+ * URLs that have no protocol (which means it’s relative to the current page,
286
+ * such as `./some/page.html`) and URLs that have a safe protocol (for
287
+ * images: `http`, `https`; for links: `http`, `https`, `irc`, `ircs`,
288
+ * `mailto`, `xmpp`), are safe.
289
+ * All other URLs are dangerous and dropped.
290
+ */
291
+ allowDangerousProtocol?: boolean | null | undefined
292
+
293
+ /**
294
+ * Default line ending to use when compiling to HTML, for line endings not in
295
+ * `value`.
296
+ *
297
+ * Generally, `micromark` copies line endings (`\r`, `\n`, `\r\n`) in the
298
+ * markdown document over to the compiled HTML.
299
+ * In some cases, such as `> a`, CommonMark requires that extra line endings
300
+ * are added: `<blockquote>\n<p>a</p>\n</blockquote>`.
301
+ *
302
+ * To create that line ending, the document is checked for the first line
303
+ * ending that is used.
304
+ * If there is no line ending, `defaultLineEnding` is used.
305
+ * If that isn’t configured, `\n` is used.
306
+ */
307
+ defaultLineEnding?: LineEnding | null | undefined
308
+
309
+ /**
310
+ * Array of HTML extensions (default: `[]`).
311
+ */
312
+ htmlExtensions?: Array<HtmlExtension> | null | undefined
313
+ }
314
+
315
+ declare type CompileOptions_2 = CompileOptions
316
+
317
+ /**
318
+ * An object describing how to parse a markdown construct.
319
+ */
320
+ declare type Construct = {
321
+ /**
322
+ * Set up a state machine to handle character codes streaming in.
323
+ */
324
+ tokenize: Tokenizer
325
+
326
+ /**
327
+ * Guard whether the previous character can come before the construct.
328
+ */
329
+ previous?: Previous | undefined
330
+
331
+ /**
332
+ * For containers, a continuation construct.
333
+ */
334
+ continuation?: Construct | undefined
335
+
336
+ /**
337
+ * For containers, a final hook.
338
+ */
339
+ exit?: Exiter | undefined
340
+
341
+ /**
342
+ * Name of the construct, used to toggle constructs off.
343
+ *
344
+ * Named constructs must not be `partial`.
345
+ */
346
+ name?: string | undefined
347
+
348
+ /**
349
+ * Whether this construct represents a partial construct.
350
+ *
351
+ * Partial constructs must not have a `name`.
352
+ */
353
+ partial?: boolean | undefined
354
+
355
+ /**
356
+ * Resolve the events parsed by `tokenize`.
357
+ *
358
+ * For example, if we’re currently parsing a link title and this construct
359
+ * parses character references, then `resolve` is called with the events
360
+ * ranging from the start to the end of a character reference each time one is
361
+ * found.
362
+ */
363
+ resolve?: Resolver | undefined
364
+
365
+ /**
366
+ * Resolve the events from the start of the content (which includes other
367
+ * constructs) to the last one parsed by `tokenize`.
368
+ *
369
+ * For example, if we’re currently parsing a link title and this construct
370
+ * parses character references, then `resolveTo` is called with the events
371
+ * ranging from the start of the link title to the end of a character
372
+ * reference each time one is found.
373
+ */
374
+ resolveTo?: Resolver | undefined
375
+
376
+ /**
377
+ * Resolve all events when the content is complete, from the start to the end.
378
+ * Only used if `tokenize` is successful once in the content.
379
+ *
380
+ * For example, if we’re currently parsing a link title and this construct
381
+ * parses character references, then `resolveAll` is called *if* at least one
382
+ * character reference is found, ranging from the start to the end of the link
383
+ * title to the end.
384
+ */
385
+ resolveAll?: Resolver | undefined
386
+
387
+ /**
388
+ * Concrete constructs cannot be interrupted by more containers.
389
+ *
390
+ * For example, when parsing the document (containers, such as block quotes
391
+ * and lists) and this construct is parsing fenced code:
392
+ *
393
+ * ````markdown
394
+ * > ```js
395
+ * > - list?
396
+ * ````
397
+ *
398
+ * …then `- list?` cannot form if this fenced code construct is concrete.
399
+ *
400
+ * An example of a construct that is not concrete is a GFM table:
401
+ *
402
+ * ````markdown
403
+ * | a |
404
+ * | - |
405
+ * > | b |
406
+ * ````
407
+ *
408
+ * …`b` is not part of the table.
409
+ */
410
+ concrete?: boolean | undefined
411
+
412
+ /**
413
+ * Whether the construct, when in a `ConstructRecord`, precedes over existing
414
+ * constructs for the same character code when merged.
415
+ *
416
+ * The default is that new constructs precede over existing ones.
417
+ */
418
+ add?: 'after' | 'before' | undefined
419
+ }
420
+
421
+ /**
422
+ * Several constructs, mapped from their initial codes.
423
+ */
424
+ declare type ConstructRecord = Record<
425
+ string,
426
+ Array<Construct> | Construct | undefined
427
+ >
428
+
429
+ /**
430
+ * Deal with the character and move to the next.
431
+ *
432
+ * @param code
433
+ * Current code.
434
+ */
435
+ declare type Consume = (code: Code) => undefined
436
+
437
+ /**
438
+ * State shared between container calls.
439
+ */
440
+ declare interface ContainerState {
441
+ /**
442
+ * Special field to close the current flow (or containers).
443
+ */
444
+ _closeFlow?: boolean | undefined
445
+
446
+ /**
447
+ * Used by block quotes.
448
+ */
449
+ open?: boolean | undefined
450
+
451
+ /**
452
+ * Current marker, used by lists.
453
+ */
454
+ marker?: Code | undefined
455
+
456
+ /**
457
+ * Current token type, used by lists.
458
+ */
459
+ type?: TokenType | undefined
460
+
461
+ /**
462
+ * Current size, used by lists.
463
+ */
464
+ size?: number | undefined
465
+
466
+ /**
467
+ * Whether there first line is blank, used by lists.
468
+ */
469
+ initialBlankLine?: boolean | undefined
470
+
471
+ /**
472
+ * Whether there are further blank lines, used by lists.
473
+ */
474
+ furtherBlankLines?: boolean | undefined
475
+ }
476
+
477
+ /**
478
+ * Enumeration of the content types.
479
+ *
480
+ * Technically `document` is also a content type, which includes containers
481
+ * (lists, block quotes) and flow.
482
+ * As `ContentType` is used on tokens to define the type of subcontent but
483
+ * `document` is the highest level of content, so it’s not listed here.
484
+ *
485
+ * Containers in markdown come from the margin and include more constructs
486
+ * on the lines that define them.
487
+ * Take for example a block quote with a paragraph inside it (such as
488
+ * `> asd`).
489
+ *
490
+ * `flow` represents the sections, such as headings, code, and content, which
491
+ * is also parsed per line
492
+ * An example is HTML, which has a certain starting condition (such as
493
+ * `<script>` on its own line), then continues for a while, until an end
494
+ * condition is found (such as `</style>`).
495
+ * If that line with an end condition is never found, that flow goes until
496
+ * the end.
497
+ *
498
+ * `content` is zero or more definitions, and then zero or one paragraph.
499
+ * It’s a weird one, and needed to make certain edge cases around definitions
500
+ * spec compliant.
501
+ * Definitions are unlike other things in markdown, in that they behave like
502
+ * `text` in that they can contain arbitrary line endings, but *have* to end
503
+ * at a line ending.
504
+ * If they end in something else, the whole definition instead is seen as a
505
+ * paragraph.
506
+ *
507
+ * The content in markdown first needs to be parsed up to this level to
508
+ * figure out which things are defined, for the whole document, before
509
+ * continuing on with `text`, as whether a link or image reference forms or
510
+ * not depends on whether it’s defined.
511
+ * This unfortunately prevents a true streaming markdown to HTML compiler.
512
+ *
513
+ * `text` contains phrasing content such as attention (emphasis, strong),
514
+ * media (links, images), and actual text.
515
+ *
516
+ * `string` is a limited `text` like content type which only allows character
517
+ * references and character escapes.
518
+ * It exists in things such as identifiers (media references, definitions),
519
+ * titles, or URLs.
520
+ */
521
+ declare type ContentType = 'content' | 'document' | 'flow' | 'string' | 'text'
522
+
523
+ /**
524
+ * Create a context.
525
+ *
526
+ * @param from
527
+ * Where to create from.
528
+ * @returns
529
+ * Context.
530
+ */
531
+ declare type Create = (
532
+ from?: Omit<Point, '_bufferIndex' | '_index'> | undefined
533
+ ) => TokenizeContext
534
+
535
+ /**
536
+ * Definition.
537
+ */
538
+ declare type Definition = {
539
+ /**
540
+ * Destination.
541
+ */
542
+ destination?: string | undefined
543
+ /**
544
+ * Title.
545
+ */
546
+ title?: string | undefined
547
+ }
548
+
549
+ /**
550
+ * Structure representing a directive.
551
+ */
552
+ declare type Directive = {
553
+ /**
554
+ * Kind.
555
+ */
556
+ type: DirectiveType
557
+ /**
558
+ * Name of directive.
559
+ */
560
+ name: string
561
+ /**
562
+ * Compiled HTML content that was in `[brackets]`.
563
+ */
564
+ label?: string | undefined
565
+ /**
566
+ * Object w/ HTML attributes.
567
+ */
568
+ attributes?: Record<string, string> | undefined
569
+ /**
570
+ * Compiled HTML content inside container directive.
571
+ */
572
+ content?: string | undefined
573
+ /**
574
+ * Private :)
575
+ */
576
+ _fenceCount?: number | undefined
577
+ }
578
+
579
+ /**
580
+ * Create an extension for `micromark` to enable directive syntax.
581
+ *
582
+ * @returns {Extension}
583
+ * Extension for `micromark` that can be passed in `extensions`, to
584
+ * enable directive syntax.
585
+ */
586
+ export declare function directive(): Extension
587
+
588
+ /**
589
+ * Create an extension for `micromark` to support directives when serializing
590
+ * to HTML.
591
+ *
592
+ * @param {HtmlOptions | null | undefined} [options={}]
593
+ * Configuration (default: `{}`).
594
+ * @returns {HtmlExtension}
595
+ * Extension for `micromark` that can be passed in `htmlExtensions`, to
596
+ * support directives when serializing to HTML.
597
+ */
598
+ export declare function directiveHtml(
599
+ options?: HtmlOptions | null | undefined
600
+ ): HtmlExtension_2
601
+
602
+ /**
603
+ * Kind.
604
+ */
605
+ declare type DirectiveType =
606
+ | 'containerDirective'
607
+ | 'leafDirective'
608
+ | 'textDirective'
609
+
610
+ /**
611
+ * Handle the whole document.
612
+ *
613
+ * @returns
614
+ * Nothing.
615
+ */
616
+ declare type DocumentHandle = (
617
+ this: Omit<CompileContext_2, 'sliceSerialize'>
618
+ ) => undefined
619
+
620
+ /**
621
+ * A context object to transition the state machine.
622
+ */
623
+ declare type Effects = {
624
+ /**
625
+ * Start a new token.
626
+ */
627
+ enter: Enter
628
+
629
+ /**
630
+ * End a started token.
631
+ */
632
+ exit: Exit
633
+
634
+ /**
635
+ * Deal with the character and move to the next.
636
+ */
637
+ consume: Consume
638
+
639
+ /**
640
+ * Try to tokenize a construct.
641
+ */
642
+ attempt: Attempt
643
+
644
+ /**
645
+ * Interrupt is used for stuff right after a line of content.
646
+ */
647
+ interrupt: Attempt
648
+
649
+ /**
650
+ * Attempt, then revert.
651
+ */
652
+ check: Attempt
653
+ }
654
+
655
+ declare type Encoding = Encoding_2
656
+
657
+ /**
658
+ * Encodings supported by `TextEncoder`.
659
+ *
660
+ * Arbitrary encodings can be supported depending on how the engine is built.
661
+ * So any string *could* be valid.
662
+ * But you probably want `utf-8`.
663
+ */
664
+ declare type Encoding_2 =
665
+ // Encodings supported in Node by default or when built with the small-icu option.
666
+ // Does not include aliases.
667
+ | 'utf-8' // Always supported in Node.
668
+ | 'utf-16le' // Always supported in Node.
669
+ | 'utf-16be' // Not supported when ICU is disabled.
670
+ // Everything else (depends on browser, or full ICU data).
671
+ | (string & {})
672
+
673
+ /**
674
+ * Open a token.
675
+ *
676
+ * @param type
677
+ * Token type.
678
+ * @param fields
679
+ * Extra fields.
680
+ * @returns {Token}
681
+ * Token.
682
+ */
683
+ declare type Enter = (
684
+ type: TokenType,
685
+ fields?: Omit<Partial<Token>, 'type'> | undefined
686
+ ) => Token
687
+
688
+ /**
689
+ * The start or end of a token amongst other events.
690
+ *
691
+ * Tokens can “contain” other tokens, even though they are stored in a flat
692
+ * list, through `enter`ing before them, and `exit`ing after them.
693
+ */
694
+ declare type Event_2 = ['enter' | 'exit', Token, TokenizeContext]
695
+ export { Event_2 as Event }
696
+
697
+ /**
698
+ * Close a token.
699
+ *
700
+ * @param type
701
+ * Token type.
702
+ * @returns
703
+ * Token.
704
+ */
705
+ declare type Exit = (type: TokenType) => Token
706
+
707
+ /**
708
+ * Like a tokenizer, but without `ok` or `nok`, and returning `undefined`.
709
+ *
710
+ * This is the final hook when a container must be closed.
711
+ *
712
+ * @param this
713
+ * Tokenize context.
714
+ * @param effects
715
+ * Effects.
716
+ * @returns
717
+ * Nothing.
718
+ */
719
+ declare type Exiter = (this: TokenizeContext, effects: Effects) => undefined
720
+
721
+ declare type Extension = Extension_2
722
+
723
+ /**
724
+ * A syntax extension changes how markdown is tokenized.
725
+ *
726
+ * See: <https://github.com/micromark/micromark#syntaxextension>
727
+ */
728
+ declare interface Extension_2 {
729
+ document?: ConstructRecord | undefined
730
+ contentInitial?: ConstructRecord | undefined
731
+ flowInitial?: ConstructRecord | undefined
732
+ flow?: ConstructRecord | undefined
733
+ string?: ConstructRecord | undefined
734
+ text?: ConstructRecord | undefined
735
+ disable?: {null?: Array<string> | undefined} | undefined
736
+ insideSpan?:
737
+ | {null?: Array<Pick<Construct, 'resolveAll'>> | undefined}
738
+ | undefined
739
+ attentionMarkers?: {null?: Array<Code> | undefined} | undefined
740
+ }
741
+
742
+ declare type Extension_3 = Extension_2
743
+
744
+ declare type Extension_4 = Extension_2
745
+
746
+ declare type Extension_5 = Extension_2
747
+
748
+ declare type Extension_6 = Extension_2
749
+
750
+ /**
751
+ * A full, filtereed, normalized, extension.
752
+ */
753
+ declare type FullNormalizedExtension = {
754
+ [Key in keyof Extension_2]-?: Exclude<Extension_2[Key], undefined>
755
+ }
756
+
757
+ /**
758
+ * Create an extension for `micromark` to support GitHub autolink literal
759
+ * syntax.
760
+ *
761
+ * @returns {Extension}
762
+ * Extension for `micromark` that can be passed in `extensions` to enable GFM
763
+ * autolink literal syntax.
764
+ */
765
+ export declare function gfmAutolinkLiteral(): Extension_3
766
+
767
+ /**
768
+ * Create an HTML extension for `micromark` to support GitHub autolink literal
769
+ * when serializing to HTML.
770
+ *
771
+ * @returns {HtmlExtension}
772
+ * Extension for `micromark` that can be passed in `htmlExtensions` to
773
+ * support GitHub autolink literal when serializing to HTML.
774
+ */
775
+ export declare function gfmAutolinkLiteralHtml(): HtmlExtension_3
776
+
777
+ /**
778
+ * Create an extension for `micromark` to enable GFM footnote syntax.
779
+ *
780
+ * @returns {Extension}
781
+ * Extension for `micromark` that can be passed in `extensions` to
782
+ * enable GFM footnote syntax.
783
+ */
784
+ export declare function gfmFootnote(): Extension_4
785
+
786
+ /**
787
+ * Create an extension for `micromark` to support GFM footnotes when
788
+ * serializing to HTML.
789
+ *
790
+ * @param {Options | null | undefined} [options={}]
791
+ * Configuration (optional).
792
+ * @returns {HtmlExtension}
793
+ * Extension for `micromark` that can be passed in `htmlExtensions` to
794
+ * support GFM footnotes when serializing to HTML.
795
+ */
796
+ export declare function gfmFootnoteHtml(
797
+ options?: Options | null | undefined
798
+ ): HtmlExtension_4
799
+
800
+ /**
801
+ * Create an HTML extension for `micromark` to support GitHub tables syntax.
802
+ *
803
+ * @returns {Extension}
804
+ * Extension for `micromark` that can be passed in `extensions` to enable GFM
805
+ * table syntax.
806
+ */
807
+ export declare function gfmTable(): Extension_5
808
+
809
+ /**
810
+ * Create an HTML extension for `micromark` to support GitHub tables when
811
+ * serializing to HTML.
812
+ *
813
+ * @returns {HtmlExtension}
814
+ * Extension for `micromark` that can be passed in `htmlExtensions` to
815
+ * support GitHub tables when serializing to HTML.
816
+ */
817
+ export declare function gfmTableHtml(): HtmlExtension_5
818
+
819
+ /**
820
+ * Handle a directive.
821
+ */
822
+ declare type Handle = (
823
+ this: CompileContext,
824
+ directive: Directive
825
+ ) => boolean | undefined
826
+
827
+ /**
828
+ * Handle one token.
829
+ *
830
+ * @param token
831
+ * Token.
832
+ * @returns
833
+ * Nothing.
834
+ */
835
+ declare type Handle_2 = (this: CompileContext_2, token: Token) => undefined
836
+
837
+ /**
838
+ * Token types mapping to handles.
839
+ */
840
+ declare type Handles = {
841
+ /**
842
+ * Token handle.
843
+ */
844
+ [Key in TokenType]?: Handle_2
845
+ } & {
846
+ /**
847
+ * Document handle.
848
+ */
849
+ null?: DocumentHandle
850
+ }
851
+
852
+ /**
853
+ * Normalized extenion.
854
+ */
855
+ declare interface HtmlExtension {
856
+ enter?: Handles | undefined
857
+ exit?: Handles | undefined
858
+ }
859
+
860
+ declare type HtmlExtension_2 = HtmlExtension
861
+
862
+ declare type HtmlExtension_3 = HtmlExtension
863
+
864
+ declare type HtmlExtension_4 = HtmlExtension
865
+
866
+ declare type HtmlExtension_5 = HtmlExtension
867
+
868
+ declare type HtmlExtension_6 = HtmlExtension
869
+
870
+ /**
871
+ * Configuration.
872
+ *
873
+ * > 👉 **Note**: the special field `'*'` can be used to specify a fallback
874
+ * > handle to handle all otherwise unhandled directives.
875
+ */
876
+ declare type HtmlOptions = Record<string, Handle>
877
+
878
+ declare type KatexOptions = Object
879
+
880
+ /**
881
+ * Type of line ending in markdown.
882
+ */
883
+ declare type LineEnding = '\r' | '\n' | '\r\n'
884
+
885
+ /**
886
+ * Create an extension for `micromark` to enable math syntax.
887
+ *
888
+ * @param {Options | null | undefined} [options={}]
889
+ * Configuration (default: `{}`).
890
+ * @returns {Extension}
891
+ * Extension for `micromark` that can be passed in `extensions`, to
892
+ * enable math syntax.
893
+ */
894
+ export declare function math(options?: Options_2 | null | undefined): Extension_6
895
+
896
+ /**
897
+ * Create an extension for `micromark` to support math when serializing to
898
+ * HTML.
899
+ *
900
+ * > 👉 **Note**: this uses KaTeX to render math.
901
+ *
902
+ * @param {Options | null | undefined} [options={}]
903
+ * Configuration (default: `{}`).
904
+ * @returns {HtmlExtension}
905
+ * Extension for `micromark` that can be passed in `htmlExtensions`, to
906
+ * support math when serializing to HTML.
907
+ */
908
+ export declare function mathHtml(options?: Options_4 | null | undefined): HtmlExtension_6
909
+
910
+ /**
911
+ * Configuration.
912
+ */
913
+ declare type Options = {
914
+ /**
915
+ * Prefix to use before the `id` attribute on footnotes to prevent them from
916
+ * *clobbering* (default: `'user-content-'`).
917
+ *
918
+ * Pass `''` for trusted markdown and when you are careful with
919
+ * polyfilling.
920
+ * You could pass a different prefix.
921
+ *
922
+ * DOM clobbering is this:
923
+ *
924
+ * ```html
925
+ * <p id="x"></p>
926
+ * <script>alert(x) // `x` now refers to the `p#x` DOM element</script>
927
+ * ```
928
+ *
929
+ * The above example shows that elements are made available by browsers, by
930
+ * their ID, on the `window` object.
931
+ * This is a security risk because you might be expecting some other variable
932
+ * at that place.
933
+ * It can also break polyfills.
934
+ * Using a prefix solves these problems.
935
+ */
936
+ clobberPrefix?: string | null | undefined
937
+ /**
938
+ * Textual label to use for the footnotes section (default: `'Footnotes'`).
939
+ *
940
+ * Change it when the markdown is not in English.
941
+ *
942
+ * This label is typically hidden visually (assuming a `sr-only` CSS class
943
+ * is defined that does that) and so affects screen readers only.
944
+ * If you do have such a class, but want to show this section to everyone,
945
+ * pass different attributes with the `labelAttributes` option.
946
+ */
947
+ label?: string | null | undefined
948
+ /**
949
+ * Attributes to use on the footnote label (default: `'class="sr-only"'`).
950
+ *
951
+ * Change it to show the label and add other attributes.
952
+ *
953
+ * This label is typically hidden visually (assuming an `sr-only` CSS class
954
+ * is defined that does that) and so affects screen readers only.
955
+ * If you do have such a class, but want to show this section to everyone,
956
+ * pass an empty string.
957
+ * You can also add different attributes.
958
+ *
959
+ * > 👉 **Note**: `id="footnote-label"` is always added, because footnote
960
+ * > calls use it with `aria-describedby` to provide an accessible label.
961
+ */
962
+ labelAttributes?: string | null | undefined
963
+ /**
964
+ * HTML tag name to use for the footnote label element (default: `'h2'`).
965
+ *
966
+ * Change it to match your document structure.
967
+ *
968
+ * This label is typically hidden visually (assuming a `sr-only` CSS class
969
+ * is defined that does that) and so affects screen readers only.
970
+ * If you do have such a class, but want to show this section to everyone,
971
+ * pass different attributes with the `labelAttributes` option.
972
+ */
973
+ labelTagName?: string | null | undefined
974
+ /**
975
+ * Textual label to describe the backreference back to references (default:
976
+ * `defaultBackLabel`).
977
+ *
978
+ * The default value is:
979
+ *
980
+ * ```js
981
+ * function defaultBackLabel(referenceIndex, rereferenceIndex) {
982
+ * return (
983
+ * 'Back to reference ' +
984
+ * (referenceIndex + 1) +
985
+ * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')
986
+ * )
987
+ * }
988
+ * ```
989
+ *
990
+ * Change it when the markdown is not in English.
991
+ *
992
+ * This label is used in the `aria-label` attribute on each backreference
993
+ * (the `↩` links).
994
+ * It affects users of assistive technology.
995
+ */
996
+ backLabel?: BackLabelTemplate | string | null | undefined
997
+ }
998
+
999
+ declare type Options_2 = Options_3
1000
+
1001
+ /**
1002
+ * Configuration.
1003
+ */
1004
+ declare type Options_3 = {
1005
+ /**
1006
+ * Whether to support math (text) with a single dollar (default: `true`).
1007
+ *
1008
+ * Single dollars work in Pandoc and many other places, but often interfere
1009
+ * with “normal” dollars in text.
1010
+ * If you turn this off, you can use two or more dollars for text math.
1011
+ */
1012
+ singleDollarTextMath?: boolean | null | undefined
1013
+ }
1014
+
1015
+ /**
1016
+ * Configuration for HTML output.
1017
+ *
1018
+ * > 👉 **Note**: passed to `katex.renderToString`.
1019
+ * > `displayMode` is overwritten by this plugin, to `false` for math in
1020
+ * > text (inline), and `true` for math in flow (block).
1021
+ */
1022
+ declare type Options_4 = Omit<KatexOptions, 'displayMode'>
1023
+
1024
+ /**
1025
+ * @param {ParseOptions | null | undefined} [options]
1026
+ * @returns {ParseContext}
1027
+ */
1028
+ export declare function parse(options?: ParseOptions_2 | null | undefined): ParseContext_2
1029
+
1030
+ /**
1031
+ * A context object that helps w/ parsing markdown.
1032
+ */
1033
+ declare interface ParseContext {
1034
+ /**
1035
+ * All constructs.
1036
+ */
1037
+ constructs: FullNormalizedExtension
1038
+
1039
+ /**
1040
+ * Create a content tokenizer.
1041
+ */
1042
+ content: Create
1043
+
1044
+ /**
1045
+ * Create a document tokenizer.
1046
+ */
1047
+ document: Create
1048
+
1049
+ /**
1050
+ * Create a flow tokenizer.
1051
+ */
1052
+ flow: Create
1053
+
1054
+ /**
1055
+ * Create a string tokenizer.
1056
+ */
1057
+ string: Create
1058
+
1059
+ /**
1060
+ * Create a text tokenizer.
1061
+ */
1062
+ text: Create
1063
+
1064
+ /**
1065
+ * List of defined identifiers.
1066
+ */
1067
+ defined: Array<string>
1068
+
1069
+ /**
1070
+ * Map of line numbers to whether they are lazy (as opposed to the line before
1071
+ * them).
1072
+ * Take for example:
1073
+ *
1074
+ * ```markdown
1075
+ * > a
1076
+ * b
1077
+ * ```
1078
+ *
1079
+ * L1 here is not lazy, L2 is.
1080
+ */
1081
+ lazy: Record<number, boolean>
1082
+ }
1083
+
1084
+ declare type ParseContext_2 = ParseContext
1085
+
1086
+ /**
1087
+ * Config defining how to parse.
1088
+ */
1089
+ export declare interface ParseOptions {
1090
+ /**
1091
+ * Array of syntax extensions (default: `[]`).
1092
+ */
1093
+ extensions?: Array<Extension_2> | null | undefined
1094
+ }
1095
+
1096
+ declare type ParseOptions_2 = ParseOptions
1097
+
1098
+ /**
1099
+ * A location in the document (`line`/`column`/`offset`) and chunk (`_index`,
1100
+ * `_bufferIndex`).
1101
+ *
1102
+ * `_bufferIndex` is `-1` when `_index` points to a code chunk and it’s a
1103
+ * non-negative integer when pointing to a string chunk.
1104
+ *
1105
+ * The interface for the location in the document comes from unist `Point`:
1106
+ * <https://github.com/syntax-tree/unist#point>
1107
+ */
1108
+ declare type Point = {
1109
+ /**
1110
+ * Position in a string chunk (or `-1` when pointing to a numeric chunk).
1111
+ */
1112
+ _bufferIndex: number
1113
+
1114
+ /**
1115
+ * Position in a list of chunks.
1116
+ */
1117
+ _index: number
1118
+
1119
+ /**
1120
+ * 1-indexed column number.
1121
+ */
1122
+ column: number
1123
+
1124
+ /**
1125
+ * 1-indexed line number.
1126
+ */
1127
+ line: number
1128
+
1129
+ /**
1130
+ * 0-indexed position in the document.
1131
+ */
1132
+ offset: number
1133
+ }
1134
+
1135
+ /**
1136
+ * @param {Array<Event>} events
1137
+ * @returns {Array<Event>}
1138
+ */
1139
+ export declare function postprocess(
1140
+ events: Array<Event_2>
1141
+ ): Array<Event_2>
1142
+
1143
+ /**
1144
+ * @returns {Preprocessor}
1145
+ */
1146
+ export declare function preprocess(): Preprocessor
1147
+
1148
+ declare type Preprocessor = (
1149
+ value: Value,
1150
+ encoding?: Encoding | null | undefined,
1151
+ end?: boolean | null | undefined
1152
+ ) => Array<Chunk_2>
1153
+
1154
+ /**
1155
+ * Guard whether `code` can come before the construct.
1156
+ *
1157
+ * In certain cases a construct can hook into many potential start characters.
1158
+ * Instead of setting up an attempt to parse that construct for most
1159
+ * characters, this is a speedy way to reduce that.
1160
+ *
1161
+ * @param this
1162
+ * Tokenize context.
1163
+ * @param code
1164
+ * Previous code.
1165
+ * @returns
1166
+ * Whether `code` is allowed before.
1167
+ */
1168
+ declare type Previous = (this: TokenizeContext, code: Code) => boolean
1169
+
1170
+ /**
1171
+ * A resolver handles and cleans events coming from `tokenize`.
1172
+ *
1173
+ * @param events
1174
+ * List of events.
1175
+ * @param context
1176
+ * Tokenize context.
1177
+ * @returns
1178
+ * The given, modified, events.
1179
+ */
1180
+ declare type Resolver = (
1181
+ events: Array<Event_2>,
1182
+ context: TokenizeContext
1183
+ ) => Array<Event_2>
1184
+
1185
+ /**
1186
+ * The main unit in the state machine: a function that gets a character code
1187
+ * and has certain effects.
1188
+ *
1189
+ * A state function should return another function: the next
1190
+ * state-as-a-function to go to.
1191
+ *
1192
+ * But there is one case where they return `undefined`: for the eof character
1193
+ * code (at the end of a value).
1194
+ * The reason being: well, there isn’t any state that makes sense, so
1195
+ * `undefined` works well.
1196
+ * Practically that has also helped: if for some reason it was a mistake, then
1197
+ * an exception is throw because there is no next function, meaning it
1198
+ * surfaces early.
1199
+ *
1200
+ * @param code
1201
+ * Current code.
1202
+ * @returns
1203
+ * Next state.
1204
+ */
1205
+ declare type State = (code: Code) => State | undefined
1206
+
1207
+ /**
1208
+ * A token: a span of chunks.
1209
+ *
1210
+ * Tokens are what the core of micromark produces: the built in HTML compiler
1211
+ * or other tools can turn them into different things.
1212
+ *
1213
+ * Tokens are essentially names attached to a slice of chunks, such as
1214
+ * `lineEndingBlank` for certain line endings, or `codeFenced` for a whole
1215
+ * fenced code.
1216
+ *
1217
+ * Sometimes, more info is attached to tokens, such as `_open` and `_close`
1218
+ * by `attention` (strong, emphasis) to signal whether the sequence can open
1219
+ * or close an attention run.
1220
+ *
1221
+ * Linked tokens are used because outer constructs are parsed first.
1222
+ * Take for example:
1223
+ *
1224
+ * ```markdown
1225
+ * > *a
1226
+ * b*.
1227
+ * ```
1228
+ *
1229
+ * 1. The block quote marker and the space after it is parsed first
1230
+ * 2. The rest of the line is a `chunkFlow` token
1231
+ * 3. The two spaces on the second line are a `linePrefix`
1232
+ * 4. The rest of the line is another `chunkFlow` token
1233
+ *
1234
+ * The two `chunkFlow` tokens are linked together.
1235
+ * The chunks they span are then passed through the flow tokenizer.
1236
+ */
1237
+ export declare interface Token {
1238
+ /**
1239
+ * Token type.
1240
+ */
1241
+ type: TokenType
1242
+
1243
+ /**
1244
+ * Point where the token starts.
1245
+ */
1246
+ start: Point
1247
+
1248
+ /**
1249
+ * Point where the token ends.
1250
+ */
1251
+ end: Point
1252
+
1253
+ /**
1254
+ * The previous token in a list of linked tokens.
1255
+ */
1256
+ previous?: Token | undefined
1257
+
1258
+ /**
1259
+ * The next token in a list of linked tokens.
1260
+ */
1261
+ next?: Token | undefined
1262
+
1263
+ /**
1264
+ * Declares a token as having content of a certain type.
1265
+ */
1266
+ contentType?: ContentType | undefined
1267
+
1268
+ /**
1269
+ * Connected tokenizer.
1270
+ *
1271
+ * Used when dealing with linked tokens.
1272
+ * A child tokenizer is needed to tokenize them, which is stored on those
1273
+ * tokens.
1274
+ */
1275
+ _tokenizer?: TokenizeContext | undefined
1276
+
1277
+ /**
1278
+ * Field to help parse attention.
1279
+ *
1280
+ * Depending on the character before sequences (`**`), the sequence can open,
1281
+ * close, both, or none.
1282
+ */
1283
+ _open?: boolean | undefined
1284
+
1285
+ /**
1286
+ * Field to help parse attention.
1287
+ *
1288
+ * Depending on the character before sequences (`**`), the sequence can open,
1289
+ * close, both, or none.
1290
+ */
1291
+ _close?: boolean | undefined
1292
+
1293
+ /**
1294
+ * Field to help parse GFM task lists.
1295
+ *
1296
+ * This boolean is used internally to figure out if a token is in the first
1297
+ * content of a list item construct.
1298
+ */
1299
+ _isInFirstContentOfListItem?: boolean | undefined
1300
+
1301
+ /**
1302
+ * Field to help parse containers.
1303
+ *
1304
+ * This boolean is used internally to figure out if a token is a container
1305
+ * token.
1306
+ */
1307
+ _container?: boolean | undefined
1308
+
1309
+ /**
1310
+ * Field to help parse lists.
1311
+ *
1312
+ * This boolean is used internally to figure out if a list is loose or not.
1313
+ */
1314
+ _loose?: boolean | undefined
1315
+
1316
+ /**
1317
+ * Field to help parse links.
1318
+ *
1319
+ * This boolean is used internally to figure out if a link opening
1320
+ * can’t be used (because links in links are incorrect).
1321
+ */
1322
+ _inactive?: boolean | undefined
1323
+
1324
+ /**
1325
+ * Field to help parse links.
1326
+ *
1327
+ * This boolean is used internally to figure out if a link opening is
1328
+ * balanced: it’s not a link opening but has a balanced closing.
1329
+ */
1330
+ _balanced?: boolean | undefined
1331
+ }
1332
+
1333
+ /**
1334
+ * A context object that helps w/ tokenizing markdown constructs.
1335
+ */
1336
+ declare interface TokenizeContext {
1337
+ /**
1338
+ * The previous code.
1339
+ */
1340
+ previous: Code
1341
+
1342
+ /**
1343
+ * Current code.
1344
+ */
1345
+ code: Code
1346
+
1347
+ /**
1348
+ * Whether we’re currently interrupting.
1349
+ *
1350
+ * Take for example:
1351
+ *
1352
+ * ```markdown
1353
+ * a
1354
+ * # b
1355
+ * ```
1356
+ *
1357
+ * At 2:1, we’re “interrupting”.
1358
+ */
1359
+ interrupt?: boolean | undefined
1360
+
1361
+ /**
1362
+ * The current construct.
1363
+ *
1364
+ * Constructs that are not `partial` are set here.
1365
+ */
1366
+ currentConstruct?: Construct | undefined
1367
+
1368
+ /**
1369
+ * share state set when parsing containers.
1370
+ *
1371
+ * Containers are parsed in separate phases: their first line (`tokenize`),
1372
+ * continued lines (`continuation.tokenize`), and finally `exit`.
1373
+ * This record can be used to store some information between these hooks.
1374
+ */
1375
+ containerState?: ContainerState | undefined
1376
+
1377
+ /**
1378
+ * Current list of events.
1379
+ */
1380
+ events: Array<Event_2>
1381
+
1382
+ /**
1383
+ * The relevant parsing context.
1384
+ */
1385
+ parser: ParseContext
1386
+
1387
+ /**
1388
+ * Get the chunks that span a token (or location).
1389
+ *
1390
+ * @param token
1391
+ * Start/end in stream.
1392
+ * @returns
1393
+ * List of chunks.
1394
+ */
1395
+ sliceStream: (token: Pick<Token, 'end' | 'start'>) => Array<Chunk>
1396
+
1397
+ /**
1398
+ * Get the source text that spans a token (or location).
1399
+ *
1400
+ * @param token
1401
+ * Start/end in stream.
1402
+ * @param expandTabs
1403
+ * Whether to expand tabs.
1404
+ * @returns
1405
+ * Serialized chunks.
1406
+ */
1407
+ sliceSerialize: (
1408
+ token: Pick<Token, 'end' | 'start'>,
1409
+ expandTabs?: boolean | undefined
1410
+ ) => string
1411
+
1412
+ /**
1413
+ * Get the current place.
1414
+ *
1415
+ * @returns
1416
+ * Current point.
1417
+ */
1418
+ now: () => Point
1419
+
1420
+ /**
1421
+ * Define a skip
1422
+ *
1423
+ * As containers (block quotes, lists), “nibble” a prefix from the margins,
1424
+ * where a line starts after that prefix is defined here.
1425
+ * When the tokenizers moves after consuming a line ending corresponding to
1426
+ * the line number in the given point, the tokenizer shifts past the prefix
1427
+ * based on the column in the shifted point.
1428
+ *
1429
+ * @param point
1430
+ * Skip.
1431
+ * @returns
1432
+ * Nothing.
1433
+ */
1434
+ defineSkip: (point: Point) => undefined
1435
+
1436
+ /**
1437
+ * Write a slice of chunks.
1438
+ *
1439
+ * The eof code (`null`) can be used to signal the end of the stream.
1440
+ *
1441
+ * @param slice
1442
+ * Chunks.
1443
+ * @returns
1444
+ * Events.
1445
+ */
1446
+ write: (slice: Array<Chunk>) => Array<Event_2>
1447
+
1448
+ /**
1449
+ * Internal boolean shared with `micromark-extension-gfm-task-list-item` to
1450
+ * signal whether the tokenizer is tokenizing the first content of a list item
1451
+ * construct.
1452
+ */
1453
+ _gfmTasklistFirstContentOfListItem?: boolean | undefined
1454
+
1455
+ // To do: next major: remove `_gfmTableDynamicInterruptHack` (no longer
1456
+ // needed in micromark-extension-gfm-table@1.0.6).
1457
+ /**
1458
+ * Internal boolean shared with `micromark-extension-gfm-table` whose body
1459
+ * rows are not affected by normal interruption rules.
1460
+ * “Normal” rules are, for example, that an empty list item can’t interrupt:
1461
+ *
1462
+ * ````markdown
1463
+ * a
1464
+ * *
1465
+ * ````
1466
+ *
1467
+ * The above is one paragraph.
1468
+ * These rules don’t apply to table body rows:
1469
+ *
1470
+ * ````markdown
1471
+ * | a |
1472
+ * | - |
1473
+ * *
1474
+ * ````
1475
+ *
1476
+ * The above list interrupts the table.
1477
+ */
1478
+ _gfmTableDynamicInterruptHack?: boolean
1479
+ }
1480
+
1481
+ /**
1482
+ * A tokenize function sets up a state machine to handle character codes streaming in.
1483
+ *
1484
+ * @param this
1485
+ * Tokenize context.
1486
+ * @param effects
1487
+ * Effects.
1488
+ * @param ok
1489
+ * State to go to when successful.
1490
+ * @param nok
1491
+ * State to go to when unsuccessful.
1492
+ * @returns
1493
+ * First state.
1494
+ */
1495
+ declare type Tokenizer = (
1496
+ this: TokenizeContext,
1497
+ effects: Effects,
1498
+ ok: State,
1499
+ nok: State
1500
+ ) => State
1501
+
1502
+ /**
1503
+ * Enum of allowed token types.
1504
+ */
1505
+ export declare type TokenType = keyof TokenTypeMap
1506
+
1507
+ /**
1508
+ * Map of allowed token types.
1509
+ */
1510
+ export declare interface TokenTypeMap {
1511
+ // Note: these are compiled away.
1512
+ attentionSequence: 'attentionSequence' // To do: remove.
1513
+ space: 'space' // To do: remove.
1514
+
1515
+ data: 'data'
1516
+ whitespace: 'whitespace'
1517
+ lineEnding: 'lineEnding'
1518
+ lineEndingBlank: 'lineEndingBlank'
1519
+ linePrefix: 'linePrefix'
1520
+ lineSuffix: 'lineSuffix'
1521
+ atxHeading: 'atxHeading'
1522
+ atxHeadingSequence: 'atxHeadingSequence'
1523
+ atxHeadingText: 'atxHeadingText'
1524
+ autolink: 'autolink'
1525
+ autolinkEmail: 'autolinkEmail'
1526
+ autolinkMarker: 'autolinkMarker'
1527
+ autolinkProtocol: 'autolinkProtocol'
1528
+ characterEscape: 'characterEscape'
1529
+ characterEscapeValue: 'characterEscapeValue'
1530
+ characterReference: 'characterReference'
1531
+ characterReferenceMarker: 'characterReferenceMarker'
1532
+ characterReferenceMarkerNumeric: 'characterReferenceMarkerNumeric'
1533
+ characterReferenceMarkerHexadecimal: 'characterReferenceMarkerHexadecimal'
1534
+ characterReferenceValue: 'characterReferenceValue'
1535
+ codeFenced: 'codeFenced'
1536
+ codeFencedFence: 'codeFencedFence'
1537
+ codeFencedFenceSequence: 'codeFencedFenceSequence'
1538
+ codeFencedFenceInfo: 'codeFencedFenceInfo'
1539
+ codeFencedFenceMeta: 'codeFencedFenceMeta'
1540
+ codeFlowValue: 'codeFlowValue'
1541
+ codeIndented: 'codeIndented'
1542
+ codeText: 'codeText'
1543
+ codeTextData: 'codeTextData'
1544
+ codeTextPadding: 'codeTextPadding'
1545
+ codeTextSequence: 'codeTextSequence'
1546
+ content: 'content'
1547
+ definition: 'definition'
1548
+ definitionDestination: 'definitionDestination'
1549
+ definitionDestinationLiteral: 'definitionDestinationLiteral'
1550
+ definitionDestinationLiteralMarker: 'definitionDestinationLiteralMarker'
1551
+ definitionDestinationRaw: 'definitionDestinationRaw'
1552
+ definitionDestinationString: 'definitionDestinationString'
1553
+ definitionLabel: 'definitionLabel'
1554
+ definitionLabelMarker: 'definitionLabelMarker'
1555
+ definitionLabelString: 'definitionLabelString'
1556
+ definitionMarker: 'definitionMarker'
1557
+ definitionTitle: 'definitionTitle'
1558
+ definitionTitleMarker: 'definitionTitleMarker'
1559
+ definitionTitleString: 'definitionTitleString'
1560
+ emphasis: 'emphasis'
1561
+ emphasisSequence: 'emphasisSequence'
1562
+ emphasisText: 'emphasisText'
1563
+ escapeMarker: 'escapeMarker'
1564
+ hardBreakEscape: 'hardBreakEscape'
1565
+ hardBreakTrailing: 'hardBreakTrailing'
1566
+ htmlFlow: 'htmlFlow'
1567
+ htmlFlowData: 'htmlFlowData'
1568
+ htmlText: 'htmlText'
1569
+ htmlTextData: 'htmlTextData'
1570
+ image: 'image'
1571
+ label: 'label'
1572
+ labelText: 'labelText'
1573
+ labelLink: 'labelLink'
1574
+ labelImage: 'labelImage'
1575
+ labelMarker: 'labelMarker'
1576
+ labelImageMarker: 'labelImageMarker'
1577
+ labelEnd: 'labelEnd'
1578
+ link: 'link'
1579
+ paragraph: 'paragraph'
1580
+ reference: 'reference'
1581
+ referenceMarker: 'referenceMarker'
1582
+ referenceString: 'referenceString'
1583
+ resource: 'resource'
1584
+ resourceDestination: 'resourceDestination'
1585
+ resourceDestinationLiteral: 'resourceDestinationLiteral'
1586
+ resourceDestinationLiteralMarker: 'resourceDestinationLiteralMarker'
1587
+ resourceDestinationRaw: 'resourceDestinationRaw'
1588
+ resourceDestinationString: 'resourceDestinationString'
1589
+ resourceMarker: 'resourceMarker'
1590
+ resourceTitle: 'resourceTitle'
1591
+ resourceTitleMarker: 'resourceTitleMarker'
1592
+ resourceTitleString: 'resourceTitleString'
1593
+ setextHeading: 'setextHeading'
1594
+ setextHeadingText: 'setextHeadingText'
1595
+ setextHeadingLine: 'setextHeadingLine'
1596
+ setextHeadingLineSequence: 'setextHeadingLineSequence'
1597
+ strong: 'strong'
1598
+ strongSequence: 'strongSequence'
1599
+ strongText: 'strongText'
1600
+ thematicBreak: 'thematicBreak'
1601
+ thematicBreakSequence: 'thematicBreakSequence'
1602
+ blockQuote: 'blockQuote'
1603
+ blockQuotePrefix: 'blockQuotePrefix'
1604
+ blockQuoteMarker: 'blockQuoteMarker'
1605
+ blockQuotePrefixWhitespace: 'blockQuotePrefixWhitespace'
1606
+ listOrdered: 'listOrdered'
1607
+ listUnordered: 'listUnordered'
1608
+ listItemIndent: 'listItemIndent'
1609
+ listItemMarker: 'listItemMarker'
1610
+ listItemPrefix: 'listItemPrefix'
1611
+ listItemPrefixWhitespace: 'listItemPrefixWhitespace'
1612
+ listItemValue: 'listItemValue'
1613
+ chunkDocument: 'chunkDocument'
1614
+ chunkContent: 'chunkContent'
1615
+ chunkFlow: 'chunkFlow'
1616
+ chunkText: 'chunkText'
1617
+ chunkString: 'chunkString'
1618
+ }
1619
+
1620
+ declare type Value = Value_2
1621
+
1622
+ /**
1623
+ * Contents of the file.
1624
+ *
1625
+ * Can either be text, or a `Uint8Array` like structure.
1626
+ */
1627
+ declare type Value_2 = Uint8Array | string
1628
+
1629
+ export { }
1630
+
1631
+ // Source: node_modules/micromark-extension-directive/index.d.ts
1632
+
1633
+ export declare interface TokenTypeMap {
1634
+ directiveContainer: 'directiveContainer'
1635
+ directiveContainerAttributes: 'directiveContainerAttributes'
1636
+ directiveContainerAttributesMarker: 'directiveContainerAttributesMarker'
1637
+ directiveContainerAttribute: 'directiveContainerAttribute'
1638
+ directiveContainerAttributeId: 'directiveContainerAttributeId'
1639
+ directiveContainerAttributeIdValue: 'directiveContainerAttributeIdValue'
1640
+ directiveContainerAttributeClass: 'directiveContainerAttributeClass'
1641
+ directiveContainerAttributeClassValue: 'directiveContainerAttributeClassValue'
1642
+ directiveContainerAttributeName: 'directiveContainerAttributeName'
1643
+ directiveContainerAttributeInitializerMarker: 'directiveContainerAttributeInitializerMarker'
1644
+ directiveContainerAttributeValueLiteral: 'directiveContainerAttributeValueLiteral'
1645
+ directiveContainerAttributeValue: 'directiveContainerAttributeValue'
1646
+ directiveContainerAttributeValueMarker: 'directiveContainerAttributeValueMarker'
1647
+ directiveContainerAttributeValueData: 'directiveContainerAttributeValueData'
1648
+ directiveContainerContent: 'directiveContainerContent'
1649
+ directiveContainerFence: 'directiveContainerFence'
1650
+ directiveContainerLabel: 'directiveContainerLabel'
1651
+ directiveContainerLabelMarker: 'directiveContainerLabelMarker'
1652
+ directiveContainerLabelString: 'directiveContainerLabelString'
1653
+ directiveContainerName: 'directiveContainerName'
1654
+ directiveContainerSequence: 'directiveContainerSequence'
1655
+
1656
+ directiveLeaf: 'directiveLeaf'
1657
+ directiveLeafAttributes: 'directiveLeafAttributes'
1658
+ directiveLeafAttributesMarker: 'directiveLeafAttributesMarker'
1659
+ directiveLeafAttribute: 'directiveLeafAttribute'
1660
+ directiveLeafAttributeId: 'directiveLeafAttributeId'
1661
+ directiveLeafAttributeIdValue: 'directiveLeafAttributeIdValue'
1662
+ directiveLeafAttributeClass: 'directiveLeafAttributeClass'
1663
+ directiveLeafAttributeClassValue: 'directiveLeafAttributeClassValue'
1664
+ directiveLeafAttributeName: 'directiveLeafAttributeName'
1665
+ directiveLeafAttributeInitializerMarker: 'directiveLeafAttributeInitializerMarker'
1666
+ directiveLeafAttributeValueLiteral: 'directiveLeafAttributeValueLiteral'
1667
+ directiveLeafAttributeValue: 'directiveLeafAttributeValue'
1668
+ directiveLeafAttributeValueMarker: 'directiveLeafAttributeValueMarker'
1669
+ directiveLeafAttributeValueData: 'directiveLeafAttributeValueData'
1670
+ directiveLeafLabel: 'directiveLeafLabel'
1671
+ directiveLeafLabelMarker: 'directiveLeafLabelMarker'
1672
+ directiveLeafLabelString: 'directiveLeafLabelString'
1673
+ directiveLeafName: 'directiveLeafName'
1674
+ directiveLeafSequence: 'directiveLeafSequence'
1675
+
1676
+ directiveText: 'directiveText'
1677
+ directiveTextAttributes: 'directiveTextAttributes'
1678
+ directiveTextAttributesMarker: 'directiveTextAttributesMarker'
1679
+ directiveTextAttribute: 'directiveTextAttribute'
1680
+ directiveTextAttributeId: 'directiveTextAttributeId'
1681
+ directiveTextAttributeIdValue: 'directiveTextAttributeIdValue'
1682
+ directiveTextAttributeClass: 'directiveTextAttributeClass'
1683
+ directiveTextAttributeClassValue: 'directiveTextAttributeClassValue'
1684
+ directiveTextAttributeName: 'directiveTextAttributeName'
1685
+ directiveTextAttributeInitializerMarker: 'directiveTextAttributeInitializerMarker'
1686
+ directiveTextAttributeValueLiteral: 'directiveTextAttributeValueLiteral'
1687
+ directiveTextAttributeValue: 'directiveTextAttributeValue'
1688
+ directiveTextAttributeValueMarker: 'directiveTextAttributeValueMarker'
1689
+ directiveTextAttributeValueData: 'directiveTextAttributeValueData'
1690
+ directiveTextLabel: 'directiveTextLabel'
1691
+ directiveTextLabelMarker: 'directiveTextLabelMarker'
1692
+ directiveTextLabelString: 'directiveTextLabelString'
1693
+ directiveTextMarker: 'directiveTextMarker'
1694
+ directiveTextName: 'directiveTextName'
1695
+ }
1696
+
1697
+ // Source: node_modules/micromark-extension-gfm-autolink-literal/index.d.ts
1698
+
1699
+ export declare interface TokenTypeMap {
1700
+ literalAutolink: 'literalAutolink'
1701
+ literalAutolinkEmail: 'literalAutolinkEmail'
1702
+ literalAutolinkHttp: 'literalAutolinkHttp'
1703
+ literalAutolinkWww: 'literalAutolinkWww'
1704
+ }
1705
+
1706
+ // Source: node_modules/micromark-extension-gfm-footnote/index.d.ts
1707
+
1708
+ export declare interface TokenTypeMap {
1709
+ gfmFootnoteCall: 'gfmFootnoteCall'
1710
+ gfmFootnoteCallLabelMarker: 'gfmFootnoteCallLabelMarker'
1711
+ gfmFootnoteCallMarker: 'gfmFootnoteCallMarker'
1712
+ gfmFootnoteCallString: 'gfmFootnoteCallString'
1713
+ gfmFootnoteDefinition: 'gfmFootnoteDefinition'
1714
+ gfmFootnoteDefinitionIndent: 'gfmFootnoteDefinitionIndent'
1715
+ gfmFootnoteDefinitionLabel: 'gfmFootnoteDefinitionLabel'
1716
+ gfmFootnoteDefinitionLabelMarker: 'gfmFootnoteDefinitionLabelMarker'
1717
+ gfmFootnoteDefinitionLabelString: 'gfmFootnoteDefinitionLabelString'
1718
+ gfmFootnoteDefinitionMarker: 'gfmFootnoteDefinitionMarker'
1719
+ gfmFootnoteDefinitionWhitespace: 'gfmFootnoteDefinitionWhitespace'
1720
+ }
1721
+
1722
+ // Source: node_modules/micromark-extension-gfm-table/index.d.ts
1723
+
1724
+ export declare interface TokenTypeMap {
1725
+ table: 'table'
1726
+ tableBody: 'tableBody'
1727
+ tableCellDivider: 'tableCellDivider'
1728
+ tableContent: 'tableContent'
1729
+ tableData: 'tableData'
1730
+ tableDelimiter: 'tableDelimiter'
1731
+ tableDelimiterFiller: 'tableDelimiterFiller'
1732
+ tableDelimiterMarker: 'tableDelimiterMarker'
1733
+ tableDelimiterRow: 'tableDelimiterRow'
1734
+ tableHead: 'tableHead'
1735
+ tableHeader: 'tableHeader'
1736
+ tableRow: 'tableRow'
1737
+ }
1738
+
1739
+ // Source: node_modules/micromark-extension-math/index.d.ts
1740
+
1741
+ export declare interface TokenTypeMap {
1742
+ mathFlow: 'mathFlow'
1743
+ mathFlowFence: 'mathFlowFence'
1744
+ mathFlowFenceMeta: 'mathFlowFenceMeta'
1745
+ mathFlowFenceSequence: 'mathFlowFenceSequence'
1746
+ mathFlowValue: 'mathFlowValue'
1747
+ mathText: 'mathText'
1748
+ mathTextData: 'mathTextData'
1749
+ mathTextPadding: 'mathTextPadding'
1750
+ mathTextSequence: 'mathTextSequence'
1751
+ }