@diplodoc/yfmlint 1.2.2 → 1.2.4

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/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: "error" /* ERROR */,
21431
+ YFM003: "warn" /* WARN */,
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
  });