Commit graph

470 commits

Author SHA1 Message Date
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
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
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
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
de86a26e4e Update MD013/line-length to support stern parameter (fixes #256). 2020-03-22 14:06:29 -07:00
David Anson
742f2a8d79 Update MD029/ol-prefix to treat 0/1/2 as "ordered" (fixes #250). 2020-03-18 21:50:28 -07:00
David Anson
b87094e33d Update MD018/no-missing-space-atx to ignore Keycap Number Sign emoji at start of line (fixes #257). 2020-03-08 19:49:52 -07:00