Commit graph

16 commits

Author SHA1 Message Date
David Anson
2aeffeb5f1 wip 2025-08-27 21:15:52 -07:00
David Anson
f2c6d185ab Remove outdated references to lint rule jsdoc/valid-types. 2025-08-14 22:00:42 -07:00
David Anson
c81101d2b1 Address new lint warnings from previous commit. 2025-06-22 22:24:09 -07:00
David Anson
cdfa934d8d Centralize handling of newlines in error detail/context to always replace (consecutive) newlines with a single space. 2025-05-04 23:28:43 -07: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
Yury Puzynya
759c31760e Avoid invoking Micromark parser when no Micromark-based rules are in effect. 2025-04-20 04:58:27 +00: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
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
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
a009407088 Add support for "browser" condition (e.g., as used by Webpack) by stubbing-away Node imports (fixes #1441). 2024-12-11 18:48:54 -08:00
David Anson
8da43dd246 Update to use named exports via / /async /promise /sync, simplify references via self-referencing, refine examples. 2024-12-03 19:58:47 -08:00
David Anson
789190962c Remove import of node:util and manually implement promisify (improves browser scenario), improve JSDoc typing. 2024-11-30 21:44:37 -08:00
David Anson
3599f694ba Move micromark-parse.mjs from helpers to library, remove all dependencies from helpers. 2024-11-30 20:42:14 -08:00
David Anson
1e71f6f44e Convert markdownlint library to an ECMAScript module, replace markdownlint-micromark with micromark, stop publishing (large) markdownlint-browser.js, see https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c for guidance. 2024-11-29 18:29:21 -08:00
Renamed from lib/markdownlint.js (Browse further)