Commit graph

325 commits

Author SHA1 Message Date
David Anson
12502f6571 Exclude htmlFlow content by default for filterByTypes, opt in as needed. 2024-06-09 17:09:03 -07:00
David Anson
ea9659841e Reimplement MD025/single-title/single-h1 using micromark tokens. 2024-06-08 20:41:40 -07:00
David Anson
6daaa43410 Reimplement MD003/heading-style using micromark tokens. 2024-06-08 14:44:49 -07:00
David Anson
f032849081 Reimplement MD001/heading-increment using micromark tokens. 2024-06-06 21:19:14 -07:00
David Anson
26466108e9 Add new rule MD058/blanks-around-tables (fixes #132). 2024-06-03 21:16:45 -07:00
David Anson
0f55b9aec8 Remove outdated ESLint suppression. 2024-04-22 20:58:54 -07:00
David Anson
c6716f9bac Update to ESLint 9's "flat" configuration file format. 2024-04-20 21:29:23 -07:00
David Anson
b2305efafb Update to version 0.34.0. 2024-03-20 20:44:38 -07:00
David Anson
4c7cc9c326 Add 2 missing trailing semicolons. 2024-03-20 20:24:55 -07:00
David Anson
82441faa91 Reimplement MD036/no-emphasis-as-heading using micromark tokens. 2024-03-19 21:20:53 -07:00
David Anson
a83e2d8a09 Reimplement MD041/first-line-heading/first-line-h1 using micromark tokens. 2024-03-18 20:48:32 -07:00
David Anson
fdd8ba1974 Update MD051/link-fragments to include math text when creating heading fragments (fixes #1152). 2024-03-17 14:31:49 -07:00
David Anson
d5994ae4de Add Rule.parser property for custom rules to specify which Markdown parser output they use, honor it strictly, and add full type support. 2024-03-13 20:55:57 -07:00
David Anson
c44f165fe1 Remove tokens property from RuleParams type definition (use parsers.markdownit.tokens instead). No change to runtime behavior. 2024-03-07 21:14:17 -08:00
David Anson
a5371e29c5 Update dependency: markdownlint-micromark to 0.1.9. 2024-03-05 21:44:36 -08:00
David Anson
2b73095ebd Handle parser inconsistency for "u@.com" to avoid repeatedly wrapping with "<>" when fixing the bare URL (email) (fixes #1140). 2024-03-03 19:06:14 -08:00
David Anson
28e1b23955 Improve type safety by strongly-typing the micromark token type property everywhere. 2024-02-29 23:05:27 -08:00
David Anson
828ae3541a Use @type to provide typing for all instances of params.parsers.micromark.tokens. 2024-02-28 21:01:47 -08:00
David Anson
12c4f79604 Add parsers object to RuleParams type, annotate every rule definition with Rule type for better type validation. 2024-02-27 20:42:09 -08:00
David Anson
996d88a9b4 Refactor to remove micromark helper getSiblingTokens for simpler code and better performance. 2024-02-26 21:07:24 -08:00
David Anson
4436d84b55 Update MD027/no-multiple-space-blockquote range to cover just the extra spaces (vs. including nearby syntax). 2024-02-26 20:37:40 -08:00
David Anson
730ae9a96f Reimplement MD027/no-multiple-space-blockquote using micromark tokens. 2024-02-25 15:06:28 -08:00
David Anson
f0d691b1ed Reimplement MD048/code-fence-style using micromark tokens. 2024-02-19 20:42:12 -08:00
David Anson
807fee01b1 Reimplement MD046/code-block-style using micromark tokens. 2024-02-19 20:31:47 -08:00
David Anson
64b9032b51 Update MD049/emphasis-style and MD050/strong-style to properly detect violations at the beginning and end of a line (fixes #1132). 2024-02-19 15:41:10 -08:00
David Anson
f26df4743c Reimplement MD040/fenced-code-language using micromark tokens. 2024-02-18 17:22:32 -08:00
David Anson
f5b5773b50 Reimplement MD028/no-blanks-blockquote using micromark tokens. 2024-02-18 16:46:13 -08:00
David Anson
89eef68dbd Remove @babel/core, @babel/preset-env, babel-loader packages as (dev) dependencies. 2024-02-17 15:46:13 -08:00
David Anson
45c8766eda Refine previous commit for MD051/link-fragments to tweak behavior, tests, and documentation. 2024-02-10 15:41:55 -08:00
Théo LUDWIG
242b35f98f Update MD051/link-fragments to support GitHub-style line/column range syntax in URLs (refs #1117). 2024-02-10 15:41:55 -08:00
David Anson
9c77f92616 Update to version 0.33.0. 2024-01-07 17:22:52 -08:00
David Anson
ff1f3e32e6 Update markdownlint-browser.js generation to use browserslist "default" target (reduces size by roughly half). 2024-01-06 20:47:01 -08:00
David Anson
30d62f19ac Add rule MD056/table-column-count (fixes #92). 2024-01-06 20:06:47 -08:00
David Anson
0ddbffdecf Update and simplify .eslintrc.json. 2024-01-03 22:12:23 -08:00
David Anson
b55208b27b Update dependency markdownlint-micromark to 0.1.8, incorporate new micromark-extension-directive exports. 2024-01-01 22:12:42 -08:00
David Anson
9b5f6a28f9 Fix possible exceptions due to addError's range/editColumn out of range, update test-extra to use test.serial() for better progress. 2023-12-31 21:51:34 -08:00
David Anson
7d2248d211 Update MD055/table-pipe-style to support "consistent" and other styles, use micromark positioning, report ranges, add more tests. 2023-12-30 18:15:38 -08:00
David Anson
47fdfa6dfa Update generated file after transitive dependency change. 2023-12-12 17:32:48 -08:00
David Anson
9f87e7dc60 Update MD038/no-space-in-code to avoid a possible range error for indented code fences. 2023-12-06 21:28:23 -08:00
David Anson
f2725178b1 Update MD024/no-duplicate-heading to remove duplicate parameter allow_different_nesting which confuses people. 2023-12-05 19:23:17 -08:00
David Anson
19b67bb06e Update generated file after transitive dependency change. 2023-11-30 19:08:10 -08:00
David Anson
dd7b9db685 Update to version 0.32.1. 2023-11-14 20:01:30 -08:00
David Anson
41bc8465d2 Update MD054/link-image-style handling of url_inline to ensure link and destination match and that the destination is autolink-able (fixes #1040). 2023-11-14 19:56:23 -08:00
David Anson
49ef661478 Update to version 0.32.0. 2023-11-13 21:16:33 -08:00
David Anson
b709a2f624 Update MD054/link-image-style to add url_inline parameter (fixes #753). 2023-11-12 22:46:30 -08:00
David Anson
063310e51a Update MD054/link-image-style to split reference parameter into full/collapsed/shortcut parameters (fixes #918). 2023-11-11 22:12:50 -08:00
David Anson
a9a77940c5 Remove rule aliases for "header" (deprecated in v0.9.0). 2023-11-09 20:05:30 -08:00
David Anson
20a552b4b7 Remove MD002 (deprecated in v0.13.0) and MD006 (deprecated in v0.19.0). 2023-11-09 19:47:24 -08:00
David Anson
d4bfb633bb Generate TypeScript declaration for Configuration object from JSON schema (refs #1004, refs #1014). 2023-11-08 19:49:02 -08:00
David Anson
3b1dfe42df Remove deprecated ESLint rules after version update. 2023-11-05 20:18:39 -08:00