David Anson
|
9b9532e163
|
Add includesSorted function, use for faster searches of sorted arrays.
|
2019-03-28 22:06:42 -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
|
debc08bca1
|
Re-implement MD022/blanks-around-headings to ignore comments and blockquotes.
|
2019-03-21 21:42:24 -07:00 |
|
David Anson
|
1db87ef0c6
|
Update MD031/blanks-around-fences and MD032/blanks-around-lists to ignore comments and blockquotes (fixes #171, fixes #172).
|
2019-03-20 21:48:18 -07:00 |
|
David Anson
|
df2507f030
|
Add support for pandoc-style YAML front matter fences ---/... (fixes #153).
|
2019-03-17 22:05:50 -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
|
2ccacf03f5
|
MD037 should try to ignore escaped emphasis markers (fixes #168).
|
2019-03-04 19:54:23 -08:00 |
|
David Anson
|
dd3bd3d7ee
|
Update MD037 to handle violations at the start/end of a line.
|
2019-03-04 19:24:57 -08:00 |
|
David Anson
|
3e753636cf
|
Handle case where token map extends beyond last line of input (fixes #166).
|
2019-02-13 19:52:34 -08:00 |
|
David Anson
|
ff50da3b42
|
Re-implement MD038 to handle multi-line spans better and rely less on RegExp.
|
2019-01-30 22:09:20 -08:00 |
|
David Anson
|
3b49414183
|
Re-implement MD032 to detect missed scenarios and simplify.
|
2019-01-21 18:21:36 -08:00 |
|
David Anson
|
8a175955d7
|
Add options.markdownItPlugins to support using markdown-it plugins when parsing.
|
2019-01-19 12:52:13 -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
|
b77dd5ccd3
|
Simplify handling of internal lineMetadata array (slightly faster now).
|
2019-01-12 16:29:10 -08:00 |
|
David Anson
|
6c57203ae5
|
Use tokens (vs. RegExp) for identifying fenced code blocks (fixes #151, fixes #152, fixes #155).
|
2019-01-10 21:29:27 -08:00 |
|
David Anson
|
813abc4f27
|
MD023 should not report violations for proper blockquotes in lists (fixes #146).
|
2019-01-08 22:10:06 -08:00 |
|
David Anson
|
0bb38faa21
|
Handle files with front matter only and no trailing newline (fixes #157).
|
2019-01-07 22:03:10 -08:00 |
|
David Anson
|
7d6635b472
|
Fix possible null-dereference if RegExp does not match in MD038.
|
2019-01-07 22:02:58 -08: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
|
4865301ce9
|
Handle multi-line inline code spans better (fixes #130).
|
2018-07-15 23:05:18 -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 |
|
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
|
101edd8496
|
Add parsers parameter to readConfig/Sync to support non-JSON formats like YAML (fixes #118).
|
2018-05-23 22:24:40 -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
|
36dc946f46
|
Synchronize regular expression for line breaks with markdown-it (fixes #117).
|
2018-04-29 22:29:03 -07:00 |
|
David Anson
|
072da48add
|
Relax MD041/first-line-h1 to allow blank links above the top level header (fixes #116).
|
2018-04-29 12:02:47 -07:00 |
|
David Anson
|
017fe127fa
|
Fix issue where escaped trailing hash on header caused MD003 due to incorrect classification.
|
2018-04-28 14:49:31 -07:00 |
|
David Anson
|
213aef4564
|
Convert var to const/let (except in browser-only code).
|
2018-04-27 22:05:34 -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
|
ff73e822cf
|
Make item loop iterative (vs. recursive) to handle synchronous processing of thousands of items.
|
2018-03-19 21:21:22 -07:00 |
|
David Anson
|
f80b61d8b7
|
Allow empty string for detail/context in onError callback from rules.
|
2018-03-17 22:11:56 -07:00 |
|
David Anson
|
89e12b90e0
|
Support 1-3 spaces prefixing a code fence per specification (fixes #107).
|
2018-03-06 21:43:45 -08:00 |
|
David Anson
|
40ace5bb5e
|
Fix MD007/ul-indent to use parent indent instead of previous indent (fixes #106).
|
2018-03-05 20:56:12 -08:00 |
|
David Anson
|
748c8cac17
|
Remove unnecessary params parameter to shared.flattenLists/forEachLine.
|
2018-03-04 23:06:31 -08:00 |
|
David Anson
|
b33acb81d9
|
Remove params.tokenLists to simplify custom rule API.
|
2018-03-01 22:37:37 -08:00 |
|
David Anson
|
7a752784f1
|
Add validation of onError callback object for rules.
|
2018-02-27 21:14:02 -08:00 |
|
David Anson
|
802c81f929
|
Add support for authoring custom rules.
|
2018-02-25 16:04:13 -08:00 |
|
David Anson
|
f24f98e146
|
Add support for using custom rules.
|
2018-02-15 21:35:58 -08:00 |
|
David Anson
|
4619a8c824
|
Refactor to run rule analysis when called, simplify functions.
|
2018-02-05 21:26:07 -08:00 |
|
David Anson
|
fda309df2f
|
Refactor to simplify and generalize rule name handling.
|
2018-02-04 20:27:20 -08:00 |
|
David Anson
|
bc8776c582
|
Stop caching forEachLine/flattenLists results on params object.
|
2018-02-02 22:29:50 -08:00 |
|
David Anson
|
056608a680
|
Improve code to determine unordered list style for MD004/ul-style (fixes #104).
|
2018-01-31 21:32:50 -08:00 |
|
David Anson
|
9ba143555d
|
Move each rule implementation into its own file (fixes #83).
|
2018-01-21 21:44:25 -08:00 |
|
David Anson
|
49e36f817c
|
Remove abbreviations from rule metadata to clarify API.
|
2018-01-18 21:34:30 -08:00 |
|