@alexlit/lint-kit 110.0.0 → 110.2.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.
- package/lint-staged.config.js +5 -0
- package/package.json +3 -3
- package/packages/config-commitlint/package.json +2 -2
- package/packages/config-eslint/package.json +3 -3
- package/packages/config-htmllint/README.md +24 -6
- package/packages/config-htmllint/index.js +22 -7
- package/packages/config-htmllint/package.json +4 -3
- package/packages/config-markdownlint/node_modules/entities/LICENSE +11 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode.d.ts +211 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode.js +536 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/encode.d.ts +22 -0
- package/packages/config-markdownlint/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/encode.js +77 -0
- package/packages/config-markdownlint/node_modules/entities/lib/encode.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/escape.d.ts +43 -0
- package/packages/config-markdownlint/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/escape.js +122 -0
- package/packages/config-markdownlint/node_modules/entities/lib/escape.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.js +496 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.js +69 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.js +116 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/index.js +99 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/index.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/esm/package.json +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/index.d.ts +96 -0
- package/packages/config-markdownlint/node_modules/entities/lib/index.d.ts.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/lib/index.js +126 -0
- package/packages/config-markdownlint/node_modules/entities/lib/index.js.map +1 -0
- package/packages/config-markdownlint/node_modules/entities/package.json +90 -0
- package/packages/config-markdownlint/node_modules/entities/readme.md +122 -0
- package/packages/config-markdownlint/node_modules/markdown-it/LICENSE +22 -0
- package/packages/config-markdownlint/node_modules/markdown-it/README.md +324 -0
- package/packages/config-markdownlint/node_modules/markdown-it/bin/markdown-it.mjs +107 -0
- package/packages/config-markdownlint/node_modules/markdown-it/dist/index.cjs.js +5540 -0
- package/packages/config-markdownlint/node_modules/markdown-it/dist/markdown-it.js +6963 -0
- package/packages/config-markdownlint/node_modules/markdown-it/dist/markdown-it.min.js +2 -0
- package/packages/config-markdownlint/node_modules/markdown-it/index.mjs +1 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/common/html_blocks.mjs +67 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/common/html_re.mjs +25 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/common/utils.mjs +304 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/index.mjs +11 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +77 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +49 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +66 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/index.mjs +565 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_block.mjs +134 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_core.mjs +62 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/commonmark.mjs +88 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/default.mjs +47 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/zero.mjs +70 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/renderer.mjs +322 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/ruler.mjs +340 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/blockquote.mjs +209 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/code.mjs +30 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/fence.mjs +94 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/heading.mjs +51 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/hr.mjs +40 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/html_block.mjs +69 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/lheading.mjs +82 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/list.mjs +331 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/paragraph.mjs +46 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/reference.mjs +212 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/state_block.mjs +220 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/table.mjs +228 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/block.mjs +13 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/inline.mjs +11 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/linkify.mjs +134 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/normalize.mjs +17 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/replacements.mjs +101 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +193 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/state_core.mjs +17 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/text_join.mjs +43 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/autolink.mjs +72 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/backticks.mjs +60 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +124 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +123 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/entity.mjs +51 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/escape.mjs +69 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +38 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +50 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/image.mjs +138 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/link.mjs +139 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/linkify.mjs +56 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/newline.mjs +42 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +123 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +127 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/text.mjs +86 -0
- package/packages/config-markdownlint/node_modules/markdown-it/lib/token.mjs +191 -0
- package/packages/config-markdownlint/node_modules/markdown-it/package.json +92 -0
- package/packages/config-markdownlint/node_modules/markdownlint/CHANGELOG.md +446 -0
- package/packages/config-markdownlint/node_modules/markdownlint/CONTRIBUTING.md +93 -0
- package/packages/config-markdownlint/node_modules/markdownlint/LICENSE +21 -0
- package/packages/config-markdownlint/node_modules/markdownlint/README.md +1032 -0
- package/packages/config-markdownlint/node_modules/markdownlint/demo/markdownlint-browser.js +7116 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/CustomRules.md +383 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/Prettier.md +27 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/ReleaseProcess.md +20 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/Rules.md +2462 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md001.md +37 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md003.md +59 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md004.md +49 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md005.md +53 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md007.md +52 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md009.md +51 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md010.md +56 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md011.md +30 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md012.md +38 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md013.md +58 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md014.md +54 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md018.md +27 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md019.md +28 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md020.md +29 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md021.md +31 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md022.md +52 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md023.md +33 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md024.md +44 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md025.md +49 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md026.md +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md027.md +24 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md028.md +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md029.md +98 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md030.md +82 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md031.md +50 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md032.md +55 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md033.md +27 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md034.md +50 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md035.md +42 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md036.md +45 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md037.md +37 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md038.md +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md039.md +21 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md040.md +52 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md041.md +49 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md042.md +32 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md043.md +69 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md044.md +35 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md045.md +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md046.md +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md047.md +34 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md048.md +41 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md049.md +35 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md050.md +35 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md051.md +87 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md052.md +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md053.md +38 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md054.md +100 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md055.md +54 -0
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md056.md +37 -0
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/LICENSE +21 -0
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/README.md +72 -0
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/helpers.js +1025 -0
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/micromark.cjs +445 -0
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/package.json +26 -0
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/shared.js +10 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/cache.js +21 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration.d.ts +1178 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/constants.js +14 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.d.ts +479 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.js +1550 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md001.js +25 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md003.js +45 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md004.js +79 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md005.js +81 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md007.js +92 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md009.js +89 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md010.js +63 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md011.js +49 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md012.js +35 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md013.js +99 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md014.js +57 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md018.js +38 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md019.js +42 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md020.js +65 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md021.js +65 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md022.js +116 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md023.js +41 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md024.js +45 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md025.js +35 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md026.js +54 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md027.js +42 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md028.js +47 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md029.js +70 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md030.js +66 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md031.js +43 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md032.js +76 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md033.js +46 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md034.js +105 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md035.js +31 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md036.js +50 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md037.js +99 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md038.js +106 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md039.js +71 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md040.js +42 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md041.js +37 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md042.js +53 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md043.js +67 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md044.js +115 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md045.js +67 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md046.js +40 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md047.js +31 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md048.js +43 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md049-md050.js +108 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md051.js +176 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md052.js +42 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md053.js +62 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md054.js +130 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md055.js +80 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md056.js +52 -0
- package/packages/config-markdownlint/node_modules/markdownlint/lib/rules.js +67 -0
- package/packages/config-markdownlint/node_modules/markdownlint/package.json +103 -0
- package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.jsonc +304 -0
- package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.yaml +272 -0
- package/packages/config-markdownlint/node_modules/markdownlint/schema/ValidatingConfiguration.md +28 -0
- package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema.json +1814 -0
- package/packages/config-markdownlint/node_modules/markdownlint/style/all.json +5 -0
- package/packages/config-markdownlint/node_modules/markdownlint/style/cirosantilli.json +22 -0
- package/packages/config-markdownlint/node_modules/markdownlint/style/prettier.json +26 -0
- package/packages/config-markdownlint/node_modules/markdownlint/style/relaxed.json +12 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/LICENSE +21 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/README.md +10 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-browser.js +2 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-html-browser.js +2 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.cjs +1 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.d.ts +1751 -0
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/package.json +46 -0
- package/packages/config-markdownlint/package.json +2 -2
- package/packages/config-prettier/package.json +2 -2
- package/packages/config-stylelint/index.js +1 -1
- package/packages/config-stylelint/package.json +3 -3
- package/.linthtmlrc.cjs +0 -5
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
const {
|
|
7
|
+
directive, gfmAutolinkLiteral, gfmFootnote, gfmTable, math,
|
|
8
|
+
parse, postprocess, preprocess
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
} = require("markdownlint-micromark");
|
|
11
|
+
const { newLineRe } = require("./shared.js");
|
|
12
|
+
|
|
13
|
+
const flatTokensSymbol = Symbol("flat-tokens");
|
|
14
|
+
|
|
15
|
+
/** @typedef {import("markdownlint-micromark").Event} Event */
|
|
16
|
+
/** @typedef {import("markdownlint-micromark").ParseOptions} ParseOptions */
|
|
17
|
+
/** @typedef {import("markdownlint-micromark").TokenType} TokenType */
|
|
18
|
+
/** @typedef {import("../lib/markdownlint.js").MicromarkToken} Token */
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Returns whether a token is an htmlFlow type containing an HTML comment.
|
|
22
|
+
*
|
|
23
|
+
* @param {Token} token Micromark token.
|
|
24
|
+
* @returns {boolean} True iff token is htmlFlow containing a comment.
|
|
25
|
+
*/
|
|
26
|
+
function isHtmlFlowComment(token) {
|
|
27
|
+
const { text, type } = token;
|
|
28
|
+
if (
|
|
29
|
+
(type === "htmlFlow") &&
|
|
30
|
+
text.startsWith("<!--") &&
|
|
31
|
+
text.endsWith("-->")
|
|
32
|
+
) {
|
|
33
|
+
const comment = text.slice(4, -3);
|
|
34
|
+
return (
|
|
35
|
+
!comment.startsWith(">") &&
|
|
36
|
+
!comment.startsWith("->") &&
|
|
37
|
+
!comment.endsWith("-")
|
|
38
|
+
// The following condition from the CommonMark specification is commented
|
|
39
|
+
// to avoid parsing HTML comments that include "--" because that is NOT a
|
|
40
|
+
// condition of the HTML specification.
|
|
41
|
+
// https://spec.commonmark.org/0.30/#raw-html
|
|
42
|
+
// https://html.spec.whatwg.org/multipage/syntax.html#comments
|
|
43
|
+
// && !comment.includes("--")
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Parses a Markdown document and returns Micromark events.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} markdown Markdown document.
|
|
53
|
+
* @param {ParseOptions} [micromarkOptions] Options for micromark.
|
|
54
|
+
* @param {boolean} [referencesDefined] Treat references as defined.
|
|
55
|
+
* @returns {Event[]} Micromark events.
|
|
56
|
+
*/
|
|
57
|
+
function getMicromarkEvents(
|
|
58
|
+
markdown,
|
|
59
|
+
micromarkOptions = {},
|
|
60
|
+
referencesDefined = true
|
|
61
|
+
) {
|
|
62
|
+
|
|
63
|
+
// Customize options object to add useful extensions
|
|
64
|
+
micromarkOptions.extensions = micromarkOptions.extensions || [];
|
|
65
|
+
micromarkOptions.extensions.push(
|
|
66
|
+
directive(),
|
|
67
|
+
gfmAutolinkLiteral(),
|
|
68
|
+
gfmFootnote(),
|
|
69
|
+
gfmTable(),
|
|
70
|
+
math()
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
// Use micromark to parse document into Events
|
|
74
|
+
const encoding = undefined;
|
|
75
|
+
const eol = true;
|
|
76
|
+
const parseContext = parse(micromarkOptions);
|
|
77
|
+
if (referencesDefined) {
|
|
78
|
+
// Customize ParseContext to treat all references as defined
|
|
79
|
+
parseContext.defined.includes = (searchElement) => searchElement.length > 0;
|
|
80
|
+
}
|
|
81
|
+
const chunks = preprocess()(markdown, encoding, eol);
|
|
82
|
+
const events = postprocess(parseContext.document().write(chunks));
|
|
83
|
+
return events;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Parses a Markdown document and returns (frozen) tokens.
|
|
88
|
+
*
|
|
89
|
+
* @param {string} markdown Markdown document.
|
|
90
|
+
* @param {ParseOptions} micromarkOptions Options for micromark.
|
|
91
|
+
* @param {boolean} referencesDefined Treat references as defined.
|
|
92
|
+
* @param {number} lineDelta Offset to apply to start/end line.
|
|
93
|
+
* @param {Token} [ancestor] Parent of top-most tokens.
|
|
94
|
+
* @returns {Token[]} Micromark tokens (frozen).
|
|
95
|
+
*/
|
|
96
|
+
function micromarkParseWithOffset(
|
|
97
|
+
markdown,
|
|
98
|
+
micromarkOptions,
|
|
99
|
+
referencesDefined,
|
|
100
|
+
lineDelta,
|
|
101
|
+
ancestor
|
|
102
|
+
) {
|
|
103
|
+
// Use micromark to parse document into Events
|
|
104
|
+
const events = getMicromarkEvents(
|
|
105
|
+
markdown, micromarkOptions, referencesDefined
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
// Create Token objects
|
|
109
|
+
const document = [];
|
|
110
|
+
let flatTokens = [];
|
|
111
|
+
/** @type {Token} */
|
|
112
|
+
const root = {
|
|
113
|
+
"type": "data",
|
|
114
|
+
"startLine": -1,
|
|
115
|
+
"startColumn": -1,
|
|
116
|
+
"endLine": -1,
|
|
117
|
+
"endColumn": -1,
|
|
118
|
+
"text": "ROOT",
|
|
119
|
+
"children": document,
|
|
120
|
+
"parent": null
|
|
121
|
+
};
|
|
122
|
+
const history = [ root ];
|
|
123
|
+
let current = root;
|
|
124
|
+
// eslint-disable-next-line jsdoc/valid-types
|
|
125
|
+
/** @type ParseOptions | null */
|
|
126
|
+
let reparseOptions = null;
|
|
127
|
+
let lines = null;
|
|
128
|
+
let skipHtmlFlowChildren = false;
|
|
129
|
+
for (const event of events) {
|
|
130
|
+
const [ kind, token, context ] = event;
|
|
131
|
+
const { type, start, end } = token;
|
|
132
|
+
const { "column": startColumn, "line": startLine } = start;
|
|
133
|
+
const { "column": endColumn, "line": endLine } = end;
|
|
134
|
+
const text = context.sliceSerialize(token);
|
|
135
|
+
if ((kind === "enter") && !skipHtmlFlowChildren) {
|
|
136
|
+
const previous = current;
|
|
137
|
+
history.push(previous);
|
|
138
|
+
current = {
|
|
139
|
+
type,
|
|
140
|
+
"startLine": startLine + lineDelta,
|
|
141
|
+
startColumn,
|
|
142
|
+
"endLine": endLine + lineDelta,
|
|
143
|
+
endColumn,
|
|
144
|
+
text,
|
|
145
|
+
"children": [],
|
|
146
|
+
"parent": ((previous === root) ? (ancestor || null) : previous)
|
|
147
|
+
};
|
|
148
|
+
previous.children.push(current);
|
|
149
|
+
flatTokens.push(current);
|
|
150
|
+
if ((current.type === "htmlFlow") && !isHtmlFlowComment(current)) {
|
|
151
|
+
skipHtmlFlowChildren = true;
|
|
152
|
+
if (!reparseOptions || !lines) {
|
|
153
|
+
reparseOptions = {
|
|
154
|
+
...micromarkOptions,
|
|
155
|
+
"extensions": [
|
|
156
|
+
{
|
|
157
|
+
"disable": {
|
|
158
|
+
"null": [ "codeIndented", "htmlFlow" ]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
};
|
|
163
|
+
lines = markdown.split(newLineRe);
|
|
164
|
+
}
|
|
165
|
+
const reparseMarkdown = lines
|
|
166
|
+
.slice(current.startLine - 1, current.endLine)
|
|
167
|
+
.join("\n");
|
|
168
|
+
const tokens = micromarkParseWithOffset(
|
|
169
|
+
reparseMarkdown,
|
|
170
|
+
reparseOptions,
|
|
171
|
+
referencesDefined,
|
|
172
|
+
current.startLine - 1,
|
|
173
|
+
current
|
|
174
|
+
);
|
|
175
|
+
current.children = tokens;
|
|
176
|
+
// Avoid stack overflow of Array.push(...spread)
|
|
177
|
+
// eslint-disable-next-line unicorn/prefer-spread
|
|
178
|
+
flatTokens = flatTokens.concat(tokens[flatTokensSymbol]);
|
|
179
|
+
}
|
|
180
|
+
} else if (kind === "exit") {
|
|
181
|
+
if (type === "htmlFlow") {
|
|
182
|
+
skipHtmlFlowChildren = false;
|
|
183
|
+
}
|
|
184
|
+
if (!skipHtmlFlowChildren) {
|
|
185
|
+
Object.freeze(current.children);
|
|
186
|
+
Object.freeze(current);
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
current = history.pop();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Return document
|
|
194
|
+
Object.defineProperty(document, flatTokensSymbol, { "value": flatTokens });
|
|
195
|
+
Object.freeze(document);
|
|
196
|
+
return document;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Parses a Markdown document and returns (frozen) tokens.
|
|
201
|
+
*
|
|
202
|
+
* @param {string} markdown Markdown document.
|
|
203
|
+
* @param {ParseOptions} [micromarkOptions] Options for micromark.
|
|
204
|
+
* @param {boolean} [referencesDefined] Treat references as defined.
|
|
205
|
+
* @returns {Token[]} Micromark tokens (frozen).
|
|
206
|
+
*/
|
|
207
|
+
function micromarkParse(
|
|
208
|
+
markdown,
|
|
209
|
+
micromarkOptions = {},
|
|
210
|
+
referencesDefined = true
|
|
211
|
+
) {
|
|
212
|
+
return micromarkParseWithOffset(
|
|
213
|
+
markdown,
|
|
214
|
+
micromarkOptions,
|
|
215
|
+
referencesDefined,
|
|
216
|
+
0
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @callback AllowedPredicate
|
|
222
|
+
* @param {Token} token Micromark token.
|
|
223
|
+
* @returns {boolean} True iff allowed.
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @callback TransformPredicate
|
|
228
|
+
* @param {Token} token Micromark token.
|
|
229
|
+
* @returns {Token[]} Child tokens.
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Filter a list of Micromark tokens by predicate.
|
|
234
|
+
*
|
|
235
|
+
* @param {Token[]} tokens Micromark tokens.
|
|
236
|
+
* @param {AllowedPredicate} [allowed] Allowed token predicate.
|
|
237
|
+
* @param {TransformPredicate} [transformChildren] Transform predicate.
|
|
238
|
+
* @returns {Token[]} Filtered tokens.
|
|
239
|
+
*/
|
|
240
|
+
function filterByPredicate(tokens, allowed, transformChildren) {
|
|
241
|
+
allowed = allowed || (() => true);
|
|
242
|
+
const result = [];
|
|
243
|
+
const queue = [
|
|
244
|
+
{
|
|
245
|
+
"array": tokens,
|
|
246
|
+
"index": 0
|
|
247
|
+
}
|
|
248
|
+
];
|
|
249
|
+
while (queue.length > 0) {
|
|
250
|
+
const current = queue[queue.length - 1];
|
|
251
|
+
const { array, index } = current;
|
|
252
|
+
if (index < array.length) {
|
|
253
|
+
const token = array[current.index++];
|
|
254
|
+
if (allowed(token)) {
|
|
255
|
+
result.push(token);
|
|
256
|
+
}
|
|
257
|
+
const { children } = token;
|
|
258
|
+
if (children.length > 0) {
|
|
259
|
+
const transformed =
|
|
260
|
+
transformChildren ? transformChildren(token) : children;
|
|
261
|
+
queue.push(
|
|
262
|
+
{
|
|
263
|
+
"array": transformed,
|
|
264
|
+
"index": 0
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
} else {
|
|
269
|
+
queue.pop();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return result;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Filter a list of Micromark tokens by type.
|
|
277
|
+
*
|
|
278
|
+
* @param {Token[]} tokens Micromark tokens.
|
|
279
|
+
* @param {TokenType[]} types Types to allow.
|
|
280
|
+
* @returns {Token[]} Filtered tokens.
|
|
281
|
+
*/
|
|
282
|
+
function filterByTypes(tokens, types) {
|
|
283
|
+
const predicate = (token) => types.includes(token.type);
|
|
284
|
+
const flatTokens = tokens[flatTokensSymbol];
|
|
285
|
+
if (flatTokens) {
|
|
286
|
+
return flatTokens.filter(predicate);
|
|
287
|
+
}
|
|
288
|
+
return filterByPredicate(tokens, predicate);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Gets the heading level of a Micromark heading tokan.
|
|
293
|
+
*
|
|
294
|
+
* @param {Token} heading Micromark heading token.
|
|
295
|
+
* @returns {number} Heading level.
|
|
296
|
+
*/
|
|
297
|
+
function getHeadingLevel(heading) {
|
|
298
|
+
const headingSequence = filterByTypes(
|
|
299
|
+
heading.children,
|
|
300
|
+
[ "atxHeadingSequence", "setextHeadingLineSequence" ]
|
|
301
|
+
);
|
|
302
|
+
let level = 1;
|
|
303
|
+
const { text } = headingSequence[0];
|
|
304
|
+
if (text[0] === "#") {
|
|
305
|
+
level = Math.min(text.length, 6);
|
|
306
|
+
} else if (text[0] === "-") {
|
|
307
|
+
level = 2;
|
|
308
|
+
}
|
|
309
|
+
return level;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* HTML tag information.
|
|
314
|
+
*
|
|
315
|
+
* @typedef {Object} HtmlTagInfo
|
|
316
|
+
* @property {boolean} close True iff close tag.
|
|
317
|
+
* @property {string} name Tag name.
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Gets information about the tag in an HTML token.
|
|
322
|
+
*
|
|
323
|
+
* @param {Token} token Micromark token.
|
|
324
|
+
* @returns {HtmlTagInfo | null} HTML tag information.
|
|
325
|
+
*/
|
|
326
|
+
function getHtmlTagInfo(token) {
|
|
327
|
+
const htmlTagNameRe = /^<([^!>][^/\s>]*)/;
|
|
328
|
+
if (token.type === "htmlText") {
|
|
329
|
+
const match = htmlTagNameRe.exec(token.text);
|
|
330
|
+
if (match) {
|
|
331
|
+
const name = match[1];
|
|
332
|
+
const close = name.startsWith("/");
|
|
333
|
+
return {
|
|
334
|
+
close,
|
|
335
|
+
"name": close ? name.slice(1) : name
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Gets the nearest parent of the specified type for a Micromark token.
|
|
344
|
+
*
|
|
345
|
+
* @param {Token} token Micromark token.
|
|
346
|
+
* @param {TokenType[]} types Types to allow.
|
|
347
|
+
* @returns {Token | null} Parent token.
|
|
348
|
+
*/
|
|
349
|
+
function getTokenParentOfType(token, types) {
|
|
350
|
+
/** @type {Token | null} */
|
|
351
|
+
let current = token;
|
|
352
|
+
while ((current = current.parent) && !types.includes(current.type)) {
|
|
353
|
+
// Empty
|
|
354
|
+
}
|
|
355
|
+
return current;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Get the text of the first match from a list of Micromark tokens by type.
|
|
360
|
+
*
|
|
361
|
+
* @param {Token[]} tokens Micromark tokens.
|
|
362
|
+
* @param {TokenType} type Type to match.
|
|
363
|
+
* @returns {string | null} Text of token.
|
|
364
|
+
*/
|
|
365
|
+
function getTokenTextByType(tokens, type) {
|
|
366
|
+
const filtered = tokens.filter((token) => token.type === type);
|
|
367
|
+
return (filtered.length > 0) ? filtered[0].text : null;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Determines if a Micromark token has an htmlFlow-type parent.
|
|
372
|
+
*
|
|
373
|
+
* @param {Token} token Micromark token.
|
|
374
|
+
* @returns {boolean} True iff the token has an htmlFlow-type parent.
|
|
375
|
+
*/
|
|
376
|
+
function inHtmlFlow(token) {
|
|
377
|
+
return getTokenParentOfType(token, [ "htmlFlow" ]) !== null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Determines a list of Micromark tokens matches and returns a subset.
|
|
382
|
+
*
|
|
383
|
+
* @param {Token[]} tokens Micromark tokens.
|
|
384
|
+
* @param {TokenType[]} matchTypes Types to match.
|
|
385
|
+
* @param {TokenType[]} [resultTypes] Types to return.
|
|
386
|
+
* @returns {Token[] | null} Matching tokens.
|
|
387
|
+
*/
|
|
388
|
+
function matchAndGetTokensByType(tokens, matchTypes, resultTypes) {
|
|
389
|
+
if (tokens.length !== matchTypes.length) {
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
resultTypes = resultTypes || matchTypes;
|
|
393
|
+
const result = [];
|
|
394
|
+
// eslint-disable-next-line unicorn/no-for-loop
|
|
395
|
+
for (let i = 0; i < matchTypes.length; i++) {
|
|
396
|
+
if (tokens[i].type !== matchTypes[i]) {
|
|
397
|
+
return null;
|
|
398
|
+
} else if (resultTypes.includes(matchTypes[i])) {
|
|
399
|
+
result.push(tokens[i]);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return result;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Returns the specified token iff it is of the desired type.
|
|
407
|
+
*
|
|
408
|
+
* @param {Token} token Micromark token candidate.
|
|
409
|
+
* @param {TokenType} type Desired type.
|
|
410
|
+
* @returns {Token | null} Token instance.
|
|
411
|
+
*/
|
|
412
|
+
function tokenIfType(token, type) {
|
|
413
|
+
return (token && (token.type === type)) ? token : null;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Set containing token types that do not contain content.
|
|
418
|
+
*
|
|
419
|
+
* @type {Set<TokenType>}
|
|
420
|
+
*/
|
|
421
|
+
const nonContentTokens = new Set([
|
|
422
|
+
"blockQuoteMarker",
|
|
423
|
+
"blockQuotePrefix",
|
|
424
|
+
"blockQuotePrefixWhitespace",
|
|
425
|
+
"lineEnding",
|
|
426
|
+
"lineEndingBlank",
|
|
427
|
+
"linePrefix",
|
|
428
|
+
"listItemIndent"
|
|
429
|
+
]);
|
|
430
|
+
|
|
431
|
+
module.exports = {
|
|
432
|
+
"parse": micromarkParse,
|
|
433
|
+
filterByPredicate,
|
|
434
|
+
filterByTypes,
|
|
435
|
+
getHeadingLevel,
|
|
436
|
+
getHtmlTagInfo,
|
|
437
|
+
getMicromarkEvents,
|
|
438
|
+
getTokenParentOfType,
|
|
439
|
+
getTokenTextByType,
|
|
440
|
+
inHtmlFlow,
|
|
441
|
+
isHtmlFlowComment,
|
|
442
|
+
matchAndGetTokensByType,
|
|
443
|
+
nonContentTokens,
|
|
444
|
+
tokenIfType
|
|
445
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "markdownlint-rule-helpers",
|
|
3
|
+
"version": "0.25.0",
|
|
4
|
+
"description": "A collection of markdownlint helper functions for custom rules",
|
|
5
|
+
"main": "./helpers.js",
|
|
6
|
+
"exports": "./helpers.js",
|
|
7
|
+
"author": "David Anson (https://dlaa.me/)",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://github.com/DavidAnson/markdownlint",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/DavidAnson/markdownlint.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": "https://github.com/DavidAnson/markdownlint/issues",
|
|
15
|
+
"funding": "https://github.com/sponsors/DavidAnson",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"markdownlint-micromark": "0.1.2"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"markdownlint",
|
|
24
|
+
"markdownlint-rule"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
// Regular expression for matching common newline characters
|
|
6
|
+
// See NEWLINES_RE in markdown-it/lib/rules_core/normalize.js
|
|
7
|
+
module.exports.newLineRe = /\r\n?|\n/g;
|
|
8
|
+
|
|
9
|
+
// Regular expression for matching next lines
|
|
10
|
+
module.exports.nextLinesRe = /[\r\n][\s\S]*$/;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
const map = new Map();
|
|
6
|
+
|
|
7
|
+
module.exports.set = (keyValuePairs) => {
|
|
8
|
+
for (const [ key, value ] of Object.entries(keyValuePairs)) {
|
|
9
|
+
map.set(key, value);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
module.exports.clear = () => map.clear();
|
|
13
|
+
|
|
14
|
+
module.exports.codeBlockAndSpanRanges =
|
|
15
|
+
() => map.get("codeBlockAndSpanRanges");
|
|
16
|
+
module.exports.flattenedLists =
|
|
17
|
+
() => map.get("flattenedLists");
|
|
18
|
+
module.exports.lineMetadata =
|
|
19
|
+
() => map.get("lineMetadata");
|
|
20
|
+
module.exports.referenceLinkImageData =
|
|
21
|
+
() => map.get("referenceLinkImageData");
|