Commit graph

591 commits

Author SHA1 Message Date
David Anson
c699b8e22b Allow a custom rule's onError implementation to override that rule's information URL for each error. 2023-07-11 21:45:00 -07:00
David Anson
7a794192ca Add support for named heading fragments as supported by some platforms (fixes #830). 2023-07-08 22:14:00 -07:00
David Anson
c06506c317 Reimplement MD026/no-trailing-punctuation using micromark tokens, ignore trailing GitHub emoji codes, improve tests (fixes #457). 2023-06-24 15:47:06 -07:00
David Anson
f5a2df1e86 Update test repository linting tests to use snapshots instead of RegExp exclusions, remove https://github.com/mdn/translated-content test repository due to overlap with https://github.com/mdn/content. 2023-06-01 21:21:52 -07:00
David Anson
22dc6cae84 Update micromark code and tests for prior commit updating markdownlint-micromark (including micromark to 3.2.0). 2023-05-31 21:02:44 -07:00
David Anson
b1eff75034 Update MD044/proper-names to parse into micromark htmlFlow tokens for better behavior when html_elements is false (fixes #832). 2023-05-31 20:25:56 -07:00
David Anson
8471914a1d Update MD037/no-space-in-emphasis to handle multiple embedded underscores separated by a single character (fixes #804). 2023-05-27 11:05:17 -07:00
David Anson
dc4acff067 Update MD044/proper-names to ignore the content of HTML comments when its html_elements parameter is false (fixes #832). 2023-05-26 20:58:59 -07:00
David Anson
1b0e783c33 Update README.md to clarify two things. 2023-05-26 20:28:21 -07:00
David Anson
0006636f75 Update MD049/emphasis-style and MD050/strong-style to not report intraword asterisks/underscores as violations because exchanging either alters meaning (fixes #789). 2023-05-26 04:47:14 +00: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
488813f7f7 Update MD034/no-bare-urls to re-scan documents with potential violations using proper reference definition handling to avoid false positives (fixes #787). 2023-05-23 04:01:55 +00:00
David Anson
99ef8f8e7e Update test snapshots for new tokenization from markdownlint-micromark/micromark-extension-gfm-table. 2023-05-13 15:45:54 -07:00
David Anson
ee6407b00a Remove suppression for fixed issues in https://github.com/mdn/content test repository. 2023-04-24 21:38:41 -07:00
David Anson
38e168ba09 Update test-repos implementation to output all unnecessary RegExps, remove suppression for fixed issues in https://github.com/pi-hole/docs test repository. 2023-04-24 21:24:19 -07:00
David Anson
7bacd23ccd Remove suppression for fixed issues in https://github.com/dotnet/docs test repository. 2023-04-21 20:52:46 -07:00
David Anson
0cf81e4ef4
Add Node 20 to CI matrix, update test cases to handle new error strings in Node 20. 2023-04-18 19:55:56 -07:00
David Anson
2ab546bec0 Implement (undocumented, promise-only) extendConfig API for readConfig-like behavior when the Configuration object is already available (i.e., to implement "extends" consistently). 2023-04-03 22:59:06 -07:00
David Anson
d9d15c36ef Add suppression for new test repository violation. 2023-03-30 03:37:36 +00:00
David Anson
2cb8931e69 Add suppressions for new test repository violation. 2023-03-22 22:19:22 -07:00
David Anson
fdec335de4 Avoid redundant read/parse of test file in micromark helper test cases. 2023-03-20 22:05:05 -07:00
David Anson
5847b38eec Add suppressions for new test repository violations. 2023-03-16 20:54:32 -07:00
David Anson
300ee36a5f Re-introduce validateJsonUsingConfigSchemaStrict for validating the content of markdownlint-configure-file in Markdown files. 2023-03-16 20:41:32 -07:00
David Anson
0ebcf248ca Simplify test directory by moving all JSON configuration for scenario tests into the Markdown file via markdownlint-configure-file. 2023-03-15 21:26:22 -07:00
David Anson
5bff33d41b Reimplement MD044/proper-names using micromark tokens. 2023-03-14 21:03:07 -07:00
David Anson
20e571ba65 Add simple (GFM) table markup to "Every Markdown Syntax" test file. 2023-03-11 13:50:41 -08:00
David Anson
8057f3d37e Reimplement MD035/hr-style using micromark tokens (fixes #736). 2023-03-06 21:39:21 -08:00
David Anson
81f35edd6c Update tests to verify long lines inside HTML comments trigger MD013/line-length (closes #703). 2023-02-27 18:35:52 -08:00
David Anson
42f2612c35 Unify ignore patterns for mdn/content and mdn/translated-content repositories in external repo tests, skip mdn/translated-content for now due to new, un-ignored issues. 2023-02-25 21:44:43 -08: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
4b27bac79b Update all references to "params.tokens" to "params.parsers.markdownit.tokens" for clarity. 2023-02-25 15:50:57 -08:00
David Anson
5302ee45de Add tests for micromark helpers filterByPredicate, filterByTypes, and getMicromarkEvents. 2023-02-25 15:50:57 -08:00
David Anson
ddb71ed1e8 Update tests and documentation for MD034/no-bare-urls to explain edge case behavior. 2023-02-25 15:50:57 -08:00
David Anson
b990b3ea77 Reimplement MD034/no-bare-urls using micromark tokens (fixes #707). 2023-02-25 15:50:57 -08:00
David Anson
64159fa456 Address new @ts-check warnings in markdownlint-test.js. 2023-02-25 15:50:57 -08:00
David Anson
3bf4bb1cda Ignore failures for two newly-found issues in https://github.com/electron/electron repository. 2023-02-25 15:50:57 -08:00
David Anson
545e571ca5 Update test snapshots for previous two test case updates (stored in "bugs" branch). 2023-02-25 15:50:57 -08:00
David Anson
26c94ad61b Add test case for undefined reference link in blockquote. 2023-02-25 15:50:57 -08:00
David Anson
9af466993f Add test case for reference link with collapsed link syntax in URL (fixes #697). 2023-02-25 15:50:57 -08:00
David Anson
97f99befb8 Reimplement getReferenceLinkImageData using micromark tokens. 2023-02-25 15:50:57 -08:00
David Anson
57c612cfa4 Fix invalid link definition syntax in break-all-the-rules.md. 2023-02-25 15:50:57 -08:00
David Anson
c1df46f607 Convert params.parsers.name to params.parsers.name.tokens for clarity/flexibility. 2023-02-25 15:50:56 -08:00
David Anson
80235711f4 Add test to ensure params.tokens and params.parsers.markdownit are the same object. 2023-02-25 15:50:56 -08:00
David Anson
c53df8b720 Fix range calculation in MD033/no-inline-html during re-parse of tabbed content. 2023-02-25 15:50:56 -08:00
David Anson
48a92d41a4 Reimplement MD033/no-inline-html using micromark tokens. 2023-02-25 15:50:56 -08:00
David Anson
08b31da0aa Move micromark.cjs helpers from lib to helpers so it can be used by code in both locations. 2023-02-25 15:50:56 -08:00
David Anson
1461ad6272 Add content parsing via micromark, publish frozen micromark tokens alongside markdown-it tokens, remove assert from micromark wrapper. 2023-02-25 15:50:56 -08:00
David Anson
c9e8f8b8ea Convert micromark.mjs to micromark.cjs for use by synchronous APIs in markdownlint.js. 2023-02-25 15:49:52 -08:00
David Anson
000281e2f0 Add "// @ts-check" to top of new micromark-related modules, fix import typo. 2023-02-25 15:49:51 -08:00