David Anson
|
4ff4cbcc41
|
Update to version 0.25.0.
|
2021-12-27 18:43:25 -08:00 |
|
David Anson
|
5f0040679d
|
Deep freeze name/tokens/lines/frontMatterLines properties of params object before passing to (custom) rules for shared access.
|
2021-12-23 04:34:25 +00:00 |
|
Adithya Balaji
|
5253669495
|
Fix array indexing for markdownlint-disable-next-line when front matter is present.
|
2021-12-22 19:27:19 -08:00 |
|
David Anson
|
7a76f1d22d
|
Update MD039/no-space-in-links to fix reference-style links, be slightly more permissive matching link content.
|
2021-12-22 14:52:43 -08:00 |
|
David Anson
|
ff8f4ea9fc
|
Reduce execution time by ~50% by updating getEnabledRulesPerLineNumber to make enabledRules immutable and copy only when changed (also, simplify handleInlineConfig slightly).
|
2021-12-21 21:31:47 -08:00 |
|
David Anson
|
7cf9c2d6be
|
Update MD037/no-space-in-emphasis to ignore embedded underscore emphasis markers (fixes #444, fixes #408, fixes #354, fixes #324).
|
2021-12-21 22:21:28 +00:00 |
|
David Anson
|
d57b4770ed
|
Update MD010/no-hard-tabs to allow tabs in code spans when the code_blocks parameter is set to false (for consistency) (fixes #454).
|
2021-12-17 17:24:00 -08:00 |
|
David Anson
|
8fde53cf31
|
Update MD035/hr-style to correctly match thematic breaks in block quotes.
|
2021-12-14 23:05:03 -08:00 |
|
David Anson
|
517eb42015
|
Update MD007/ul-indent to support start_indent parameter (fixes #337, closes #397).
|
2021-12-13 21:49:43 -08:00 |
|
David Anson
|
13e375b281
|
Disable ESLint rule func-style.
|
2021-12-11 21:48:00 -08:00 |
|
David Anson
|
2056d81682
|
Add support for asynchronous custom rules (ex: to read a file or make a network request).
|
2021-12-11 21:44:25 -08:00 |
|
David Anson
|
109e0d8cb6
|
Refactor custom rule exception tests for smaller size and better coverage.
|
2021-12-10 21:33:20 -08:00 |
|
David Anson
|
e7662b11b5
|
Simplify lintContent by removing errors array and processing errors in onError so nothing needs to be done after invoking a rule.
|
2021-12-04 22:09:20 -08:00 |
|
David Anson
|
d3c56d3ab8
|
Refactor lintContent to do less processing of errors for each rule and instead handle all errors at the end.
|
2021-12-04 17:02:11 -08:00 |
|
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
|
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 |
|
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
|
a5bfaa8a7d
|
Correct typo-ed references to RuleOnErrorInfo.details to detail.
|
2021-09-25 16:23:37 -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
|
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
|
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 |
|