markdownlint 0.36.0 → 0.36.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.
- package/CHANGELOG.md +4 -0
- package/demo/markdownlint-browser.js +4 -4
- package/helpers/README.md +2 -2
- package/lib/configuration-strict.d.ts +104 -104
- package/lib/constants.js +1 -1
- package/lib/md054.js +2 -2
- package/package.json +3 -3
- package/schema/.markdownlint.jsonc +51 -51
- package/schema/.markdownlint.yaml +51 -51
- package/schema/markdownlint-config-schema-strict.json +106 -106
- package/schema/markdownlint-config-schema.json +106 -106
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markdownlint 0.36.
|
|
1
|
+
/*! markdownlint 0.36.1 https://github.com/DavidAnson/markdownlint @license MIT */
|
|
2
2
|
var markdownlint;
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
@@ -1406,7 +1406,7 @@ module.exports.fixableRuleNames = [
|
|
|
1406
1406
|
"MD058"
|
|
1407
1407
|
];
|
|
1408
1408
|
module.exports.homepage = "https://github.com/DavidAnson/markdownlint";
|
|
1409
|
-
module.exports.version = "0.36.
|
|
1409
|
+
module.exports.version = "0.36.1";
|
|
1410
1410
|
|
|
1411
1411
|
|
|
1412
1412
|
/***/ }),
|
|
@@ -6721,9 +6721,9 @@ module.exports = {
|
|
|
6721
6721
|
let isError = false;
|
|
6722
6722
|
if (type === "autolink") {
|
|
6723
6723
|
// link kind is an autolink
|
|
6724
|
-
destination = getDescendantsByType(link, [ "autolinkProtocol" ])[0]
|
|
6724
|
+
destination = getDescendantsByType(link, [ [ "autolinkEmail", "autolinkProtocol" ] ])[0]?.text;
|
|
6725
6725
|
label = destination;
|
|
6726
|
-
isError = !autolink;
|
|
6726
|
+
isError = !autolink && Boolean(destination);
|
|
6727
6727
|
} else {
|
|
6728
6728
|
// link type is "image" or "link"
|
|
6729
6729
|
label = getDescendantsByType(link, [ "label", "labelText" ])[0].text;
|
package/helpers/README.md
CHANGED
|
@@ -22,8 +22,8 @@ be useful to custom rule authors and may avoid duplicating code.
|
|
|
22
22
|
*None* - The entire body of code is tested to 100% coverage by the core
|
|
23
23
|
`markdownlint` project, so there are no additional tests here.
|
|
24
24
|
|
|
25
|
-
[custom-rules]: https://github.com/DavidAnson/markdownlint/blob/v0.36.
|
|
25
|
+
[custom-rules]: https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/CustomRules.md
|
|
26
26
|
[jsdoc]: https://en.m.wikipedia.org/wiki/JSDoc
|
|
27
27
|
[markdown]: https://en.wikipedia.org/wiki/Markdown
|
|
28
28
|
[markdownlint]: https://github.com/DavidAnson/markdownlint
|
|
29
|
-
[rules]: https://github.com/DavidAnson/markdownlint/blob/v0.36.
|
|
29
|
+
[rules]: https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/Rules.md
|