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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.36.1
4
+
5
+ - Fix behavior of MD054
6
+
3
7
  ## 0.36.0
4
8
 
5
9
  - Improve MD051
@@ -1,4 +1,4 @@
1
- /*! markdownlint 0.36.0 https://github.com/DavidAnson/markdownlint @license MIT */
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.0";
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].text;
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.0/doc/CustomRules.md
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.0/doc/Rules.md
29
+ [rules]: https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/Rules.md