Commit graph

402 commits

Author SHA1 Message Date
David Anson
291597edb9 Update rules MD049/emphasis-style and MD050/strong-style to include range and fixInfo when reporting issues (i.e., to be automatically fixable). 2021-11-28 23:26:02 -08:00
David Anson
11806dc5cb Tokens inside tables that lack a map should get it from the surrounding table row (which is more scoped than the table body) (fixes #463). 2021-11-26 04:26:15 +00:00
David Anson
1e82f76596 Reimplement inlineCodeSpanRanges as codeBlockAndSpanRanges to fix an issue with unterminated code spans (and for flexibility). 2021-11-23 04:51:20 +00:00
David Anson
9c60343692 Add new rules MD049/MD050 to detailed-results-* test files. 2021-11-19 21:53:33 -08:00
David Anson
573ebe7462 Move two instances of deprecatedRuleNames into constants.js. 2021-11-11 22:37:16 -08:00
David Anson
6c17718242 Add new test repo suppression for pre-release rule MD049. 2021-11-10 21:53:51 -08:00
David Anson
c5345f45eb Replace require("package.json") with constants.js to simplify and remove that file from markdownlint-browser.js. 2021-11-10 21:48:15 -08:00
David Anson
8179adf38e Add new test repo suppressions for pre-release rule MD049. 2021-11-09 22:17:21 -08:00
David Anson
d121518911 Add new test repo suppression for pre-release rule MD049. 2021-10-29 22:09:34 -07:00
David Anson
956b55b55e Simplify syntax for exclusion of globs/files in markdownlint-test-repos.js. 2021-10-23 22:24:47 -07:00
Sébastien Règne
39724b991a
Add MD049/emphasis-style (fixes #150). 2021-10-23 21:54:58 -07:00
David Anson
aa8aa83db8 Update markdownlint-test-repos.js to ignore two files with newly-reported issues in dotnet-docs repo. 2021-10-23 12:59:39 -07:00
Álvaro Mondéjar Rubio
f7dfd59a5e Update MD033/no-inline-html to handle HTML elements in multi-line code spans (fixes #436). 2021-10-23 12:58:22 -07:00
Sébastien Règne
ab9e5875a2
Add MD050/strong-style (fixes #150). 2021-10-20 21:42:48 -07:00
David Anson
c99ced2a7d Update MD037/no-space-in-emphasis to ignore emphasis on code fences and not report violations for scenarios that span an empty code fence (fixes #381). 2021-08-22 15:28:28 -07:00
David Anson
580e57ddee Add Prettier.md to document compatibility issues (fixes #410). 2021-08-13 22:18:39 -07:00
David Anson
92111e09cf Resolve Windows-specific test failure due to path comparison. 2021-08-12 20:59:50 -07:00
David Anson
709e314836 Update readConfig to use fs.access so the async path is fully async. 2021-08-12 20:43:18 -07:00
David Anson
211f09afbc Allow custom file system implementation to be passed when linting or reading configuration. 2021-08-12 19:38:03 -07:00
David Anson
752e7141c8 Add test case for MD044/proper-names based on new issue (closes #409). 2021-06-30 21:21:23 -07:00
David Anson
706f48bd25 Re-implement MD011/no-reversed-links for better accuracy (range and fixInfo are now always valid) (fixes #398). 2021-06-17 21:50:03 -07:00
David Anson
646a67b8bd Add more test coverage for additionalProperties in config schema. 2021-06-15 22:25:51 -07:00
David Anson
d029c46a76 Remove test-repos exclusion that has been fixed in the repo. 2021-06-14 22:59:41 -07:00
David Anson
5f0f7653e0 Update all "detailed-results" tests to use resultVersion 3 (based on current output). 2021-06-14 22:47:24 -07:00
David Anson
cebde8f9f6 Suppress unwanted no-console linting violation in test script, update browser script. 2021-06-13 16:45:38 -07:00
David Anson
427057dd1e Add to test-repos script: mochajs/mocha, webhintio/hint, webpack.js.org, v8-v8-dev. 2021-06-13 16:37:29 -07:00
David Anson
7b810c48a9 Add exclusion for test repo file with newly-reported violation (remove outdated exclusion). 2021-06-13 15:05:03 -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
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
ec907567e2 Update dependencies: c8 to 7.5.0, eslint to 7.19.0, globby to 11.0.2, js-yaml to 4.0.0, markdownlint-rule-helpers to 0.13.0, ts-loader to 8.0.15, typescript to 4.1.3, webpack to 5.21.1, webpack-cli to 4.5.0. 2021-02-06 19:23:55 -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
d2d4b310b9 Remove override of line-length rule for Rules.md validation. 2021-01-31 16:02:49 -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
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
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
238781506a Generate example YAML configuration with all properties set to their default value. 2021-01-21 19:50:57 -08:00
David Anson
5b7e9b87be Generate example JSONC configuration with all properties set to their default value. 2021-01-19 20:41:04 -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
Yash Singh
2a198a5ee4 Fix grammar issues in Rules.md. 2020-12-30 16:42:34 -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
c2541468ff Exclude file in test-repos scenario due to table parsing (breaking) change in markdown-it v12. 2020-11-24 13:46:23 -08:00