Commit graph

481 commits

Author SHA1 Message Date
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
9640be90a4 Add simple rendering of Markdown directive metadata to demo web page for easier diagnostics. 2024-01-02 22:39:42 -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
316b0989c3 Add $id to configuration schema, switch to version-specific repository links. 2023-11-24 15:23:36 -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
David Anson
1a376f60bb Tweak rule parameters to avoid confusing the TypeScript type system. 2023-11-03 20:24:08 -07:00
David Anson
10f095c4fd Refactor new MD054/link-image-style rule, add tests, update documentation (fixes #40, fixes #399). 2023-11-02 19:48:55 -07:00
David Anson
739cfb6fe2 Update MD034/no-bare-urls to restore per-sibling scan (vs. all-element scan) and ignore tokens inside an htmlFlow context. 2023-10-23 20:55:37 -07: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
2a56f130c1 Refactor Token.parent() to Token.parent, add validation tests for parent, fix parent in htmlFlow scenario, improve type saftey slightly. 2023-10-19 23:01:31 -07:00
David Anson
06466905a5 Add getHtmlAttributeRe helper for creating a RegExp to match an HTML attribute name/value. 2023-10-18 23:45:39 -07:00
Kate Higa
531e58ed9a
Update MD045/no-alt-text to report instances of HTML "img" tags missing an "alt" attribute (fixes #992). 2023-10-18 23:20:19 -07:00
David Anson
0afedaebf4 Resolve new eslint-plugin-regexp violation regexp/no-contradiction-with-assertion. 2023-10-16 20:13:21 -07:00
David Anson
da17cec722 Reimplement MD007/ul-indent using micromark tokens, reduce the length of fix edits (fixes #969). 2023-10-15 21:25:08 -07:00
David Anson
9297bcde1c Reimplement MD005/list-indent using micromark tokens, improve range reporting. 2023-10-12 21:43:31 -07:00
David Anson
e89ff6ea98 Reimplement MD030/list-marker-space using micromark tokens, improve range accuracy. 2023-10-10 22:03:18 -07:00
David Anson
6eca6f1c3d Allow HTML comments containing "--" even though it is not allowed by the CommonMark specification because it is allowed by the HTML specification and it happens in real life (fixes #996). 2023-10-07 20:18:43 -07:00
David Anson
d2faf40e6a Add rule name and file/string identifier to Error message thrown by onError validation for rules. 2023-10-07 19:34:21 -07:00
David Anson
941769f204 Update MD051/link-fragments to handle backslash-escaping in heading text (fixes #984). 2023-09-18 22:20:44 -07:00
David Anson
3561fc3f38 Update to version 0.31.1. 2023-09-15 20:32:52 -07:00
David Anson
7a7f7a49a6 Commit new changes to markdownlint-browser.js resulting from transitive dependency change. 2023-09-15 20:14:09 -07:00
David Anson
daec896b8d Update MD034/no-bare-urls to scan all tokens when pruning HTML content so open/close pairs with different parents are handled (fixes #966). 2023-09-13 22:44:24 -07:00
David Anson
11fbab3c47 Update to version 0.31.0. 2023-09-07 21:10:31 -07:00
David Anson
ba260b9b1e Update MD051/link-fragments to handle backslash-escaped content in link and definition destinations (fixes #956). 2023-09-06 21:25:00 -07:00
David Anson
1ddee6b195 Update MD051/link-fragments to also look for a fragment matching the URI-encoded link definition (implicit behavior in previous version via markdown-it) (fixes #954, fixes #955). 2023-09-06 20:50:56 -07:00
David Anson
a7dfa4bcbf Replace Array.push(...spread) in micromark helpers with Array.concat to avoid risk of stack overflow. 2023-09-04 22:02:39 -07:00
David Anson
07f403173c Replace all instances of JSDoc generic Function with detailed @callback definition (type-only changes). 2023-09-04 21:41:31 -07:00
David Anson
c118c1160a Update MD052/reference-links-images to add a shortcut_syntax parameter for opting into shortcut scanning (fixes #915). 2023-09-04 16:40:48 -07:00
David Anson
a736588958 Update MD051/link-fragments to handle links and images in headings (fixes #945). 2023-09-04 12:26:38 -07:00
David Anson
6a2b86753b Reimplement micromark helper filterByPredicate to do fewer array manipulations for a ~6-7% elapsed time reduction. 2023-09-02 21:30:43 -07:00
David Anson
24c97a54fb Refactor micromark token handling to remove optional Token.htmlFlowChildren property and make related code more efficient for a ~6% elapsed time reduction. 2023-09-02 19:32:25 -07:00
David Anson
acd8c6ff28 Update MD043/required-headings to standardize early-return flow. 2023-08-29 23:00:27 -07:00
David Anson
b13d6a49ee Reimplement micromark helper filterByHtmlTokens using filterByPredicate to simplify. 2023-08-29 22:52:08 -07:00
David Anson
96a36de713 Refactor MD032/blanks-around-lists to remove redundant micromark flattenedChildren function. 2023-08-29 22:38:00 -07:00