David Anson
94d5432f4d
Improve README.md/CustomRules.md, add CustomRules.md/Rules.md to tests.
2020-09-06 16:31:26 -07:00
David Anson
e0e5ce555a
Update dependency: tape to 5.0.1.
2020-09-05 17:31:39 -07:00
David Anson
2af3dd0d7a
Replace dev dependency markdown-it-katex with @iktakahiro/markdown-it-katex per "npm audit".
2020-09-05 17:31:26 -07:00
David Anson
0acc578e52
Update remaining references to refer to main branch as "main".
2020-08-11 22:52:29 -07:00
David Anson
e1772ddc51
Group items in "Related" section of README.md by category.
2020-06-22 21:03:26 -07:00
David Anson
4ff6f2f4b1
Change behavior of un-terminated HTML comments to be treated as text ( fixes #252 ).
2020-03-09 23:06:13 -07:00
David Anson
d171b6c6b7
Add tape-player 0.1.0 to devDependencies for logging output from tape test harness.
2020-02-15 11:23:54 -08:00
David Anson
3238ed4249
Update all rules to better handle wrongly-typed configuration parameters.
2020-01-25 18:40:39 -08:00
David Anson
74af9f82fb
Enable jsdoc/require-jsdoc rule, fix all violations ( fixes #85 ).
2020-01-23 19:42:46 -08:00
David Anson
5f6e17915a
Copy range property of rule's onError object at time of call; add test to verify.
2020-01-13 19:49:51 -08:00
David Anson
d15324478c
Deprecate MD006/ul-start-left in favor of MD007/ul-indent.
2020-01-13 19:19:49 -08:00
David Anson
21b01b2a96
Resolve remaining TypeScript-based editor warnings in test file.
2020-01-11 20:48:00 -08:00
David Anson
18daae9525
Replace custom promisify implementation with util.promisify.
2020-01-09 21:06:22 -08:00
David Anson
6d9cbfe7be
Add simple in-process test reporter for tape output.
2020-01-09 20:57:14 -08:00
David Anson
3c100a21ff
Switch from deprecated nodeunit test runner to tape.
2020-01-08 22:13:51 -08:00
David Anson
61e0ac314c
Test case improvements for correctness, detail, and performance.
2020-01-06 22:09:07 -08:00
David Anson
6f3c67f760
Update MD009/no-trailing-spaces to include strict mode ( fixes #216 ).
2019-12-09 22:05:57 -08:00
David Anson
0a9ac73524
Introduce type declaration file for project after updating typescript dependency to 3.7.2.
2019-11-10 19:26:55 -08:00
David Anson
37307d0764
Add @ts-check to JS files without it, address resulting issues.
2019-10-30 20:37:06 -07:00
Marius Lichtblau
e9b3cc4c18
Add fenced code block style rule ( #224 ) ( fixes #223 ).
2019-10-24 20:26:27 -07:00
David Anson
9202ebe390
Update fixInfo.lineNumber for front matter, sanitize fixInfo object from rules.
2019-10-19 17:34:02 -07:00
David Anson
a5f03d02d0
Fix forEachInlineCodeSpan to handle lines ending with '\' better.
2019-09-25 21:59:37 -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
4843e277c0
Update applyFix to make line ending optional, MD047 to highlight only last character.
2019-09-20 21:50:44 -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
316bfeadaa
Update MD018/MD019/MD020/MD021 to report fixInfo for violations.
2019-09-08 16:51:00 -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
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
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
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
0f72bf054b
Add options.handleRuleFailures for custom rule exceptions.
2019-05-18 12:32:52 -07:00
David Anson
61c92e5997
Handle un-closed HTML comments in a way that does not trigger MD047/single-trailing-newline ( fixes #187 ).
2019-05-16 22:14:07 -07:00
David Anson
1b8b15693f
Replace assign/clone helpers with object spread syntax.
2019-05-05 22:27:01 -07:00
David Anson
b55d51cf23
Add additional validation of lineNumber/range properties in rule onError function.
2019-04-30 22:14:30 -07:00
David Anson
4c7ffdd335
Improve handling of nested tags and blocks by MD033/no-inline-html ( fixes #179 ).
2019-04-29 22:09:33 -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
73511ff677
Remove trimLeft/trimRight helpers; use native implementations.
2019-04-17 14:54:27 -07:00
David Anson
0af999e218
Implement rule MD046/code-block-style from Ruby version.
2019-04-17 14:42:17 -07:00
David Anson
7e980401b8
Expose shared.js helper code for custom rule authors ( fixes #134 ).
2019-04-13 11:18:57 -07:00
David Anson
ec35833751
Update dependencies: @types/node to 11.12.0, eslint to 5.15.3, js-yaml to 3.13.0, typescript to 3.3.4000, uglify-js to 3.5.2.
2019-03-30 14:36:04 -07:00
David Anson
9b9532e163
Add includesSorted function, use for faster searches of sorted arrays.
2019-03-28 22:06:42 -07:00