Commit graph

203 commits

Author SHA1 Message Date
David Anson
ce9713038b Remove link to deprecated custom rule examples in https://github.com/microsoft/vscode-docs-authoring. 2023-03-08 20:14:54 -08:00
David Anson
4b27bac79b Update all references to "params.tokens" to "params.parsers.markdownit.tokens" for clarity. 2023-02-25 15:50:57 -08:00
David Anson
ddb71ed1e8 Update tests and documentation for MD034/no-bare-urls to explain edge case behavior. 2023-02-25 15:50:57 -08:00
David Anson
b990b3ea77 Reimplement MD034/no-bare-urls using micromark tokens (fixes #707). 2023-02-25 15:50:57 -08:00
David Anson
0e0060d660 Fix newly-broken link in MD051/link-fragments documentation. 2022-12-31 21:06:48 +00:00
David Anson
aa3635187a Update "Fixable: Most violations can be fixed by tooling" to use the word "Some" to avoid over-promising. 2022-12-16 13:57:57 -08:00
David Anson
ac8f495ea2 Update MD051/link-fragments to identify and fix scenarios where the link fragment has the wrong case (fixes #605). 2022-12-16 13:50:38 -08:00
David Anson
cb16438a41 Add various Markdown lists as formatted by Prettier with the default --tab-width of 2 and the not uncommon alternate of 4, update Prettier.md with the relevant configuration (produced using v2.8.1 of https://prettier.io/playground/) (refs #652). 2022-12-13 20:24:21 -08:00
David Anson
c9f7a323cc Add ReleaseProcess.md to explain the release process (fixes #562). 2022-12-13 16:42:54 -08:00
OnkarRuikar
068b090293 Mention 'markdownlint-rule-search-replace' rule in documentation 2022-12-09 20:12:05 -08:00
David Anson
fc98a7c59d Update documentation for MD003/heading-style to call out an additional scenario (fixes #644). 2022-12-08 22:30:17 -08:00
David Anson
a86998bf6f Update documentation for MD038/no-space-in-code to expand rationale (fixes #641). 2022-12-08 22:07:10 -08:00
Adam Moss
cc701ea700 fix(prettier): add ordered list configuration
Signed-off-by: Adam Moss <2951486+adam-moss@users.noreply.github.com>
2022-11-22 11:10:00 -08:00
David Anson
2e63bf7dd8 Configure all rules that allow style=consistent (or similar) to require an explicit style for consistency across the project. 2022-11-13 20:53:17 -08:00
David Anson
91dd6dcb1d Enable "line-length": { "strict": true } for all user-facing Markdown files in the repository. 2022-11-12 17:53:47 -08:00
Sébastien Règne
72439f42c6
Update MD040/fenced-code-language to add language_only parameter to reject extra data in info string. 2022-11-10 22:07:04 -08:00
David Anson
99a3f164a9 Update MD013/line-length to permit long link/image reference definitions in all modes because they can not be easily split. 2022-11-08 21:40:33 -08:00
Sébastien Règne
b73ab7fd91
Update MD040/fenced-code-language to use case-sensitive comparison for allowed languages (fixes #627). 2022-11-05 17:41:27 -07:00
David Anson
30353cc733 Edit description of MD051/link-fragments to clarify that it implements the GitHub algorithm for creating section links (which converts to lowercase) (refs #591). 2022-11-05 16:49:38 -07:00
David Anson
52044c8181 Mostly standardize on putting rule names and tags in code spans in documentation. 2022-10-30 15:13:19 -07:00
David Anson
37baddcf27 Generate Rules.md and md###.md files from metadata, improve Parameters documentation by referencing schema. 2022-10-29 23:21:45 -07:00
Mateus Ferreira
37f74ee958
Update MD043/required-headings to add match_case parameter (fixes #613). 2022-10-22 00:15:50 -07:00
Sam Chen
01ba757d3a
Update MD040/fenced-code-language to add allowed_languages parameter (fixes #610). 2022-10-17 12:29:29 -07:00
David Anson
4e1692ffed Minor tweaks to previous commit. 2022-10-06 04:21:08 +00:00
Josh Goldberg
82a5de0821 Add style/prettier.json (fixes #592). 2022-10-06 04:15:23 +00:00
David Anson
a6489acd6b Update MD053/link-image-reference-definitions to add ignored_definitions parameter (default to ["//"]) (fixes #545). 2022-08-02 20:36:47 -07:00
David Anson
c5ca661b96 Add MD052/reference-links-images and MD053/link-image-reference-definitions for reporting issues with link and image references (fixes #144, fixes #390, fixes #425, fixes #456). 2022-06-01 20:26:01 -07:00
David Anson
b447c809bd Update MD010/no-hard-tabs to add ignore_code_languages parameter (fixes #383). 2022-04-28 21:09:06 -07:00
David Anson
0f845e9ba1 Update MD044/proper-names to add html_elements parameter (fixes #435). 2022-04-25 21:50:33 -07:00
David Anson
db5d9f6dbb Update previous commit for MD051/link-fragments to rename, refactor, add support for HTML anchors, and validate against
markdown-link-check (fixes #253).
2022-04-16 14:08:56 -07:00
Divlo
33ee1cd85e Initial implementation of MD051/valid-link-fragments (refs #253, closes #495). 2022-04-16 14:08:56 -07:00
David Anson
4affefc68d Add proper-names rule to .markdownlint.json, update tests to use that file, fix resulting issues. 2022-03-10 06:11:38 +00:00
Ashish Gupta
e4a42155d3
Update "markdown" to "Markdown" in Rules.md (fixes #507). 2022-03-07 21:12:14 -08:00
David Anson
d57b4770ed Update MD010/no-hard-tabs to allow tabs in code spans when the code_blocks parameter is set to false (for consistency) (fixes #454). 2021-12-17 17:24:00 -08:00
David Anson
8fde53cf31 Update MD035/hr-style to correctly match thematic breaks in block quotes. 2021-12-14 23:05:03 -08:00
David Anson
517eb42015 Update MD007/ul-indent to support start_indent parameter (fixes #337, closes #397). 2021-12-13 21:49:43 -08:00
David Anson
2056d81682 Add support for asynchronous custom rules (ex: to read a file or make a network request). 2021-12-11 21:44:25 -08:00
David Anson
291597edb9 Update rules MD049/emphasis-style and MD050/strong-style to include range and fixInfo when reporting issues (i.e., to be automatically fixable). 2021-11-28 23:26:02 -08:00
David Anson
1e82f76596 Reimplement inlineCodeSpanRanges as codeBlockAndSpanRanges to fix an issue with unterminated code spans (and for flexibility). 2021-11-23 04:51:20 +00:00
Sébastien Règne
39724b991a
Add MD049/emphasis-style (fixes #150). 2021-10-23 21:54:58 -07:00
Sébastien Règne
ab9e5875a2
Add MD050/strong-style (fixes #150). 2021-10-20 21:42:48 -07:00
David Anson
a5bfaa8a7d Correct typo-ed references to RuleOnErrorInfo.details to detail. 2021-09-25 16:23:37 -07:00
David Anson
580e57ddee Add Prettier.md to document compatibility issues (fixes #410). 2021-08-13 22:18:39 -07:00
Yash Singh
47ff95e8d2
Add spaces_per_tab parameter to MD010/no-hard-tabs (fixes #384). (#385) 2021-04-09 16:33:01 -07:00
Yash Singh
4f9b698586
Add note for plain text (#376). 2021-03-09 13:00:04 -08:00
David Anson
ed325ebb56 Update MD004/ul-style to auto-fix violations (fixes #351). 2021-02-06 15:49:02 -08:00
David Anson
d2d4b310b9 Remove override of line-length rule for Rules.md validation. 2021-01-31 16:02:49 -08:00
David Anson
1d042aa3fd Update MD041/first-line-heading to recognize HTML headings (fixes #366). 2021-01-31 15:51:57 -08:00
David Anson
428cf20dc4 Minor tweak to previous commit. 2020-12-30 16:45:15 -08:00
Yash Singh
2a198a5ee4 Fix grammar issues in Rules.md. 2020-12-30 16:42:34 -08:00