Commit graph

140 commits

Author SHA1 Message Date
Tommy G
460836445c Add new MD054/link-image-style rule (in-progress PR, no generated files). 2023-11-02 19:48:55 -07:00
David Anson
13b4340747 Update all links to rules to use md000.md instead of Rules.md#md000 (shorter, quicker, less distraction). 2022-10-30 14:58:45 -07:00
David Anson
b6471fba31 Enable ESLint rule unicorn/no-array-for-each, auto-fix all violations, manually address new issues for ~4% time reduction measured via profile-fixture.mjs on Apple Silicon M1. 2022-06-08 22:10:27 -07:00
David Anson
c5ca661b96 Add MD052/reference-links-images and MD053/link-image-reference-definitions for reporting issues with link and image references (fixes #144, fixes #390, fixes #425, fixes #456). 2022-06-01 20:26:01 -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
Divlo
33ee1cd85e Initial implementation of MD051/valid-link-fragments (refs #253, closes #495). 2022-04-16 14:08:56 -07:00
David Anson
c5345f45eb Replace require("package.json") with constants.js to simplify and remove that file from markdownlint-browser.js. 2021-11-10 21:48:15 -08:00
Sébastien Règne
39724b991a
Add MD049/emphasis-style (fixes #150). 2021-10-23 21:54:58 -07:00
Sébastien Règne
ab9e5875a2
Add MD050/strong-style (fixes #150). 2021-10-20 21:42:48 -07:00
David Anson
01d216ff6a Try adding @ts-ignore/etc. to resolve Windows/Node 14-only break when ci script invokes build-demo. 2021-01-06 20:28:24 -08:00
David Anson
e1eb81cd21 Add lint rules from eslint-plugin-node. 2020-09-06 19:49:35 -07:00
Marius Lichtblau
e9b3cc4c18 Add fenced code block style rule (#224) (fixes #223). 2019-10-24 20:26:27 -07:00
KitoW
a977d0dcbc Add MD047/single-trailing-newline for enforcing new lines at the end of file (fixes #89). 2019-04-19 20:13:07 -07:00
David Anson
0af999e218 Implement rule MD046/code-block-style from Ruby version. 2019-04-17 14:42:17 -07:00
David Anson
ff86e1d7f1 Add optional "information" property to custom rules to provide a link to more information. 2019-01-15 21:56:38 -08:00
David Anson
9ba143555d Move each rule implementation into its own file (fixes #83). 2018-01-21 21:44:25 -08:00
David Anson
49e36f817c Remove abbreviations from rule metadata to clarify API. 2018-01-18 21:34:30 -08:00
David Anson
513a1351a5 Move code shared by rules into shared.js. 2018-01-18 21:27:07 -08:00
David Anson
f79cdcb0d4 Rename rule params.options to .config for API consistency. 2018-01-17 20:52:54 -08:00
David Anson
a0e3b4db90 Remove regexp from rule definition to simplify API. 2018-01-16 21:27:38 -08:00
David Anson
25b6e6f2f3 Move error reporting helpers out of core to simplify API for rule.func. 2018-01-14 21:53:35 -08:00
David Anson
54c28f47c3 Merge rule name/alias in rule definitions and results (for resultVersion 2). 2018-01-12 23:21:06 -08:00
David Anson
f91f0880c3 Refine implementation of MD045/no-alt-text in previous commit. 2018-01-06 18:06:32 -08:00
Duncan Mackenzie
4fa837a031 Add MD045/no-alt-text (fixes #75). 2018-01-06 15:55:59 -08:00
David Anson
0b2c810389 Update dependencies: markdown-it to 8.4.0. 2017-12-15 23:31:05 -08:00
David Anson
3cecb86f9b Add "// @ts-check" for better VS Code experience, address corresponding issues. 2017-12-15 22:55:51 -08:00
David Anson
1184281c87 Replace trimLeft/trimRight polyfills with helper methods. 2017-12-13 21:41:28 -08:00
David Anson
39d39db961 Add style one_or_ordered to MD029/ol-prefix (fixes #97). 2017-12-12 22:41:11 -08:00
David Anson
f910fa0cb1 Add detail to MD029/ol-prefix message to help distinguish 1/1/1 from 1/2/3. 2017-11-20 21:49:22 -08:00
David Anson
0fd322a380 Improve highlighting for MD042/no-empty-links, add more tests. 2017-11-15 21:44:21 -08:00
David Anson
d46fb3b6dd Improve RegExp for MD020/no-missing-space-closed-atx, more tests. 2017-11-12 22:21:54 -08:00
David Anson
7acb3d72fd Improve highlighting for MD044/proper-names, add more tests. 2017-11-07 21:40:50 -08:00
David Anson
1668207213 Update spaceInsideLinkRe for consistency with vscode-markdownlint. 2017-11-06 21:56:59 -08:00
David Anson
6fa609fdbd Make bare URL RegExp case-insensitive, add more tests. 2017-11-02 22:36:53 -07:00
David Anson
4a27c3d100 Improve highlighting for MD037/no-space-in-emphasis, add more tests. 2017-11-02 22:25:56 -07:00
David Anson
5fee0a921d Improve highlighting for MD038/no-space-in-code, add more tests. 2017-10-31 23:05:28 -07:00
David Anson
681e8bae4e Improve highlighting for MD027/no-multiple-space-blockquote, add more tests. 2017-10-29 20:54:14 -07:00
David Anson
1dce3e45d3 Update MD013/line-length to allow long lines composed only of emphasized/strong links (fixes #67). 2017-10-28 14:58:34 -07:00
David Anson
0c38635afe Add TOML title syntax to MD041/first-line-h1 default RegExp (fixes #77). 2017-10-24 22:15:03 -07:00
David Anson
edd426bbaa Allow overlapping and differently-cased names for MD044/proper-names (fixes #60). 2017-06-15 22:53:33 -07:00
David Anson
d826833a82 Allow opt-out for list items with blank lines in MD009/no-trailing-spaces (fixes #55). 2017-05-11 21:44:41 -07:00
David Anson
da529ac286 Fix bug in detailed error message for MD030/list-marker-space when no space present (fixes #57). 2017-05-06 21:56:24 -07:00
David Anson
942f0600d2 Support front matter title property override for MD041/first-line-h1 (fixes #53). 2017-05-06 15:25:14 -07:00
David Anson
31c252a55c Add code_blocks parameter to MD044/proper-names (fixes #50). 2017-03-18 19:47:26 -07:00
David Anson
15fe91ba38 Update MD044/proper-names to ignore violations in bare URLs (fixes #50). 2017-03-17 20:08:57 -07:00
David Anson
5e710e31c8 Update MD009/no-trailing-spaces to use forEachLine for consistency. 2017-03-16 22:11:09 -07:00
David Anson
935935b96c Update MD044/proper-names to ignore non-text content like link targets. 2017-03-16 22:07:25 -07:00
David Anson
5a1fb40871 Ignore escaped backticks in code span elements per specification. 2017-03-13 21:29:24 -07:00
David Anson
0c1f40323d Update MD013/line-length not to report long link-only lines (fixes #36). 2017-03-01 21:43:04 -08:00