Commit graph

600 commits

Author SHA1 Message Date
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
David Anson
1ae512be69 Update to version 0.15.0. 2019-06-09 16:51:41 -07:00
David Anson
569e4c175b Update dependencies: @types/node to 12.0.7, glob to 7.1.4, markdownlint-rule-helpers to 0.2.1, nyc to 14.1.1, typescript to 3.5.1, uglify-js to 3.6.0. 2019-06-09 14:28:50 -07:00
David Anson
8e760b7255 Remove Travis CI/Coveralls badges (replaced by Azure DevOps). 2019-06-09 14:23:50 -07:00
David Anson
65052f6200 Add support for inline comments markdownlint-capture/markdownlint-restore (fixes #194). 2019-06-08 19:26:11 -07:00
David Anson
64351f73be Update MD013/line-length with new code_block_line_length parameter (fixes #184). 2019-06-07 19:57:15 -07:00
David Anson
1d8b9e7e62 Add full-width punctuation characters to MD026/no-trailing-punctuation and MD036/no-emphasis-as-heading (fixes #192). 2019-06-06 22:21:31 -07:00
David Anson
fa40084994 Make MD033/no-inline-html slightly more efficient. 2019-06-06 22:02:10 -07:00
David Anson
73e70b76f3 Update MD033/no-inline-html to handle escaped backticks (fixes #193). 2019-06-04 23:19:49 -07:00
David Anson
5a142da87c Add Boostnote to examples in README. 2019-06-04 21:57:27 -07:00
David Anson
f31fe89d02 Split Azure DevOps npm install/ci commands into different steps. 2019-06-03 22:34:32 -07:00
David Anson
853e90a1c1 Update MD033/no-inline-html to match specification for element names (fixes #188). 2019-06-03 22:32:04 -07:00
David Anson
861e741d48 Update .npmignore with new files/directories. 2019-06-03 22:21:28 -07:00
Wouter Admiraal
779a55a662 Allow trailing spaces in indented code blocks (#191) 2019-06-01 15:26:48 -07:00
David Anson
2f1c2c5312 Convert Azure DevOps script to one-liner to work around early exit on Windows due to invoking a script from a script (npm). 2019-06-01 15:19:24 -07:00
David Anson
2fb2a66c49 Add npm script "ci" for continuous integration scenarios. 2019-06-01 14:01:48 -07:00
David Anson
f748dc4b01 Add badge for Azure DevOps CI pipeline. 2019-06-01 12:21:02 -07:00
David Anson
d009e5b5be Update code coverage script to fail if coverage drops below 100%, show only failures. 2019-06-01 12:05:55 -07:00
David Anson
1fe04990a9 Add linting, attempt to suppress package.lock message on Windows. 2019-05-31 21:59:51 -07:00
David Anson
3abcc57b25 Update Azure DevOps Pipeline to run for all branches and Linux/Windows/macOS. 2019-05-30 21:22:45 -07:00
David Anson
ea57e59c51 Add Node version matrix to Azure DevOps Pipeline 2019-05-30 20:50:32 -07:00
David Anson
0e8b40ad74 Update azure-pipelines.yml for Azure Pipelines 2019-05-30 20:34:09 -07:00
David Anson
ce86ef688d Set up CI with Azure Pipelines
[skip ci]
2019-05-30 20:30:28 -07:00
David Anson
95d23b9a11 Update to version 0.14.2. 2019-05-18 13:36:06 -07:00