Commit graph

332 commits

Author SHA1 Message Date
David Anson
02240fac98 Add missing lineNumber property to FixInfo type (fixes #405). 2021-06-14 22:30:35 -07:00
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
4db40256d9 Re-implement MD044/proper-names for better accuracy (range and fixInfo are now always valid) (fixes #402, fixes #403). 2021-06-12 17:10:59 -07:00
David Anson
fb5f647368 Update dependencies: c8 to 7.7.2, eslint to 7.28.0, eslint-plugin-jsdoc to 35.1.3, eslint-plugin-unicorn to 33.0.1, globby to 11.0.3, js-yaml to 4.1.0, markdown-it-texmath to 0.9.0, markdownlint-rule-helpers to 0.14.0, ts-loader to 9.2.3, typescript to 4.3.2, webpack to 5.38.1, webpack-cli to 4.7.2. 2021-06-08 22:20:13 -07:00
Jeremy Suriel
c6d95cb904
Update MD043 to fix required header checks in middle and last when using special char "*" (#396) 2021-05-20 12:45:27 -07:00
Yash Singh
47ff95e8d2
Add spaces_per_tab parameter to MD010/no-hard-tabs (fixes #384). (#385) 2021-04-09 16:33:01 -07:00
David Anson
a79e7843f2 Work around lack of webpack support for dynamic calls to require (.resolve). 2021-02-11 22:16:07 -08: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
a92da33235 Update MD004/ul-style to handle invalid "style" parameter values. 2021-02-06 16:09:16 -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
5aef3a4a51 Update MD018/MD019/MD020/MD021 to look specifically for "space" characters (space or tab) instead of RegExp's "\s" characters per CommonMark specification (fixes #367). 2021-02-03 22:05:07 -08:00
David Anson
1d042aa3fd Update MD041/first-line-heading to recognize HTML headings (fixes #366). 2021-01-31 15:51:57 -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
d6cd840e7d Update MD037/no-space-in-emphasis to ignore violations in tables that include the table pipe character to avoid spanning cells. 2021-01-23 20:47:27 -08:00
David Anson
49945d6601 Convert from tape test harness to ava, address minor declaration file issue. 2021-01-10 20:46:00 -08:00
David Anson
01d216ff6a Try adding @ts-ignore/etc. to resolve Windows/Node 14-only break when ci script invokes build-demo. 2021-01-06 20:28:24 -08:00
David Anson
868310a094 Remove useless assignment to local variable. 2021-01-05 21:06:00 -08:00
David Anson
369b0b5934 Replace browserify/uglify-js with webpack, shrink markdownlint-browser.js (fixes #362). 2021-01-05 20:55:09 -08:00
Yash Singh
2a198a5ee4 Fix grammar issues in Rules.md. 2020-12-30 16:42:34 -08:00
David Anson
0c68e855f7 Update generated files. 2020-11-24 16:37:11 -08:00
David Anson
d2bd75748f Update dependencies: @types/node to 14.14.9, browserify to 17.0.0, c8 to 7.3.5, eslint to 7.14.0, eslint-plugin-jsdoc to 30.7.8, eslint-plugin-unicorn to 23.0.0, markdownlint-rule-helpers to 0.12.0, typescript to 4.1.2, uglify-js to 3.12.0. 2020-11-24 16:25:43 -08:00
David Anson
85563c3e63 Handle missing token.map for th_open tokens (breaking) change in markdown-it v12. 2020-11-24 13:01:19 -08:00
David Anson
e20502c494 Update MD043/required-headings to treat "*" as "zero or more" and "+" as "one or more" (fixes #281). 2020-11-23 20:47:28 -08:00
David Anson
c693a9a3d8 Update MD026/no-trailing-punctuation to ignore the trailing semicolon of HTML entity references (fixes #320). 2020-11-23 15:23:39 -08:00
David Anson
09c5736385 Remove automatic fix from MD028/no-blanks-blockquote due to ambiguity (fixes #315). 2020-11-23 14:57:19 -08:00
David Anson
a6d30cb724 Implement markdownlint-disable-next-line inline comment (fixes #295). 2020-11-22 14:02:36 -08:00
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
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
fb49877c86 Change ESLint ecmaVersion to 2019, remove unused catch binding. 2020-10-20 19:59:38 -07: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
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
2605d56c62 MD044/proper-names should ignore text of automatic hyperlinks (fixes #329). 2020-09-18 20:30:46 -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
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
e1eb81cd21 Add lint rules from eslint-plugin-node. 2020-09-06 19:49:35 -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
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
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