Commit graph

823 commits

Author SHA1 Message Date
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
73e70b76f3 Update MD033/no-inline-html to handle escaped backticks (fixes #193). 2019-06-04 23:19:49 -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
Wouter Admiraal
779a55a662 Allow trailing spaces in indented code blocks (#191) 2019-06-01 15:26:48 -07: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
608f875fc2 Update MD033/no-inline-html to better handle inline code spans (fixes #182). 2019-05-08 22:06:17 -07:00
David Anson
f003926a72 Update MD033/no-inline-html to ignore email autolinks (fixes #183). 2019-05-08 18:42:26 -07:00
David Anson
1b8b15693f Replace assign/clone helpers with object spread syntax. 2019-05-05 22:27:01 -07:00
David Anson
684416a902 Improve MD034/no-bare-urls range reporting (fixes #181). 2019-05-04 20:14:59 -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
22c36c388f Add edge case tests for MD039/no-space-in-links. 2019-04-17 14:45:28 -07:00
David Anson
0af999e218 Implement rule MD046/code-block-style from Ruby version. 2019-04-17 14:42:17 -07:00
David Anson
8c6ef2521c Update custom rule samples to use markdownlint-rule-helpers package. 2019-04-13 11:27:28 -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
David Anson
d7c0d195d7 Update MD013/line-length with heading_line_length parameter (fixes #170). 2019-03-26 22:34:19 -07:00
David Anson
fa04d29485 Enhance MD022/blanks-around-headings with lines_above/lines_below parameters (fixes #143). 2019-03-24 21:50:56 -07:00
David Anson
debc08bca1 Re-implement MD022/blanks-around-headings to ignore comments and blockquotes. 2019-03-21 21:42:24 -07:00
David Anson
1db87ef0c6 Update MD031/blanks-around-fences and MD032/blanks-around-lists to ignore comments and blockquotes (fixes #171, fixes #172). 2019-03-20 21:48:18 -07:00
David Anson
df2507f030 Add support for pandoc-style YAML front matter fences ---/... (fixes #153). 2019-03-17 22:05:50 -07:00
David Anson
61d6311a3e Add front_matter_title parameter to MD025/single-title/single-h1 (refs #169). 2019-03-16 20:21:57 -07:00
David Anson
050cbbba82 Add name first-line-heading to MD041 for clarity (refs #169). 2019-03-13 21:39:15 -07:00
David Anson
0184f9d618 Deprecate MD002/first-heading-h1 in favor of MD041/first-line-h1 (refs #169). 2019-03-12 22:23:12 -07:00
David Anson
c71bb4fbd5 Update MD041/first-line-h1 to allow secondary headings if a YAML title is present (refs #116). 2019-03-10 22:10:33 -07:00
David Anson
ed295cd947 Add style "zero" to MD029/ol-prefix (fixes #140). 2019-03-06 21:57:19 -08:00
David Anson
2ccacf03f5 MD037 should try to ignore escaped emphasis markers (fixes #168). 2019-03-04 19:54:23 -08:00
David Anson
dd3bd3d7ee Update MD037 to handle violations at the start/end of a line. 2019-03-04 19:24:57 -08:00
David Anson
3e753636cf Handle case where token map extends beyond last line of input (fixes #166). 2019-02-13 19:52:34 -08:00
David Anson
90bd0810e7 Update copyright year to 2019, all HTTP links to HTTPS. 2019-02-10 11:38:01 -08:00
David Anson
045238740f Update to version 0.12.0. 2019-02-03 21:41:38 -08:00
David Anson
ff50da3b42 Re-implement MD038 to handle multi-line spans better and rely less on RegExp. 2019-01-30 22:09:20 -08:00
David Anson
3b49414183 Re-implement MD032 to detect missed scenarios and simplify. 2019-01-21 18:21:36 -08:00
David Anson
8a175955d7 Add options.markdownItPlugins to support using markdown-it plugins when parsing. 2019-01-19 12:52:13 -08:00
David Anson
ff86e1d7f1 Add optional "information" property to custom rules to provide a link to more information. 2019-01-15 21:56:38 -08:00
David Anson
51a57a07c8 Update test file with new cases from Ruby implementation. 2019-01-10 21:39:29 -08:00
David Anson
6c57203ae5 Use tokens (vs. RegExp) for identifying fenced code blocks (fixes #151, fixes #152, fixes #155). 2019-01-10 21:29:27 -08:00
David Anson
5be7104dab Fix formatting of fenced code blocks in test files. 2019-01-10 21:19:09 -08:00
David Anson
813abc4f27 MD023 should not report violations for proper blockquotes in lists (fixes #146). 2019-01-08 22:10:06 -08:00
David Anson
0bb38faa21 Handle files with front matter only and no trailing newline (fixes #157). 2019-01-07 22:03:10 -08:00
David Anson
7d6635b472 Fix possible null-dereference if RegExp does not match in MD038. 2019-01-07 22:02:58 -08:00
David Anson
23d5be6015 Add simple/concrete example of custom rule package for publishing (fixes #133). 2018-07-20 22:31:41 -07:00
David Anson
183d9c5cb1 Update test file with new cases from Ruby implementation. 2018-07-19 22:00:31 -07:00
David Anson
d76ede1c4f Update MD024/no-duplicate-heading to allow non-sibling duplicates (fixes #136). 2018-07-19 21:49:30 -07:00
David Anson
4865301ce9 Handle multi-line inline code spans better (fixes #130). 2018-07-15 23:05:18 -07:00
David Anson
3fd3f27169 Add CONTRIBUTING.md (fixes #127). 2018-06-24 20:01:44 -07:00