Commit graph

21 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
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
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
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
63325edc97 Update MD005, MD007, MD022, MD037, MD038 to not report violations within "htmlFlow" context (fixes #999). 2023-10-21 22:03:11 -07:00
David Anson
7005a8a438 Reimplement MD049/emphasis-style, MD050/strong-style to use micromark parser (with smaller ranges and handling of multi-line fixes). 2023-05-26 03:50:00 +00:00
David Anson
13ced64c21 Rename markdownlint-micromark Token's .tokens property to .children for consistency and clarity. 2023-02-25 15:50:58 -08:00
David Anson
962547ecc8 Reimplement MD038/no-space-in-code using micromark tokens. 2023-02-25 15:50:58 -08:00
David Anson
868edf889e Manually fix three new ESLint warnings from the eslint-plugin-regexp plugin (refs #657). 2022-12-19 21:51:18 -08:00
David Anson
ac38a614e9 Update MD038/no-space-in-code to check token.content before calling helpers.forEachInlineCodeSpan for ~6% time reduction measured via profile-fixture.mjs on Apple Silicon M1. 2022-06-12 19:04:39 -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
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
33e3797084 Fix broken MD020/MD021/MD038 scenarios. 2019-09-19 21:39:59 -07:00
David Anson
c8a74bd72c Update MD037/MD038/MD039 to report fixInfo for violations. 2019-09-06 22:35:33 -07:00
David Anson
7e980401b8 Expose shared.js helper code for custom rule authors (fixes #134). 2019-04-13 11:18:57 -07:00
David Anson
ff50da3b42 Re-implement MD038 to handle multi-line spans better and rely less on RegExp. 2019-01-30 22:09:20 -08:00
David Anson
7d6635b472 Fix possible null-dereference if RegExp does not match in MD038. 2019-01-07 22:02:58 -08:00
David Anson
4865301ce9 Handle multi-line inline code spans better (fixes #130). 2018-07-15 23:05:18 -07:00
David Anson
213aef4564 Convert var to const/let (except in browser-only code). 2018-04-27 22:05:34 -07:00
David Anson
9ba143555d Move each rule implementation into its own file (fixes #83). 2018-01-21 21:44:25 -08:00