markdownlint 0.20.2 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CONTRIBUTING.md +50 -47
  2. package/LICENSE +21 -21
  3. package/README.md +915 -871
  4. package/demo/markdownlint-browser.js +4693 -5400
  5. package/doc/CustomRules.md +315 -313
  6. package/doc/Rules.md +1868 -1795
  7. package/helpers/LICENSE +21 -21
  8. package/helpers/README.md +50 -50
  9. package/helpers/helpers.js +690 -671
  10. package/helpers/package.json +18 -18
  11. package/lib/cache.js +24 -24
  12. package/lib/markdownlint.d.ts +365 -352
  13. package/lib/markdownlint.js +1186 -1101
  14. package/lib/md001.js +22 -22
  15. package/lib/md002.js +22 -22
  16. package/lib/md003.js +42 -42
  17. package/lib/md004.js +43 -43
  18. package/lib/md005.js +69 -69
  19. package/lib/md006.js +34 -34
  20. package/lib/md007.js +47 -47
  21. package/lib/md009.js +77 -77
  22. package/lib/md010.js +38 -38
  23. package/lib/md011.js +42 -38
  24. package/lib/md012.js +32 -32
  25. package/lib/md013.js +99 -99
  26. package/lib/md014.js +53 -53
  27. package/lib/md018.js +34 -34
  28. package/lib/md019.js +39 -39
  29. package/lib/md020.js +62 -62
  30. package/lib/md021.js +60 -60
  31. package/lib/md022.js +56 -56
  32. package/lib/md023.js +38 -38
  33. package/lib/md024.js +38 -38
  34. package/lib/md025.js +32 -32
  35. package/lib/md026.js +40 -40
  36. package/lib/md027.js +56 -56
  37. package/lib/md028.js +38 -38
  38. package/lib/md029.js +66 -66
  39. package/lib/md030.js +50 -50
  40. package/lib/md031.js +40 -39
  41. package/lib/md032.js +50 -50
  42. package/lib/md033.js +45 -45
  43. package/lib/md034.js +61 -61
  44. package/lib/md035.js +21 -21
  45. package/lib/md036.js +56 -56
  46. package/lib/md037.js +150 -141
  47. package/lib/md038.js +68 -68
  48. package/lib/md039.js +64 -64
  49. package/lib/md040.js +18 -18
  50. package/lib/md041.js +31 -31
  51. package/lib/md042.js +42 -41
  52. package/lib/md043.js +45 -45
  53. package/lib/md044.js +94 -71
  54. package/lib/md045.js +18 -18
  55. package/lib/md046.js +32 -32
  56. package/lib/md047.js +28 -28
  57. package/lib/md048.js +29 -29
  58. package/lib/rules.js +60 -61
  59. package/package.json +74 -67
  60. package/schema/build-config-schema.js +409 -405
  61. package/schema/markdownlint-config-schema.json +7 -2
  62. package/style/all.json +5 -5
  63. package/style/cirosantilli.json +22 -22
  64. package/style/relaxed.json +13 -13
