Commit graph

53 commits

Author SHA1 Message Date
David Anson
72543a82e7 Update re-implementation of MD044/proper-names to exclude link destinations and references. 2021-06-13 13:07:03 -07:00
David Anson
c87d7f5b8c Update dependencies: eslint-plugin-jsdoc to 31.6.0, eslint-plugin-unicorn to 27.0.0. 2021-02-06 19:55:22 -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
c7d2416f95 Change comment replacement character from " " (with trailing "\") to "." to avoid creating indented code blocks. 2021-01-30 14:36:11 -08:00
David Anson
c4e236b858 Update clearHtmlCommentText helper to match CommonMark (instead of HTML) specification (refs #361). 2021-01-30 13:08:57 -08:00
David Anson
838afe0a00 Update clearHtmlCommentText helper to match HTML specification better; "--" within a comment does not make it invalid (fixes #361). 2021-01-28 21:45:53 -08:00
David Anson
df4aa9f4e8 Update MD037/no-space-in-emphasis to ignore content of math blocks when used with markdown-it-texmath (fixes #357). 2021-01-24 17:50:39 -08:00
David Anson
a6d30cb724 Implement markdownlint-disable-next-line inline comment (fixes #295). 2020-11-22 14:02:36 -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
32db81b740 Work around problems related to markdown-it-texmath plugin's token.map not accounting for math_block_end. 2020-11-12 23:08:46 -08:00
David Anson
aa7fbce2dd Update code to fix or document false positives for CodeQL warnings. 2020-10-02 13:44:18 -07:00
David Anson
4286f68152 Introduce concurrency to asynchronous file linting for improved performance. 2020-09-12 12:01:20 -07:00
David Anson
e1eb81cd21 Add lint rules from eslint-plugin-node. 2020-09-06 19:49:35 -07:00
David Anson
6ac5fa52a6 Update bare URL RegExp to improve the behavior of MD034/no-bare-urls with trailing punctuation (fixes #283). 2020-06-21 21:47:32 -07:00
David Anson
ac5d52a3e3 Update MD037/no-space-in-emphasis to ignore emphasis markers in link text (fixes #280). 2020-05-12 20:13:51 -07:00
David Anson
f607a49a5b Update MD037/no-space-in-emphasis to handle more scenarios (refs #286). 2020-05-10 17:06:07 -07:00
David Anson
37f1d6b64b Update MD037/no-space-in-emphasis to ignore emphasis markers in link text/destination (refs #286). 2020-05-08 16:01:42 -07:00
David Anson
f5a71521d4 Update MD037/no-space-in-emphasis to ignore emphasis markers in code spans (fixes #278). 2020-04-25 15:10:07 -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
6ce426cf88 Add support for "markdownlint-configure-file" inline comments (fixes #264). 2020-04-05 19:47:12 -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
29f16bf402 Reimplement MD037/no-space-in-emphasis to better handle multiple fixes on a line and more scenarios (fixes #251). 2020-03-29 16:36:04 -07:00
David Anson
11ea2ad5f1 Update handling of lists nested in blockquotes to improve MD007/ul-indent (fixes #266). 2020-03-21 13:17:34 -07:00
David Anson
4ff6f2f4b1 Change behavior of un-terminated HTML comments to be treated as text (fixes #252). 2020-03-09 23:06:13 -07:00
David Anson
3238ed4249 Update all rules to better handle wrongly-typed configuration parameters. 2020-01-25 18:40:39 -08:00
David Anson
74af9f82fb Enable jsdoc/require-jsdoc rule, fix all violations (fixes #85). 2020-01-23 19:42:46 -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
a9251c533f Add markdownlint-disable-file/markdownlint-enable-file inline comments (fixes #215). 2019-12-04 21:31:49 -08:00
David Anson
3e91da338c Update MD007/ul-indent to report/fix for all unordered list item groupings. 2019-12-01 17:30:47 -08:00
David Anson
a5f03d02d0 Fix forEachInlineCodeSpan to handle lines ending with '\' better. 2019-09-25 21:59:37 -07:00
David Anson
737126cf93 Update MD034/no-bare-urls to report multiple instances on the same line. 2019-09-22 21:31:02 -07:00
David Anson
4843e277c0 Update applyFix to make line ending optional, MD047 to highlight only last character. 2019-09-20 21:50:44 -07:00
David Anson
677255a484 Fix applyFix handling of multiple line endings; MD022 handling of multiple lines. 2019-09-16 22:38:29 -07:00
David Anson
b77a56255f Update applyFix/es to preserve the dominant line ending for each input. 2019-09-14 22:31:08 -07:00
David Anson
220a1d78a9 Update newline handling to match latest CommonMark specification. 2019-09-14 13:53:35 -07:00
David Anson
65f6d38978 Validate errorInfo.fixInfo object/properties in extension calls to onError. 2019-09-14 13:39:27 -07:00
David Anson
5895ea62cb Rename and refactor applyFix from fixErrors for one-off scenarios. 2019-09-12 21:50:40 -07:00
David Anson
316bfeadaa Update MD018/MD019/MD020/MD021 to report fixInfo for violations. 2019-09-08 16:51:00 -07:00
David Anson
5e73aa1d9d Update MD006/MD023 to report fixInfo for violations, process input to fixErrors. 2019-09-02 15:35:43 -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
2cd27c58f2 Update MD009/MD010/MD012/MD028 to report fixInfo for violations. 2019-08-24 22:55:51 -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
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
c3e8eab87b Update MD038/no-space-in-code to ignore backticks in link destinations (fixes #206). 2019-07-28 16:48:32 -07:00
David Anson
cd7a65cedd Allow for trailing spaces after front matter open/close fences (fixes #208). 2019-07-27 18:10:26 -07:00
David Anson
65052f6200 Add support for inline comments markdownlint-capture/markdownlint-restore (fixes #194). 2019-06-08 19:26:11 -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
David Anson
61c92e5997 Handle un-closed HTML comments in a way that does not trigger MD047/single-trailing-newline (fixes #187). 2019-05-16 22:14:07 -07:00
David Anson
1b8b15693f Replace assign/clone helpers with object spread syntax. 2019-05-05 22:27:01 -07:00