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
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
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
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
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
Sébastien Règne
72439f42c6
Update MD040/fenced-code-language to add language_only parameter to reject extra data in info string.
2022-11-10 22:07:04 -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
Sébastien Règne
b73ab7fd91
Update MD040/fenced-code-language to use case-sensitive comparison for allowed languages ( fixes #627 ).
2022-11-05 17:41:27 -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
Mateus Ferreira
37f74ee958
Update MD043/required-headings to add match_case parameter ( fixes #613 ).
2022-10-22 00:15:50 -07: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
Sam Chen
01ba757d3a
Update MD040/fenced-code-language to add allowed_languages parameter ( fixes #610 ).
2022-10-17 12:29:29 -07:00
David Anson
c333976a44
Update MD011/no-reversed-links to avoid more nested paren scenarios ( fixes #572 ).
2022-10-16 22:16:51 -07:00
David Anson
56f379b0fc
Remove legacy exclusion from scenario tests for files with no errors (previously "detailed-" files).
2022-10-15 16:06:20 -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
a6489acd6b
Update MD053/link-image-reference-definitions to add ignored_definitions parameter (default to ["//"]) ( fixes #545 ).
2022-08-02 20:36:47 -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
1154ab483b
Update MD037/no-space-in-emphasis to ignore the content of HTML attributes ( fixes #540 ).
2022-07-30 20:35:27 -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
Mark Lodato
6c8ef48f94
Update MD051/link-fragments to support id
attributes on non-a
elements ( fixes #538 ).
...
The `name` is only an anchor on `a` elements, but `id` is a universal
attribute on all elements.
Also fix match on id/name to be complete, not just a suffix.
2022-07-27 21:42:05 -07:00
David Anson
59a4a56bfc
Add tests for MD051/link-fragments to validate quotes and accented characters (refs #536 ).
2022-07-21 04:17:11 +00:00
David Anson
1bd748f79e
Update MD051/link-fragments to ignore HTML comments embedded in heading text.
2022-07-19 06:29:52 +00:00
David Anson
54acae87ea
Update MD009/no-trailing-spaces to remove unnecessary sorting, add additional test cases.
2022-06-16 04:48:51 +00:00
David Anson
f284233f9a
Add test scenario for rule violations after a multi-line code span.
2022-06-13 23:11:53 -07:00
David Anson
28b273e798
Add more test cases for trailing spaces.
2022-06-13 22:53:48 -07:00
David Anson
85d720cefc
Update helpers.flattenLists to provide correct lastLineIndex for lists with an empty last item ( fixes #529 ).
2022-06-07 22:16:34 -07:00
David Anson
bbec8c5c1e
Hide the content of inline configuration HTML comments from the linting process to avoid false positives.
2022-06-04 22:59:19 -07:00
David Anson
6718944b0f
Replace helpers.overlapsAnyRange with .withinAnyRange, update code/tests for resulting behavior.
2022-06-02 22:17:32 -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
3792613d2d
Implement markdownlint-disable-line inline comment (behaves like markdownlint-disable-next-line, but for the current line) ( fixes #524 ).
2022-05-15 15:59:11 -07:00
David Anson
5f5f44e8e0
Update MD031/blanks-around-fences to avoid duplicating list item markers when adding blank lines ( fixes #485 ).
2022-05-14 19:18:13 -07:00
David Anson
877ede7735
Remove outdated "detailed-results-" prefix from test scenario files.
2022-05-11 06:26:30 +00:00
David Anson
820f2699ca
Reimplement markdownlint-test-scenarios.js to be simpler, more efficient, and use AVA test snapshots for all file-based test scenarios.
2022-05-10 06:11:46 +00:00