package/CONTRIBUTING.md CHANGED
@@ -1,47 +1,50 @@
1
- # Contributing
2
-
3
- Interested in contributing? Great! Here are some suggestions to make it a good experience:
4
-
5
- Start by [opening an issue](https://github.com/DavidAnson/markdownlint/issues), whether to identify a problem or outline a change.
6
- That issue should be used to discuss the situation and agree on a plan of action before writing code or sending a pull request.
7
- Maybe the problem isn't really a problem, or maybe there are more things to consider.
8
- If so, it's best to realize that before spending time and effort writing code that may not get used.
9
-
10
- Match the coding style of the files you edit.
11
- Although everyone has their own preferences and opinions, a pull request is not the right forum to debate them.
12
-
13
- Do not add new [`dependencies` to `package.json`](https://docs.npmjs.com/files/package.json#dependencies).
14
- The excellent Markdown parser [markdown-it](https://www.npmjs.com/package/markdown-it) is this project's one and only dependency.
15
-
16
- If developing a new rule, start by creating a [custom rule](doc/CustomRules.md) in its own project.
17
- Once written, published, and tested in real world scenarios, open an issue to consider adding it to this project.
18
- For rule ideas, see [issues tagged with the `new rule` label](https://github.com/DavidAnson/markdownlint/labels/new%20rule).
19
-
20
- Add tests for all new/changed functionality.
21
- Test positive and negative scenarios.
22
- Try to break the new code now, or else it will get broken later.
23
-
24
- Run tests before sending a pull request via `npm test` in the [usual manner](https://docs.npmjs.com/misc/scripts).
25
- Tests should all pass on all platforms.
26
- The test runner is [nodeunit](https://www.npmjs.com/package/nodeunit) and test cases are located in `test/markdownlint-test.js`.
27
- When running tests, `test/*.md` files are enumerated, linted, and fail if any violations are missing a corresponding `{MD###}` marker in the test file.
28
- For example, the line `### Heading {MD001}` is expected to trigger the rule `MD001`.
29
- For cases where the marker text can not be present on the same line, the syntax `{MD###:#}` can be used to include a line number.
30
- If `some-test.md` needs custom configuration, a `some-test.json` is used to provide a custom `options.config` for that scenario.
31
-
32
- Lint before sending a pull request by running `npm run lint`.
33
- There should be no issues.
34
-
35
- Run code coverage before sending a pull request with `npm run test-cover`.
36
- Coverage should remain at 100%.
37
-
38
- Pull requests should contain a single commit.
39
- If necessary, squash multiple commits before creating the pull request and when making changes.
40
- (See [Git Tools - Rewriting History](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History) for details.)
41
-
42
- Open pull requests against the `next` branch.
43
- That's where the latest changes are staged for the next release.
44
- Include the text "(fixes #??)" at the end of the commit message so the pull request will be associated with the relevant issue.
45
- Once accepted, the tag `fixed in next` will be added to the issue.
46
- When the commit is merged to `master` branch during the release process, the issue will be closed automatically.
47
- (See [Closing issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/) for details.)
1
+ # Contributing
2
+
3
+ Interested in contributing? Great! Here are some suggestions to make it a good experience:
4
+
5
+ Start by [opening an issue](https://github.com/DavidAnson/markdownlint/issues), whether to identify a problem or outline a change.
6
+ That issue should be used to discuss the situation and agree on a plan of action before writing code or sending a pull request.
7
+ Maybe the problem isn't really a problem, or maybe there are more things to consider.
8
+ If so, it's best to realize that before spending time and effort writing code that may not get used.
9
+
10
+ Match the coding style of the files you edit.
11
+ Although everyone has their own preferences and opinions, a pull request is not the right forum to debate them.
12
+
13
+ Do not add new [`dependencies` to `package.json`](https://docs.npmjs.com/files/package.json#dependencies).
14
+ The excellent Markdown parser [markdown-it](https://www.npmjs.com/package/markdown-it) is this project's one and only dependency.
15
+
16
+ If developing a new rule, start by creating a [custom rule](doc/CustomRules.md) in its own project.
17
+ Once written, published, and tested in real world scenarios, open an issue to consider adding it to this project.
18
+ For rule ideas, see [issues tagged with the `new rule` label](https://github.com/DavidAnson/markdownlint/labels/new%20rule).
19
+
20
+ Add tests for all new/changed functionality.
21
+ Test positive and negative scenarios.
22
+ Try to break the new code now, or else it will get broken later.
23
+
24
+ Run tests before sending a pull request via `npm test` in the [usual manner](https://docs.npmjs.com/misc/scripts).
25
+ Tests should all pass on all platforms.
26
+ The test runner is [tape](https://www.npmjs.com/package/tape) and test cases are located in `test/markdownlint-test*.js`.
27
+ When running tests, `test/*.md` files are enumerated, linted, and fail if any violations are missing a corresponding `{MD###}` marker in the test file.
28
+ For example, the line `### Heading {MD001}` is expected to trigger the rule `MD001`.
29
+ For cases where the marker text can not be present on the same line, the syntax `{MD###:#}` can be used to include a line number.
30
+ If `some-test.md` needs custom configuration, a `some-test.json` is used to provide a custom `options.config` for that scenario.
31
+
32
+ Lint before sending a pull request by running `npm run lint`.
33
+ There should be no issues.
34
+
35
+ Run a full continuous integration pass before sending a pull request via `npm run ci`.
36
+ Code coverage should remain at 100%.
37
+
38
+ Pull requests should contain a single commit.
39
+ If necessary, squash multiple commits before creating the pull request and when making changes.
40
+ (See [Git Tools - Rewriting History](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History) for details.)
41
+
42
+ Open pull requests against the `next` branch.
43
+ That's where the latest changes are staged for the next release.
44
+ Include the text "(fixes #??)" at the end of the commit message so the pull request will be associated with the relevant issue.
45
+ End commit messages with a period (`.`).
46
+ Once accepted, the tag `fixed in next` will be added to the issue.
47
+ When the commit is merged to the main branch during the release process, the issue will be closed automatically.
48
+ (See [Closing issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/) for details.)
49
+
50
+ Thank you!
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015-2020 David Anson
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2020 David Anson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.