Commit graph

837 commits

Author SHA1 Message Date
David Anson
295e481552 Fix null dereference in helpers.getPreferredLineEnding when running in browser (platform unknown, process object not available) and input string does not contain line endings. 2022-05-04 22:09:11 -07:00
David Anson
580b7ed020 Unify near-identical implementations of MD049/emphasis-style and MD050/strong-style. 2022-05-03 21:59:49 -07:00
David Anson
76bc976d3b Rename md049.js in preparation for merging with md050.js. 2022-05-03 21:37:30 -07:00
David Anson
c4f51090ae Update MD049/emphasis-style and MD050/strong-style to correctly report and fix multiple identical violations on the same line (fixes #486). 2022-05-03 21:35:31 -07:00
David Anson
54369a00e6 Add test file for GitHub footnote syntax (closes #370). 2022-04-30 19:50:43 -07:00
David Anson
02afeb5bc0 Remove support for end-of-life Node.js version 12. 2022-04-30 19:19:42 -07:00
David Anson
7a5886b976 Update MD035/hr-style to preserve embedded spaces in thematic break markup (fixes #498). 2022-04-28 21:53:51 -07:00
David Anson
b447c809bd Update MD010/no-hard-tabs to add ignore_code_languages parameter (fixes #383). 2022-04-28 21:09:06 -07:00
David Anson
0f845e9ba1 Update MD044/proper-names to add html_elements parameter (fixes #435). 2022-04-25 21:50:33 -07:00
David Anson
8afec14376 Update MD044/proper-names to support specifying multiple casings of the same name (ex: "Abc" and "ABC") (refs #435). 2022-04-22 20:41:42 -07:00
David Anson
9310713da1 Make resultVersion 3 (report multiple errors per line, include fixInfo) the default. 2022-04-21 21:30:56 -07:00
David Anson
9b3fd3d16b Add "type" property of "commonjs" to package.json to be explicit. 2022-04-21 21:09:07 -07:00
David Anson
c8bd6053c7 Update project configuration for no-duplicate-heading to use siblings_only. 2022-04-21 21:05:30 -07:00
David Anson
152720f00e Update MD051/link-fragments to support indexing of repated headings. 2022-04-21 21:02:46 -07:00
David Anson
8c5f28c2f0 Refactor MD051/link-fragments slightly to reduce dependencies. 2022-04-20 21:27:21 -07:00
David Anson
bd92ec3fea
Add Node.js 18.x to CI test matrix. 2022-04-19 12:58:58 -07:00
David Anson
9a5e7e42ef Update MD051/link-fragments to use the same character classes as GitHub, encode unprintable characters from emojii. 2022-04-18 20:59:01 -07:00
David Anson
db5d9f6dbb Update previous commit for MD051/link-fragments to rename, refactor, add support for HTML anchors, and validate against
markdown-link-check (fixes #253).
2022-04-16 14:08:56 -07:00
Divlo
33ee1cd85e Initial implementation of MD051/valid-link-fragments (refs #253, closes #495). 2022-04-16 14:08:56 -07:00
David Anson
62f5c85238 Stop sharing params object across rules because doing so is unstable for asynchronous rules (fixes #510). 2022-03-20 12:59:35 -07:00
David Anson
4affefc68d Add proper-names rule to .markdownlint.json, update tests to use that file, fix resulting issues. 2022-03-10 06:11:38 +00:00
David Anson
062585e281 Update to actions/checkout@v3, actions/setup-node@v3. 2022-03-10 05:33:57 +00:00
Ashish Gupta
e4a42155d3
Update "markdown" to "Markdown" in Rules.md (fixes #507). 2022-03-07 21:12:14 -08:00
David Anson
7a53caa7fb Replace helpers.linkRe with helpers.forEachLink to fix "Polynomial regular expression used on uncontrolled data" and to better support link syntax. 2022-02-18 21:14:14 -08:00
David Anson
861443c740 Update MD042/no-empty-links to improve range reporting, remove helpers.emptyLinkRe. 2022-02-13 17:41:31 -08:00
David Anson
7c1550cbe9 Remove RegExp lookbehind assertions used to fix "Polynomial regular expression used on uncontrolled data" because they are not supported in Safari, add eslint-plugin-es rule no-regexp-lookbehind-assertions to prevent regressions. 2022-02-13 16:57:09 -08:00
David Anson
f46ee0732f Update helpers.inlineCommentRe to fix an instance of "Polynomial regular expression used on uncontrolled data". 2022-02-12 22:02:08 -08:00
David Anson
1c89dd5776 Reimplement helpers.isBlankLine to fix an instance of "Polynomial regular expression used on uncontrolled data". 2022-02-11 21:54:43 -08:00
David Anson
b9474e84a3 Add optional "platform" parameter to helpers.applyFixes (closes #496). 2022-02-09 22:44:49 -08:00
David Anson
4593b61ff5 Remove outdated suppressions from external repo tests. 2022-02-09 22:20:24 -08:00
EmilySeville7cfg
245791f79f Improve JSON schema (fixes #493). 2022-01-24 21:00:36 -08:00
David Anson
3a62220e87 Add "plugin:unicorn/all" to "extends" to simplify .eslintrc.json. 2022-01-23 23:05:24 -08:00
David Anson
3ba2df7386 Fix an instance of "Polynomial regular expression used on uncontrolled data". 2022-01-23 22:45:57 -08:00
David Anson
96699459d1 Fix an instance of "Polynomial regular expression used on uncontrolled data". 2022-01-22 22:48:22 -08:00
Paweł Drozd
4b7caf2a5b
Add eslint-plugin-markdownlint to Related/Tooling section (fixes #490). 2022-01-22 18:38:38 -08:00
David Anson
cb5eebb145 Fix an instance of "Polynomial regular expression used on uncontrolled data". 2022-01-21 21:51:36 -08:00
David Anson
b6121341b9 Fix an instance of "Polynomial regular expression used on uncontrolled data". 2022-01-20 20:02:14 -08:00
David Anson
a4c4e198d6
Remove outdated test repo exception for ESLint. (#487) 2022-01-19 18:37:01 -08:00
David Anson
2d19c0685b Update to version 0.25.1. 2022-01-13 22:29:31 -08:00
David Anson
61bb059c75 Make all package.json dependency versions explicit for more deterministic installs. 2022-01-13 22:22:20 -08:00
David Anson
66d533d038 Update npx invocation to pass --yes to avoid prompting to install missing packages. 2022-01-13 22:17:11 -08:00
David Anson
23d8ed7c01 Add test case for custom rule that imports an ESM module (refs #477). 2022-01-11 23:08:53 -08:00
David Anson
b1aef98220 Empty commit to note that previous commit fixes #478. 2022-01-11 22:45:12 -08:00
David Anson
f77eca0006 Update dependency: markdown-it to 12.3.2. 2022-01-11 22:43:10 -08:00
David Anson
05b4b5fd06 Update copyright year to 2022. 2022-01-08 20:42:55 +00:00
David Anson
02707cf270 Merge branch 'next' into main 2021-12-27 18:51:01 -08:00
David Anson
4ff4cbcc41 Update to version 0.25.0. 2021-12-27 18:43:25 -08:00
David Anson
e298e3daa4 Include async/await function in custom rules test for asynchronous mode. 2021-12-27 18:25:18 -08:00
David Anson
11e9a20531 Update dependency: globby to 12.0.2. 2021-12-27 22:53:04 +00:00
David Anson
05b9e6e43c Update dependency: strip-json-comments to 4.0.0. 2021-12-27 21:59:56 +00:00