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
David Anson
f91f0880c3
Refine implementation of MD045/no-alt-text in previous commit.
2018-01-06 18:06:32 -08:00
Duncan Mackenzie
4fa837a031
Add MD045/no-alt-text ( fixes #75 ).
2018-01-06 15:55:59 -08:00
David Anson
39d39db961
Add style one_or_ordered to MD029/ol-prefix ( fixes #97 ).
2017-12-12 22:41:11 -08:00
Henrik Enggaard
3834cc4c9c
Misspelling in MD003
2017-09-06 09:35:37 +02:00
David Anson
d826833a82
Allow opt-out for list items with blank lines in MD009/no-trailing-spaces ( fixes #55 ).
2017-05-11 21:44:41 -07:00
David Anson
b436640918
Add short links to each rule in Rules.md, update README.md to use them ( fixes #54 ).
2017-05-07 12:48:04 -07:00
David Anson
942f0600d2
Support front matter title property override for MD041/first-line-h1 ( fixes #53 ).
2017-05-06 15:25:14 -07:00
David Anson
31c252a55c
Add code_blocks parameter to MD044/proper-names ( fixes #50 ).
2017-03-18 19:47:26 -07:00
David Anson
f30452619c
Merge branch 'next'
2017-03-03 23:03:16 -08:00
David Anson
acd36d5802
Update MD041/first-line-h1 to ignore leading HTML comments ( fixes #37 ).
2017-02-23 22:08:54 -08:00
David Anson
31206f9387
Reimplement MD038/no-space-in-code to handle multi-backtick strings ( fixes #46 ).
2017-02-18 22:56:06 -08:00