Commit graph

160 commits

Author SHA1 Message Date
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
f80b61d8b7 Allow empty string for detail/context in onError callback from rules. 2018-03-17 22:11:56 -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
942cc9af08 Use "markdown" for syntax highlighting on GitHub ("md" not recognized). 2018-03-03 22:22:02 -08:00
David Anson
08c8031736 Add documentation for authoring custom rules. 2018-03-03 22:15:49 -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
f24f98e146 Add support for using custom rules. 2018-02-15 21:35:58 -08:00
David Anson
4619a8c824 Refactor to run rule analysis when called, simplify functions. 2018-02-05 21:26:07 -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
49e36f817c Remove abbreviations from rule metadata to clarify API. 2018-01-18 21:34:30 -08:00
David Anson
f79cdcb0d4 Rename rule params.options to .config for API consistency. 2018-01-17 20:52:54 -08:00
David Anson
a0e3b4db90 Remove regexp from rule definition to simplify API. 2018-01-16 21:27:38 -08:00
David Anson
54c28f47c3 Merge rule name/alias in rule definitions and results (for resultVersion 2). 2018-01-12 23:21:06 -08:00
David Anson
b565c1ff32 Add violation of new rule MD045 to break-all-the-rules.md. 2018-01-08 21:29:13 -08:00
David Anson
f91f0880c3 Refine implementation of MD045/no-alt-text in previous commit. 2018-01-06 18:06:32 -08:00
Duncan Mackenzie
4fa837a031 Add MD045/no-alt-text (fixes #75). 2018-01-06 15:55:59 -08:00
David Anson
1184281c87 Replace trimLeft/trimRight polyfills with helper methods. 2017-12-13 21:41:28 -08:00
David Anson
39d39db961 Add style one_or_ordered to MD029/ol-prefix (fixes #97). 2017-12-12 22:41:11 -08:00
David Anson
af968fb246 Add Examples section to README with links to real-world use cases. 2017-11-21 21:58:42 -08:00
David Anson
f910fa0cb1 Add detail to MD029/ol-prefix message to help distinguish 1/1/1 from 1/2/3. 2017-11-20 21:49:22 -08:00
David Anson
0fd322a380 Improve highlighting for MD042/no-empty-links, add more tests. 2017-11-15 21:44:21 -08:00
David Anson
d46fb3b6dd Improve RegExp for MD020/no-missing-space-closed-atx, more tests. 2017-11-12 22:21:54 -08:00
David Anson
b19b3ccd7f Add new test case from markdownlint/markdownlint project. 2017-11-07 21:49:08 -08:00
David Anson
7acb3d72fd Improve highlighting for MD044/proper-names, add more tests. 2017-11-07 21:40:50 -08:00
David Anson
6fa609fdbd Make bare URL RegExp case-insensitive, add more tests. 2017-11-02 22:36:53 -07:00
David Anson
4a27c3d100 Improve highlighting for MD037/no-space-in-emphasis, add more tests. 2017-11-02 22:25:56 -07:00
David Anson
5fee0a921d Improve highlighting for MD038/no-space-in-code, add more tests. 2017-10-31 23:05:28 -07:00
David Anson
681e8bae4e Improve highlighting for MD027/no-multiple-space-blockquote, add more tests. 2017-10-29 20:54:14 -07:00
David Anson
1dce3e45d3 Update MD013/line-length to allow long lines composed only of emphasized/strong links (fixes #67). 2017-10-28 14:58:34 -07:00
David Anson
0c38635afe Add TOML title syntax to MD041/first-line-h1 default RegExp (fixes #77). 2017-10-24 22:15:03 -07:00
David Anson
0211abf1ba Update dependencies: browserify to 14.4.0, eslint to 4.2.0, nodeunit to 0.11.1, uglify-js to 3.0.25. 2017-07-17 22:23:00 -07: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
8c34383f80 Change default value of options.resultVersion to 1 (breaking change). 2017-07-05 21:53:21 -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
edd426bbaa Allow overlapping and differently-cased names for MD044/proper-names (fixes #60). 2017-06-15 22:53:33 -07:00
David Anson
614ac8fa23 Add noInlineConfig option to disable inline config comments. 2017-05-21 22:58:10 -07:00
David Anson
7528295cae Add support for shareable/extendable configuration via "extends" and helper functions (fixes #33). 2017-05-19 22:36:46 -07:00
David Anson
d826833a82 Allow opt-out for list items with blank lines in MD009/no-trailing-spaces (fixes #55). 2017-05-11 21:44:41 -07:00
David Anson
b436640918 Add short links to each rule in Rules.md, update README.md to use them (fixes #54). 2017-05-07 12:48:04 -07:00
David Anson
da529ac286 Fix bug in detailed error message for MD030/list-marker-space when no space present (fixes #57). 2017-05-06 21:56:24 -07:00
David Anson
942f0600d2 Support front matter title property override for MD041/first-line-h1 (fixes #53). 2017-05-06 15:25:14 -07:00
David Anson
7b01fc5fbf Add new test file from Ruby implementation. 2017-04-29 21:57:22 -07:00
David Anson
31c252a55c Add code_blocks parameter to MD044/proper-names (fixes #50). 2017-03-18 19:47:26 -07:00
David Anson
15fe91ba38 Update MD044/proper-names to ignore violations in bare URLs (fixes #50). 2017-03-17 20:08:57 -07:00
David Anson
935935b96c Update MD044/proper-names to ignore non-text content like link targets. 2017-03-16 22:07:25 -07:00
David Anson
1b44ed54e4 Account for front matter when calculating range for resultVersion 1 (fixes #48). 2017-03-14 21:58:39 -07:00
David Anson
5a1fb40871 Ignore escaped backticks in code span elements per specification. 2017-03-13 21:29:24 -07:00
David Anson
0c1f40323d Update MD013/line-length not to report long link-only lines (fixes #36). 2017-03-01 21:43:04 -08:00