Commit graph

347 commits

Author SHA1 Message Date
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
3827842930 Delete markdownlint-test-default-config.json, allow MD041 to default to true, add missing headings. 2020-11-15 17:03:20 -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
dd2c1d08ee Minor tweaks to previous PR commit. 2020-11-06 19:23:08 -08:00
Alexander Kachkaev
4bff44e33f Use require.resolve as a fallback of path.resolve (#342) 2020-11-06 19:23:08 -08:00
David Anson
a971361cf2 Add getVersion function to exports for easy access by tooling (ex: CLI). 2020-10-17 14:17:35 -07:00
David Anson
bd50a15a96 Replace @iktakahiro/markdown-it-katex with markdown-it-texmath for consistency with VS Code extension. 2020-10-16 20:59:04 -07:00
David Anson
392cc287e6 Handle implicit close fence in MD031/blanks-around-fences to avoid null-dereference. 2020-10-16 14:08:42 -07:00
David Anson
9afd4e1ab5 Avoid exception when MD011/no-reversed-links is not able to report column/length (fixes #339). 2020-10-14 20:57:04 -07: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
2605d56c62 MD044/proper-names should ignore text of automatic hyperlinks (fixes #329). 2020-09-18 20:30:46 -07:00
David Anson
6061cce169 Allow unknown (custom) rule names in .markdownlint.json schema. 2020-09-15 21:48:00 -07:00
David Anson
e9d63a6284 Add Promise-based APIs for markdownlint and readConfig, update declaration file. 2020-09-13 12:58:09 -07:00
David Anson
1f6a2cdc96 Split primary test cases across multiple files, address bogus @ts-ignore issues. 2020-09-12 12:42:46 -07:00
David Anson
ebc74e3d5f Duplicate markdownlint-test.js as first step of splitting it into smaller files. 2020-09-12 12:13:06 -07:00
David Anson
4286f68152 Introduce concurrency to asynchronous file linting for improved performance. 2020-09-12 12:01:20 -07:00
David Anson
2851a691ba Make toString function on LintResults object non-enumerable (hide it from for..in). 2020-09-07 20:05:36 -07:00
David Anson
5ab938a6ab Add lint rules from eslint-plugin-unicorn. 2020-09-06 20:34:10 -07:00
David Anson
0f4745efe3 Exclude eslint-plugin-node rules from customRulesLintJavaScript test due to inconsistent behavior on Node 10. 2020-09-06 19:58:07 -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
e0e5ce555a Update dependency: tape to 5.0.1. 2020-09-05 17:31:39 -07:00
Álvaro Mondéjar
6dc20fcc21 Fix inline of links with empty link. (fixes #308) 2020-09-05 17:31:39 -07:00
David Anson
2af3dd0d7a Replace dev dependency markdown-it-katex with @iktakahiro/markdown-it-katex per "npm audit". 2020-09-05 17:31:26 -07:00
David Anson
0acc578e52 Update remaining references to refer to main branch as "main". 2020-08-11 22:52:29 -07:00
David Anson
e1772ddc51 Group items in "Related" section of README.md by category. 2020-06-22 21:03:26 -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
e696960aab Update MD044/proper-names to handle names with non-word-character boundaries better. 2020-06-19 21:09:11 -07:00
David Anson
26e70a2c6d Update MD037/no-space-in-emphasis to avoid hang when backtracking for embedded emphasis on first character of line. 2020-06-15 19:42:46 -07:00
David Anson
87aac66d68 Update MD044/proper-names to avoid providing bogus range when proper name could not be found. 2020-05-13 20:59:18 -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
0cea489e18 Replace glob with globby (allows multiple patterns and exclusions). 2020-05-08 15:28:38 -07:00
David Anson
ebdf0ddf28 Add clone-test-repos-large script for cloning very large repositories (not part of push/pull_request trigger). 2020-05-08 12:27:41 -07:00
David Anson
2141566b47 Add lint-test-repos scripts and Workflow for real-world regression testing. 2020-05-08 11:55:08 -07:00
David Anson
70dc8fb6d3 Update MD037/no-space-in-emphasis to avoid pairing different kinds of emphasis marker. 2020-04-25 15:30:52 -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
bdc0246b34 Improve MD038/no-space-in-code to allow single-spaces surrounding a code inline with internal spaces (fixes #277). 2020-04-24 19:52:28 -07:00
David Anson
f775b9d4fb Update rewritten MD037/no-space-in-emphasis to handle multiple-line emphasis (fixes #272). 2020-04-12 20:40:05 -07:00
David Anson
5c60e00a90 Update MD037/no-space-in-emphasis to avoid crash, handle more scenarios. 2020-04-11 12:33:28 -07:00
David Anson
e470086d3b Sync to latest test file changes from Ruby implementation, commit 1e78c89224fe72572dc6f6c956da284ec7dafe62. 2020-04-10 19:21:58 -07:00
David Anson
678597485b Fix possible crash in MD005/list-indent, reporting issue with MD029/ol-prefix. 2020-04-09 20:14:36 -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
e319f9501c Update MD031/blanks-around-fences to add blockquote characters when fixing issues in that context. 2020-04-07 21:01:39 -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
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