Commit graph

279 commits

Author SHA1 Message Date
David Anson
e531bd6359 Refactor lintInput to share code between sync/async, support an async path for strings, and process files first for better concurrency. 2021-12-03 22:43:58 -08:00
David Anson
7330ea4946 Add information about parser/index to error messages when parsing configuration file content. 2021-11-30 21:28:59 -08:00
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
a508824b0f Refactor helpers.emphasisMarkersInContent slightly to avoid duplicate/unnecessary work. 2021-11-26 05:37:04 +00: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
8e22c009fd Add transpileOnly=true to ts-loader/webpack to reduce build-demo script time by ~40%. 2021-11-13 12:40:51 -08:00
David Anson
573ebe7462 Move two instances of deprecatedRuleNames into constants.js. 2021-11-11 22:37:16 -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
d032dc6b33 Remove rimraf from build-demo script to try to avoid rare failures under GitHub Actions. 2021-10-30 17:45:33 -07:00
David Anson
c4a7c87d69 Update package.json / engines / node to 12+ due to deprecation of Node 10. 2021-10-30 17:32:51 -07:00
David Anson
f111c10b18 Add docker-npm-install script for "npm install" within a container. 2021-10-29 21:49:18 -07:00
Sébastien Règne
39724b991a
Add MD049/emphasis-style (fixes #150). 2021-10-23 21:54:58 -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
e79e8188a5 Update to version 0.24.0. 2021-08-22 22:35:50 -07:00
David Anson
e72b2ba985 Update MD011/no-reversed-links to remove RegExp negative lookbehind assertion which is not supported on Safari. 2021-08-22 22:26:12 -07:00
David Anson
a8228ecd80 Update dependencies: c8 to 7.8.0, eslint to 7.32.0, eslint-plugin-jsdoc to 36.0.7, eslint-plugin-unicorn to 35.0.0, globby to 11.0.4, markdown-it-texmath to 0.9.1, ts-loader to 9.2.5, typescript to 4.3.5, webpack to 5.51.1, webpack-cli to 4.8.0. 2021-08-22 18:03:26 -07:00
David Anson
227750e0ee Update dependency: markdown-it to 12.2.0. 2021-08-22 17:41:04 -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
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
b10147f16b Remove helpers.utf8Encoding because it annoys the latest TypeScript compiler. 2021-08-05 22:01:29 -07:00
David Anson
7d40926367 Cache results of inlineCodeSpanRanges for use by MD011/MD044. 2021-06-17 22:01:27 -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
cebde8f9f6 Suppress unwanted no-console linting violation in test script, update browser script. 2021-06-13 16:45:38 -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
David Anson
e441d247ee Update dependencies: markdown-it to 12.0.6. 2021-06-08 22:02:02 -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
f87f9d0800 Update to version 0.23.1. 2021-02-11 22:35:16 -08: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
c1f0f26565 Update to version 0.23.0. 2021-02-06 20:07:48 -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
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
7faa2c7607 Update dependencies: Remove @types/node. 2021-02-06 19:11:54 -08:00
David Anson
59ed334199 Update dependency: markdown-it to 12.0.4. 2021-02-06 16:12:40 -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
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
5b7e9b87be Generate example JSONC configuration with all properties set to their default value. 2021-01-19 20:41:04 -08:00
David Anson
cc61de8f2b Increase ava test timeout to 5 minutes for test-extra and lint-test-repos scripts. 2021-01-10 20:50:35 -08:00