Commit graph

560 commits

Author SHA1 Message Date
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
David Anson
7142bbd8ed Normalize line endings to get micromark test passing on Windows. 2023-02-25 15:49:51 -08:00
David Anson
366a498150 Initial implementation of markdownlint-micromark package, micromark.mjs helpers, and tests. 2023-02-25 15:49:51 -08:00
David Anson
ff85dde7df Add MDN translated content repository to test-repos.js. 2023-01-15 18:01:48 -08:00
Bryan Mishkin
22db339eee
Move README.md History section to CHANGELOG.md using a format similar to what other projects use (fixes #694). 2023-01-05 19:24:04 -08:00
David Anson
f000a33481 Add test for helpers.getReferenceLinkImageData().shortcuts to verify non-shortcut link scenaros aren't mis-reported (closes #684). 2022-12-22 23:28:04 +00:00
David Anson
691b7afc52 Add test case to verify MD052 range parameter to onError is valid and that commit 6974cd6012 fixes #686. 2022-12-22 02:45:41 +00: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
6b01a98363 Add ESLint plugin eslint-plugin-regexp, enable recommended rules, apply all automated fixes (refs #657). 2022-12-19 21:36:24 -08:00
David Anson
c346e0dbac Add Apache Airflow and Electron repositories to README Examples and test-repos.js. 2022-12-19 21:15:47 -08:00
David Anson
8d6e0b5419 Replace helpers.urlRe with helpers.urlFe to address "innefficient regular expression" CodeQL alert, introduce function expressions as an alternative, test more inputs. 2022-12-18 15:46:19 -08:00
David Anson
485c63c579 Add more test cases for helpers.urlRe, refactor corresponding test to go line-by-line and use exec. 2022-12-17 15:38:55 -08:00
David Anson
466f1d00e4 Remove outdated exclusions from external repository tests. 2022-12-16 13:57:56 -08:00
David Anson
ac8f495ea2 Update MD051/link-fragments to identify and fix scenarios where the link fragment has the wrong case (fixes #605). 2022-12-16 13:50:38 -08:00
David Anson
d352d4ece1 Update MD034/no-bare-urls to handle more scenarios, simplify slightly, replace blanket MD034 suppression for https://github.com/mdn/content with specific (valid) issues (refs #607). 2022-12-15 14:27:07 -08:00
David Anson
2e2937081e Rename helpers.bareUrlRe to urlRe, improve it a little, add tests 2022-12-15 13:54:54 -08:00
David Anson
6e38259a4a Add https://github.com/mdn/content to test-repos scenario, ignore new MD034 issues for now (fixes #607). 2022-12-14 23:04:47 -08:00
David Anson
e8ec7bd94f Remove clone-test-repos-large npm script, merge into clone-test-repos. 2022-12-14 22:51:03 -08:00
David Anson
e42da81293 Tweak test case heading for consistency. 2022-12-14 22:40:57 -08:00
David Anson
cb16438a41 Add various Markdown lists as formatted by Prettier with the default --tab-width of 2 and the not uncommon alternate of 4, update Prettier.md with the relevant configuration (produced using v2.8.1 of https://prettier.io/playground/) (refs #652). 2022-12-13 20:24:21 -08:00
David Anson
22b755fb79 Remove outdated jsconfig.json file. 2022-12-13 17:14:17 -08:00
David Anson
d7433af4d3 Update project file linting test to include README.md, address new issues, remove extra test. 2022-12-13 17:11:43 -08:00
David Anson
c9f7a323cc Add ReleaseProcess.md to explain the release process (fixes #562). 2022-12-13 16:42:54 -08:00
OnkarRuikar
068b090293 Mention 'markdownlint-rule-search-replace' rule in documentation 2022-12-09 20:12:05 -08:00
David Anson
5eef37751b Update MD022/blanks-around-headings to include blockquote prefix if fixing inside a blockquote (fixes #654). 2022-12-07 21:16:36 -08:00
David Anson
2146bbae5f Update MD033/no-inline-html to ignore HTML in labels for reference links/images (fixes #658). 2022-12-06 22:57:45 -08:00
David Anson
cba5e8d340 Update MD034/no-bare-urls to better handle multiple similar issues on the same line (fixes https://github.com/igorshubovych/markdownlint-cli/issues/339). 2022-12-06 22:14:40 -08:00
Bryan Mishkin
2c38ae90fc Add example for markdownlint-rule-helpers.applyFixes to documentation (fixes #663). 2022-12-04 15:17:56 -08:00
David Anson
b133beaa77 Remove outdated exclusions from external repository tests. 2022-11-29 04:11:20 +00:00
David Anson
8df19ae24b Add simple test harness for easier debugging. 2022-11-15 22:05:39 -08:00
David Anson
f84c91d95f Update MD034/no-bare-urls to allow bare URLs inside the link text of HTML A tags (fixes 615). 2022-11-13 21:39:14 -08:00
David Anson
91dd6dcb1d Enable "line-length": { "strict": true } for all user-facing Markdown files in the repository. 2022-11-12 17:53:47 -08:00