Commit graph

805 commits

Author SHA1 Message Date
David Anson
e93b9854dc Update test repo snapshots. 2025-04-24 04:11:50 +00:00
David Anson
647dac621f Update test repo snapshots. 2025-04-22 02:53:37 +00:00
David Anson
92cd6d51cb Add tests for previous commit to avoid invoking Micromark parser when not needed, improve type definitions slightly (closes #1564). 2025-04-20 04:59:27 +00:00
David Anson
00fef38119 Update test repo snapshots. 2025-04-20 03:02:20 +00:00
David Anson
02478d24cf Update MD051/link-fragments to add the ignored_pattern configuration parameter (fixes #547). 2025-04-05 22:35:07 -07:00
David Anson
45932c7837 Update test repo snapshots. 2025-04-06 04:50:42 +00:00
David Anson
3145b68bed Update test repo snapshots. 2025-04-03 04:44:54 +00:00
David Anson
a9417fdf67 Update MD036/no-emphasis-as-heading to ignore HTML comments at the beginning or ending of the emphasised heading (fixes #1267). 2025-03-30 17:30:21 -07:00
David Anson
b4204f197e Add npm script "update-test-repos" to recreate the test-repos directory and freshen the corresponding snapshots. 2025-03-31 00:12:46 +00:00
David Anson
918f15945b Update test repo snapshots. 2025-03-27 03:07:57 +00:00
David Anson
62dc79864d Update MD041/first-line-heading to add an allow_preamble parameter (fixes #1416). 2025-03-22 16:16:10 -07:00
David Anson
c061888937 Update test repo snapshots. 2025-03-22 23:09:07 +00:00
David Anson
0916d178e7 Update test repo snapshots. 2025-03-18 03:26:31 +00:00
David Anson
8baa843ce3 Update test repo snapshots. 2025-03-16 01:04:18 +00:00
David Anson
5fc91f6977 Update MD025/single-title to ignore preceding blank lines and comments when looking for a title (top-level heading) (fixes #1420). 2025-03-15 17:52:22 -07:00
David Anson
cb39972d9b Update test repo snapshots. 2025-03-16 00:14:52 +00:00
David Anson
50300fa7af Update MD051/link-fragments to allow HTML's implicit "#top" fragment (fixes #1488). 2025-03-15 16:30:32 -07:00
David Anson
5749c8dcf7 Update MD043/required-headings to support "?" meaning "exactly one unspecified heading" (fixes #475). 2025-03-10 21:57:39 -07:00
David Anson
61febde9c1 Update test repo snapshots. 2025-03-11 04:15:33 +00:00
David Anson
d4a8a3bdfa Update new exports test to filter out module.exports to keep snapshot consistent between Node 22 (missing) and 23 (present). 2025-03-06 20:32:31 -08:00
David Anson
5cc88a7759 Add test to verify exported names are stable, add missing test files after earlier refactor. 2025-03-06 20:24:33 -08:00
David Anson
087df4480e Update test repo snapshots. 2025-03-07 03:59:23 +00:00
David Anson
d5cb5c8546 Update getHeadingText helper to exclude HTML comments from returned heading text (fixes #1411). 2025-03-04 21:04:33 -08:00
David Anson
f0b1afe884 Update test repo snapshots. 2025-03-05 04:42:49 +00:00
David Anson
435c55f72a Update MD027/no-multiple-space-blockquote to add a list_items parameter (fixes #1473). 2025-03-03 23:22:37 -08:00
David Anson
14cf2454ae Make new test further backward-compatible for testing Node versions < 22. 2025-03-01 19:28:23 -08:00
David Anson
a5e2134147 Make new test backward-compatible for testing Node versions < 22. 2025-03-01 18:31:06 -08:00
David Anson
63147ee1eb Add comprehensive tests for parseConfiguration function, handle non-object parser results consistently (fixes #1523). 2025-03-01 18:23:48 -08:00
David Anson
1f237e6c54 Refactor to move parseConfiguration function into a separate file, add stronger typing, add first test case. 2025-02-28 20:26:06 -08:00
David Anson
c4d15e0d2a Update test repo snapshots. 2025-03-01 04:15:05 +00:00
David Anson
14524283cc Update test repo snapshots. 2025-02-28 02:30:40 +00:00
David Anson
d53e3ff46c Update test repo snapshots. 2025-02-26 02:32:19 +00:00
David Anson
a36f2dcf41 Update test repo snapshots. 2025-02-24 03:21:09 +00:00
David Anson
715020de46 Update test repo snapshots. 2025-02-20 05:46:43 +00:00
David Anson
41654fbb60 Update test repo snapshots. 2025-02-18 04:01:54 +00:00
David Anson
c39a2dd516 Add test case for MD059/descriptive-link-text with MD039/no-space-in-links. 2025-02-13 22:56:13 -08:00
David Anson
571c2353ea Update new rule MD059/descriptive-link-text for project-level consistency. 2025-02-13 22:11:42 -08:00
Kate Higa
b8374ec5d2 Add rule MD059/descriptive-link-text "Link text should be descriptive" (fixes #681). 2025-02-13 22:11:42 -08:00
David Anson
44c302fe0b Allow options.markdownItFactory to be implemented asynchronously so the markdown-it parser import can be deferred. 2025-02-08 15:08:10 -08:00
David Anson
d4b981bcb3 Introduce options.markdownItFactory (and remove options.markdownItPlugins) so the markdown-it parser can be removed as a direct dependency because it is no longer used by default. 2025-02-08 15:08:06 -08:00
David Anson
3cbe1cb6c5 Refactor micromark parse code to stop using micromark's TokenizeContext.sliceSerialize (less well supported) in favor of Token.start/end.offset. 2025-02-08 14:43:38 -08:00
David Anson
b23fc96ab2 Refactor MD038/no-space-in-code to produce smaller/simpler edits and address an additional scenario. 2025-02-07 20:03:30 -08:00
David Anson
656254e64f Update test repo snapshots. 2025-02-06 05:04:04 +00:00
David Anson
c71e298d4b Add tests for MD038/no-space-in-code scenarios to capture current behavior and aid refactoring. 2025-02-05 20:51:22 -08:00
David Anson
90cf515ff0 Update MD038/no-space-in-code to allow code spans with only spaces (fixes #1481). 2025-02-02 21:36:35 -08:00
David Anson
2d2fafc58d Add test cases for lists inside blockquotes (refs #1473). 2025-01-31 22:09:40 -08:00
David Anson
feca49e4f8 Move exports/subpath imports (uses exec) and project file tests (use shared glob) into separate test files for better parallelization. 2025-01-19 16:44:20 -08:00
David Anson
53ff5c43f1 Stop using module.createRequire (problematic under webpack), incorporate and export resolveModule helper from markdownlint-cli2. 2025-01-14 23:30:09 -08:00
David Anson
4ad6628dcb Update test repo snapshots. 2025-01-10 02:36:21 +00:00
David Anson
d4352c7a44 Update test repo snapshots. 2025-01-07 04:28:31 +00:00