Commit graph

203 commits

Author SHA1 Message Date
David Anson
e20502c494 Update MD043/required-headings to treat "*" as "zero or more" and "+" as "one or more" (fixes #281). 2020-11-23 20:47:28 -08:00
David Anson
c693a9a3d8 Update MD026/no-trailing-punctuation to ignore the trailing semicolon of HTML entity references (fixes #320). 2020-11-23 15:23:39 -08:00
David Anson
09c5736385 Remove automatic fix from MD028/no-blanks-blockquote due to ambiguity (fixes #315). 2020-11-23 14:57:19 -08:00
David Anson
bd63c57fde Update MD009/no-trailing-spaces to allow trailing spaces in fenced code blocks (fixes #292). 2020-11-21 16:53:31 -08:00
David Anson
6c1bc8ecb5 Allow question mark by default for MD026/no-trailing-punctuation (fixes #276). 2020-11-17 20:32:17 -08:00
David Anson
bb157b2ce7 Support JSON front matter as used by the Hugo site generator (fixes #270). 2020-11-14 19:40:15 -08:00
David Anson
82cf68023f Update recently-broken link in Rules.md. 2020-09-30 21:59:22 -07:00
David Anson
e1eb81cd21 Add lint rules from eslint-plugin-node. 2020-09-06 19:49:35 -07:00
David Anson
94d5432f4d Improve README.md/CustomRules.md, add CustomRules.md/Rules.md to tests. 2020-09-06 16:31:26 -07:00
David Anson
7ce5fd1597 Fix newly broken link to Microsoft/vscode-docs-authoring repository. 2020-08-19 21:17:21 -07:00
David Anson
ff40130e3e Minor updates to CONTRIBUTING.md, indefinite article fixes for Rules.md. 2020-08-15 16:57:43 -07:00
David Anson
e616efe594 Update two external URLs that have changed. 2020-08-02 14:04:42 -07:00
David Anson
53a0ba18d8 Add note to all rules in Rules.md that can be fixed automatically by tooling. 2020-06-21 23:11:33 -07:00
David Anson
320acfd7cc Update MD034/no-bare-urls to allow quoting bare URLs. 2020-04-08 21:58:52 -07:00
David Anson
65b19b703b Update MD038/no-space-in-code to allow the "single leading and trailing space" scenario (fixes #271). 2020-04-06 20:43:38 -07:00
David Anson
dd66a33d75 Update MD034/no-bare-urls to ignore "[link]" scenario that conflicts with MD011/no-reversed-links (fixes #268). 2020-04-01 20:21:36 -07:00
David Anson
de86a26e4e Update MD013/line-length to support stern parameter (fixes #256). 2020-03-22 14:06:29 -07:00
David Anson
742f2a8d79 Update MD029/ol-prefix to treat 0/1/2 as "ordered" (fixes #250). 2020-03-18 21:50:28 -07:00
David Anson
0f73f06232
Add note about blocks and list indentation to MD029/ol-prefix. 2020-03-05 11:41:59 -08:00
David Anson
a1249ad24d Add "Rationale" section to documentation for every rule (fixes #228). 2020-01-20 15:10:17 -08:00
David Anson
9ac06456d1 Update MD014/commands-show-output to allow blanks and output-less commands (fixes #241). 2020-01-18 21:28:42 -08:00
David Anson
d15324478c Deprecate MD006/ul-start-left in favor of MD007/ul-indent. 2020-01-13 19:19:49 -08:00
Jeremy Thomerson
9aeddedb7d Allow for first level indentation of lists in MD007/ul-indent (fixes #242). 2020-01-01 12:53:03 -08:00
David Anson
b39e5e309e Update MD013/line-length to include strict mode (fixes #237). 2019-12-12 21:22:45 -08:00
David Anson
6f3c67f760 Update MD009/no-trailing-spaces to include strict mode (fixes #216). 2019-12-09 22:05:57 -08:00
David Anson
0a9ac73524 Introduce type declaration file for project after updating typescript dependency to 3.7.2. 2019-11-10 19:26:55 -08:00
Marius Lichtblau
e9b3cc4c18 Add fenced code block style rule (#224) (fixes #223). 2019-10-24 20:26:27 -07:00
David Anson
fa9e08cf53 Merge fixInfo branch to introduce automatic fix ability for built-in and custom rules (fixes #80). 2019-09-28 17:16:08 -07:00
David Anson
d974e78e3f Update README.md and CustomRules.md documentation of new fixInfo behavior. 2019-09-19 21:49:42 -07:00
David Anson
a062e7c6bd Update MD022/MD031/MD032 to report fixInfo for violations, normalize input to fixErrors. 2019-08-28 21:47:07 -07:00
David Anson
cdd87e647f Add infrastructure for rules to include fix information when logging violations, update MD047 (refs #80). 2019-08-16 19:56:52 -07:00
Marco Bonelli
1667de2d9d Rules: update MD032 removing deprecated paragraph (fixes #211). (#212)
"Lazy continuation" is allowed for list items according to the CommonMark
specification.
2019-08-06 11:42:16 -07:00
David Anson
c5b74d22b9 Update MD031/blanks-around-fences to include list_items parameter (fixes #200). 2019-08-02 22:58:41 -07:00
David Anson
91b4fcd55f Update MD026/no-trailing-punctuation to handle empty punctuation paramater, escape for RegExp (fixes #205). 2019-07-26 23:03:56 -07:00
Travis C. LaGrone
37236df18e Strike-through deprecated rule headings (fixes #203).
Changes:
- Formats the headings of deprecated rules using strikethrough in the 'Rules /
Aliases' section of the 'README.md' file and in the 'doc/Rules.md' file.
- Updates the 'readme' and 'doc' tests in the 'test/markdownlint-test.js' file
to permit their respective rule headings to be formatted using strikethrough.

Benefits:
- Indicates rule deprecation status 'at a glance'.

(fixes #203)
2019-07-08 19:10:08 +01:00
David Anson
64351f73be Update MD013/line-length with new code_block_line_length parameter (fixes #184). 2019-06-07 19:57:15 -07:00
David Anson
1d8b9e7e62 Add full-width punctuation characters to MD026/no-trailing-punctuation and MD036/no-emphasis-as-heading (fixes #192). 2019-06-06 22:21:31 -07:00
KitoW
a977d0dcbc Add MD047/single-trailing-newline for enforcing new lines at the end of file (fixes #89). 2019-04-19 20:13:07 -07:00
David Anson
0af999e218 Implement rule MD046/code-block-style from Ruby version. 2019-04-17 14:42:17 -07:00
David Anson
7e980401b8 Expose shared.js helper code for custom rule authors (fixes #134). 2019-04-13 11:18:57 -07:00
David Anson
d7c0d195d7 Update MD013/line-length with heading_line_length parameter (fixes #170). 2019-03-26 22:34:19 -07:00
David Anson
fa04d29485 Enhance MD022/blanks-around-headings with lines_above/lines_below parameters (fixes #143). 2019-03-24 21:50:56 -07:00
David Anson
61d6311a3e Add front_matter_title parameter to MD025/single-title/single-h1 (refs #169). 2019-03-16 20:21:57 -07:00
David Anson
050cbbba82 Add name first-line-heading to MD041 for clarity (refs #169). 2019-03-13 21:39:15 -07:00
David Anson
0184f9d618 Deprecate MD002/first-heading-h1 in favor of MD041/first-line-h1 (refs #169). 2019-03-12 22:23:12 -07:00
David Anson
c71bb4fbd5 Update MD041/first-line-h1 to allow secondary headings if a YAML title is present (refs #116). 2019-03-10 22:10:33 -07:00
David Anson
ed295cd947 Add style "zero" to MD029/ol-prefix (fixes #140). 2019-03-06 21:57:19 -08:00
David Anson
4d436be500 Add other example repositories for custom rules. 2019-03-03 21:35:20 -08:00
David Anson
90bd0810e7 Update copyright year to 2019, all HTTP links to HTTPS. 2019-02-10 11:38:01 -08:00
David Anson
ff86e1d7f1 Add optional "information" property to custom rules to provide a link to more information. 2019-01-15 21:56:38 -08:00