@diplodoc/yfmlint 1.2.3 → 1.2.5

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/README.md CHANGED
@@ -65,3 +65,11 @@ Tags: tab
65
65
  Aliases: tab-list-not-closed
66
66
 
67
67
  This rule is triggered when tab list don't have close token.
68
+
69
+ ### YFM006 - Tab list not closed
70
+
71
+ Tags: term
72
+
73
+ Aliases: term-definition-duplicated
74
+
75
+ This rule is triggered when term definition duplicated.
package/build/index.js CHANGED
@@ -21428,7 +21428,7 @@ var config_default = {
21428
21428
  },
21429
21429
  YFM002: "warn" /* WARN */,
21430
21430
  // No header found in the file for the link text
21431
- YFM003: "warn" /* WARN */,
21431
+ YFM003: "error" /* ERROR */,
21432
21432
  // Link is unreachable
21433
21433
  YFM004: "error" /* ERROR */,
21434
21434
  // Table not closed
@@ -21597,9 +21597,10 @@ var yfm003 = {
21597
21597
  return child.type === "link_open";
21598
21598
  }).forEach((link) => {
21599
21599
  if (link.attrGet("YFM003")) {
21600
+ const linkHrefError = `[Unreachable link: "${link.attrGet("href")}"]`;
21600
21601
  onError({
21601
21602
  lineNumber: link.lineNumber,
21602
- context: link.line
21603
+ context: linkHrefError + link.line
21603
21604
  });
21604
21605
  }
21605
21606
  });