Commit graph

269 commits

Author SHA1 Message Date
David Anson
d9de1dd22f Update MD022/blanks-around-headings to allow specifying a different number of blank lines for each heading level (fixes #504). 2023-08-08 22:56:59 -07:00
David Anson
ef1bd286a9 Reimplement MD051/link-fragments using micromark tokens, report reference link issues for definition and fix when possible, handle reporting multiple violations on the same line better. 2023-08-04 20:53:38 -07:00
David Anson
73b9704159 Reimplement MD037/no-space-in-emphasis using micromark tokens, report start/end separately for smaller edit spans, remove markdown-it-texmath (fixes #533, fixes #597). 2023-07-24 21:36:55 -07:00
David Anson
e86fb7699d Refactor to move reparse of micromark htmlFlow token content into core micromarkParse implementation for simplicity and sharing. 2023-07-21 22:49:08 -07:00
David Anson
9646590496 Reimplement MD032/blanks-around-lists using micromark tokens, add newly-detected violations to test snapshot. 2023-07-18 22:33:57 -07:00
David Anson
3945de161e Update markdownlint-micromark dependency to 0.1.7, incorporate micromark-extension-math into parse (and compile for demo page). 2023-07-16 22:07:34 -07:00
David Anson
c8236ed0ea Update harness.mjs to output micromark token structure. 2023-07-14 21:36:10 -07:00
David Anson
9897863130 Harden code to snapshot rule definitions against mutation, add comments to some helper functions. 2023-07-12 21:58:48 -07:00
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
6f8c70877c Update dependency: markdownlint-micromark to 0.1.6. 2023-06-26 21:00:11 -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
d01180ec5a Update to version 0.29.0. 2023-06-01 20:41:10 -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
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
95992f23c6 Update to version 0.28.0. 2023-03-23 22:04:35 -07:00
David Anson
5bff33d41b Reimplement MD044/proper-names using micromark tokens. 2023-03-14 21:03:07 -07:00
David Anson
4ec9b2049b Tweak filterByPredicate to avoid calling transform when children array is empty. 2023-03-10 22:22:54 -08:00
David Anson
0c48b4b032 Remove the use of "||=" which is not supported by Node 14 (and hidden by setup-node failing to configure Node 14 for CI workflow). 2023-02-25 16:24:24 -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
b787758a48 Update to markdownlint-micromark@0.1.2, include gfmTable extension, change matchAndGetTokensByType return value, include .cjs files when linting. 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
c15262a0f5 Switch to using npm version of markdownlint-micromark package and browser script. 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
97f99befb8 Reimplement getReferenceLinkImageData using micromark tokens. 2023-02-25 15:50:57 -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
b9043c251d Remove years from copyright statements. 2023-01-14 15:11:48 -08:00
David Anson
5a4cf179c4 Update to version 0.27.0 (closes #669). 2022-12-28 01:26:27 +00:00
David Anson
a5d9f299fe Synchronize package.json/engines/node for helpers to v14 value for markdownlint. 2022-12-23 00:47:06 +00:00
David Anson
86a4a7de79 Change helpers.getReferenceLinkImageData().shortcuts from Set to Map using the same schema as .references (fixes #685). 2022-12-23 00:41:11 +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
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
2e2937081e Rename helpers.bareUrlRe to urlRe, improve it a little, add tests 2022-12-15 13:54:54 -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
2e63bf7dd8 Configure all rules that allow style=consistent (or similar) to require an explicit style for consistency across the project. 2022-11-13 20:53:17 -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
David Anson
99a3f164a9 Update MD013/line-length to permit long link/image reference definitions in all modes because they can not be easily split. 2022-11-08 21:40:33 -08:00
David Anson
592a42b0cb Update MD053/link-image-reference-definitions to handle references within references (i.e., Pandoc-style footnotes), verify Pandoc footnote indent is not treated as comment when markdown-it-footnote plugin is used (fixes #599). 2022-10-19 21:18:56 -07:00
David Anson
f0bb4c639b Change HTML comment content sanitization to avoid breaking list item indent, respect table cell content rules (fixes #563). 2022-10-14 20:59:56 -07:00
David Anson
6974cd6012 Fix helpers.referenceLinkRe to handle full and shortcut reference image links inside normal links (fixes #571). 2022-08-31 22:46:19 -07:00
David Anson
4c00ffa2f0 Fix new violations from eslint-plugin-unicorn update. 2022-08-15 21:20:27 -07:00
David Anson
ebf249b6cc Update to version 0.26.2. 2022-08-08 21:05:50 -07:00
David Anson
2c3e8c938b Update MD053/link-image-reference-definitions to handle multi-line references inside blockquotes (fixes #544). 2022-08-01 18:48:01 -07:00
David Anson
48f47b5214 Update MD053/link-image-reference-definitions to recognize links within square brackets (fixes #537). 2022-07-30 16:12:27 -07:00