David Anson
377323d872
Update to version 0.17.0.
2019-10-04 21:46:06 -07:00
David Anson
dc39509f25
Update dependencies: @types/node to 12.7.11, browserify to 16.5.0, eslint to 6.5.1, markdownlint-rule-helpers to 0.4.0, rimraf to 3.0.0, typescript to 3.6.3.
2019-10-03 20:56:46 -07:00
David Anson
17487dd105
Update dependencies: markdown-it to 10.0.0.
2019-10-03 20:47:28 -07:00
David Anson
b24c1e6d06
Add CodiMD to Examples section of README.md.
2019-10-02 20:18:10 -07:00
David Anson
21fa4dc2e7
Include markdownlint-browser.js in npm package for scenarios like https://github.com/hackmdio/codimd/issues/1256 .
2019-10-02 20:10:42 -07:00
David Anson
caf21fb392
Update MD037/no-space-in-emphasis to handle "***"/"___" ( fixes #218 ).
2019-10-02 19:56:52 -07:00
David Anson
c4f77e021d
Update MD014/commands-show-output to report each violation, include fix information ( fixes #217 ).
2019-10-01 22:12:12 -07:00
David Anson
1edb3f0a78
Update MD039/no-space-in-links to handle hardbreaks ( fixes #222 ).
2019-09-28 22:50:33 -07:00
David Anson
fa9e08cf53
Merge fixInfo branch to introduce automatic fix ability for built-in and custom rules ( fixes #80 ).
2019-09-28 17:16:08 -07:00
David Anson
6587ba7261
Fix MD011/no-reversed-links to better handle escaped RegExp content in reversed links.
2019-09-28 14:30:16 -07:00
David Anson
40ac584482
Update annotateTokens to handle multi-line code spans.
2019-09-27 21:18:16 -07:00
David Anson
3632ce28b9
Fix highlighting of MD011/no-reversed-links when preceeded by decorated text.
2019-09-26 22:29:01 -07:00
David Anson
a5f03d02d0
Fix forEachInlineCodeSpan to handle lines ending with '\' better.
2019-09-25 21:59:37 -07:00
David Anson
33cb1a71ec
Fix MD039/no-space-in-links to handle links within a multi-line paragraph.
2019-09-24 23:00:30 -07:00
David Anson
1ac2e6c3e8
Fix MD019/no-multiple-space-atx to ignore headings without content.
2019-09-24 22:40:41 -07:00
David Anson
dc8e746cd2
Update MD037/no-space-in-emphasis to report left+right errors only once.
2019-09-22 21:58:57 -07:00
David Anson
737126cf93
Update MD034/no-bare-urls to report multiple instances on the same line.
2019-09-22 21:31:02 -07:00
David Anson
a75f1ecf2a
Fix MD039/no-space-in-links range for multiple issues on the same line.
2019-09-21 21:05:58 -07:00
David Anson
4843e277c0
Update applyFix to make line ending optional, MD047 to highlight only last character.
2019-09-20 21:50:44 -07:00
David Anson
d974e78e3f
Update README.md and CustomRules.md documentation of new fixInfo behavior.
2019-09-19 21:49:42 -07:00
David Anson
33e3797084
Fix broken MD020/MD021/MD038 scenarios.
2019-09-19 21:39:59 -07:00
David Anson
677255a484
Fix applyFix handling of multiple line endings; MD022 handling of multiple lines.
2019-09-16 22:38:29 -07:00
David Anson
52939a6d7e
Add validation of applyFixes via result snapshots.
2019-09-16 21:48:34 -07:00
David Anson
b77a56255f
Update applyFix/es to preserve the dominant line ending for each input.
2019-09-14 22:31:08 -07:00
David Anson
220a1d78a9
Update newline handling to match latest CommonMark specification.
2019-09-14 13:53:35 -07:00
David Anson
65f6d38978
Validate errorInfo.fixInfo object/properties in extension calls to onError.
2019-09-14 13:39:27 -07:00
David Anson
5895ea62cb
Rename and refactor applyFix from fixErrors for one-off scenarios.
2019-09-12 21:50:40 -07:00
David Anson
0502e370de
Update MD026/MD030 to report fixInfo for violations.
2019-09-11 22:59:42 -07:00
David Anson
00a7e765ec
Update MD027/MD044 to report fixInfo for violations.
2019-09-09 22:03:59 -07:00
David Anson
316bfeadaa
Update MD018/MD019/MD020/MD021 to report fixInfo for violations.
2019-09-08 16:51:00 -07:00
David Anson
c8a74bd72c
Update MD037/MD038/MD039 to report fixInfo for violations.
2019-09-06 22:35:33 -07:00
David Anson
620853f200
Update MD011/MD034 to report fixInfo for violations.
2019-09-04 22:18:23 -07:00
David Anson
5e73aa1d9d
Update MD006/MD023 to report fixInfo for violations, process input to fixErrors.
2019-09-02 15:35:43 -07:00
David Anson
84e972c72c
Replace string.trimEnd with string.trimRight for Node 8.
2019-08-28 21:52:13 -07:00
David Anson
a062e7c6bd
Update MD022/MD031/MD032 to report fixInfo for violations, normalize input to fixErrors.
2019-08-28 21:47:07 -07:00
David Anson
2cd27c58f2
Update MD009/MD010/MD012/MD028 to report fixInfo for violations.
2019-08-24 22:55:51 -07:00
David Anson
679c83e23b
Update resultVersion 3 to report all issues on a line; update MD010/no-hard-tabs to log all issues.
2019-08-21 21:02:09 -07:00
David Anson
cdd87e647f
Add infrastructure for rules to include fix information when logging violations, update MD047 (refs #80 ).
2019-08-16 19:56:52 -07:00
Marco Bonelli
1667de2d9d
Rules: update MD032 removing deprecated paragraph ( fixes #211 ). ( #212 )
...
"Lazy continuation" is allowed for list items according to the CommonMark
specification.
2019-08-06 11:42:16 -07:00
David Anson
6e086114b1
Update to version 0.16.0.
2019-08-04 21:58:39 -07:00
David Anson
e61e39dadf
Update dependencies: @types/node to 12.6.9, browserify to 16.3.0, eslint to 6.1.0, markdownlint-rule-helpers to 0.3.0, typescript to 3.5.3.
2019-08-03 16:33:51 -07:00
David Anson
537a2e0b1d
Update dependencies: markdown-it to 9.0.1.
2019-08-03 16:25:17 -07:00
David Anson
c5b74d22b9
Update MD031/blanks-around-fences to include list_items parameter ( fixes #200 ).
2019-08-02 22:58:41 -07:00
David Anson
4d11e60cfe
Add custom rule example to lint JavaScript code blocks using ESLint ( fixes #197 ).
2019-07-30 23:07:42 -07:00
David Anson
c3e8eab87b
Update MD038/no-space-in-code to ignore backticks in link destinations ( fixes #206 ).
2019-07-28 16:48:32 -07:00
David Anson
cd7a65cedd
Allow for trailing spaces after front matter open/close fences ( fixes #208 ).
2019-07-27 18:10:26 -07:00
David Anson
91b4fcd55f
Update MD026/no-trailing-punctuation to handle empty punctuation paramater, escape for RegExp ( fixes #205 ).
2019-07-26 23:03:56 -07:00
David Anson
d336a11665
Simplify RegExp from previous commit.
2019-07-26 22:34:32 -07:00
David Anson
f81609d1bb
Update MD033/no-inline-html to ignore elements with embedded forward slash ( fixes #201 ).
2019-07-25 21:40:53 -07:00
Travis C. LaGrone
37236df18e
Strike-through deprecated rule headings ( fixes #203 ).
...
Changes:
- Formats the headings of deprecated rules using strikethrough in the 'Rules /
Aliases' section of the 'README.md' file and in the 'doc/Rules.md' file.
- Updates the 'readme' and 'doc' tests in the 'test/markdownlint-test.js' file
to permit their respective rule headings to be formatted using strikethrough.
Benefits:
- Indicates rule deprecation status 'at a glance'.
(fixes #203 )
2019-07-08 19:10:08 +01:00