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
David Anson
23d5be6015
Add simple/concrete example of custom rule package for publishing ( fixes #133 ).
2018-07-20 22:31:41 -07:00
David Anson
d76ede1c4f
Update MD024/no-duplicate-heading to allow non-sibling duplicates ( fixes #136 ).
2018-07-19 21:49:30 -07:00
David Anson
4a1e42d942
Allow '0'- and ' '-prefixed ordered list markers in MD005/MD029 ( fixes #126 ).
2018-06-15 22:37:12 -07:00
Nick Schonning
e6305dc0b7
docs: Point to markdownlint-rules keyword on NPM
2018-05-25 17:30:41 -07:00
David Anson
1c816897c1
Include file/string name in params object for custom rules ( fixes #119 ).
2018-05-25 17:28:56 -07:00
David Anson
3e1317709a
Update MD009/no-trailing-spaces default configuration to allow 2 spaces for hard break ( fixes #114 ).
2018-04-30 21:34:19 -07:00
David Anson
c7c4c032d1
Code review feedback for "header"->"heading" change.
2018-04-18 22:28:14 -07:00
Milos Levacic
45424cf459
Change "header" to "heading" across the library
...
This should be backward compatible, as all "header" aliases are still
available, though documented as discouraged for future use.
2018-04-18 22:27:48 -07:00
David Anson
c9571607dc
Convert to code fences in Rules.md and tag all as "markdown".
2018-03-09 22:50:01 -08:00
David Anson
942cc9af08
Use "markdown" for syntax highlighting on GitHub ("md" not recognized).
2018-03-03 22:22:02 -08:00
David Anson
08c8031736
Add documentation for authoring custom rules.
2018-03-03 22:15:49 -08:00
David Anson
f24f98e146
Add support for using custom rules.
2018-02-15 21:35:58 -08:00