Commit graph

21 commits

Author SHA1 Message Date
David Anson
213aef4564 Convert var to const/let (except in browser-only code). 2018-04-27 22:05:34 -07:00
Milos Levacic
45424cf459 Change "header" to "heading" across the library
This should be backward compatible, as all "header" aliases are still
available, though documented as discouraged for future use.
2018-04-18 22:27:48 -07:00
David Anson
89e12b90e0 Support 1-3 spaces prefixing a code fence per specification (fixes #107). 2018-03-06 21:43:45 -08:00
David Anson
40ace5bb5e Fix MD007/ul-indent to use parent indent instead of previous indent (fixes #106). 2018-03-05 20:56:12 -08:00
David Anson
748c8cac17 Remove unnecessary params parameter to shared.flattenLists/forEachLine. 2018-03-04 23:06:31 -08:00
David Anson
b33acb81d9 Remove params.tokenLists to simplify custom rule API. 2018-03-01 22:37:37 -08:00
David Anson
7a752784f1 Add validation of onError callback object for rules. 2018-02-27 21:14:02 -08:00
David Anson
802c81f929 Add support for authoring custom rules. 2018-02-25 16:04:13 -08:00
David Anson
bc8776c582 Stop caching forEachLine/flattenLists results on params object. 2018-02-02 22:29:50 -08:00
David Anson
056608a680 Improve code to determine unordered list style for MD004/ul-style (fixes #104). 2018-01-31 21:32:50 -08:00
David Anson
513a1351a5 Move code shared by rules into shared.js. 2018-01-18 21:27:07 -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
0a678d25c1 Ignore the content of (valid) HTML comments when linting (fixes #64). 2017-07-16 23:08:47 -07:00
David Anson
5bea80f5cd Ignore TOML front matter in addition to YAML (fixes #63). 2017-07-02 20:33:29 -07:00
David Anson
ba3614868b Update dependency: eslint to 3.9.1. 2016-11-02 22:09:16 -07:00
David Anson
9546cc520e Add rule aliases, support throughout (fixes #1). 2016-01-12 21:29:17 -08:00
David Anson
31141cc3ed Add support for disabling/enabling rules within Markdown content (fixes #5). 2015-09-26 16:55:33 -07:00
David Anson
a467f8b3e6 Automatically ignore common front matter; provide option for customization (fixes #2). 2015-07-25 22:18:30 -07:00
David Anson
63a52e9dea Document public API, comment framework code. 2015-03-15 23:39:17 -07:00
David Anson
9bedd25234 Add MD022 with tests, create shared module. 2015-03-08 23:09:05 -07:00