Commit graph

383 commits

Author SHA1 Message Date
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
c45eead5d7 Add Garden React Components to Examples section of README. 2019-04-14 22:01:24 -07:00
David Anson
559f0b042c Update build-demo script to reference new helpers module. 2019-04-14 21:57:57 -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
f614f3e1ce Remove state from shared.js, move to cache.js. 2019-04-10 21:26:59 -07:00
David Anson
827e1acb56 Add "Copy Link" link to demo, restore sample text from URL hash if present. 2019-04-02 22:07:32 -07:00
David Anson
7aadb1124e Add legacy browser detection to demo, tweak sample text. 2019-04-01 22:08:53 -07:00
David Anson
6f7c0aac13 Update to version 0.13.0. 2019-03-30 15:08:04 -07:00
David Anson
a35b2e4041 Update sample output in README.md for recent changes. 2019-03-30 14:43:27 -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
4d436be500 Add other example repositories for custom rules. 2019-03-03 21:35:20 -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
1ada55fd60 Modify build-demo to work with updated dependencies and recent changes. 2019-01-31 22:33:48 -08:00
David Anson
550ef6a53d Update dependencies: @types/node to 10.12.21, browserify to 16.2.3, eslint to 5.12.1, glob to 7.1.3, js-yaml to 3.12.1, rimraf to 2.6.3, toml to 3.0.0, typescript to 3.3.1, uglify-js to 3.4.9. 2019-01-31 21:52:47 -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
b77dd5ccd3 Simplify handling of internal lineMetadata array (slightly faster now). 2019-01-12 16:29:10 -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
4f4dee162c Add TypeScript-Handbook to Examples section. 2018-12-14 21:48:25 -08:00
David Anson
30633915d8 Add Windows/OS X, cache npm, remove sudo false. 2018-12-14 21:23:51 -08:00
Antón Molleda
8455d96fba Replace sonarwhal with webhint
[sonarwhal project got renamed to webhint](https://medium.com/webhint/webhint-a-hinting-engine-for-the-web-ef0d3fa32ea9)
2018-11-25 20:56:52 -08:00
David Anson
a4f541fdf4 Update to version 0.11.0. 2018-07-21 21:47:19 -07:00
David Anson
f0fce5b4b0 Update dependencies: markdown-it to 8.4.2, @types/node to 10.5.2, eslint to 5.2.0, js-yaml to 3.12.0, nodeunit to 0.11.3, typescript to 2.9.2, uglify-js to 3.4.5. 2018-07-21 21:41:24 -07:00
David Anson
23d5be6015 Add simple/concrete example of custom rule package for publishing (fixes #133). 2018-07-20 22:31:41 -07:00