@diplodoc/yfmlint 1.2.1 → 1.2.3

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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import type { LintError, Options } from './typings';
2
+ export type { LintConfig, RawLintConfig } from './typings';
2
3
  export { LogLevels, log, getLogLevel, normalizeConfig } from './utils';
3
4
  export declare function yfmlint(content: string, path: string, opts: Options): Promise<LintError[] | undefined>;
package/build/index.js CHANGED
@@ -20868,11 +20868,11 @@ function lintContent(ruleList, aliasToRuleNames, name, content3, markdownItPlugi
20868
20868
  const needMarkdownItTokens = enabledRuleList.some(
20869
20869
  (rule) => rule.parser === "markdownit" || rule.parser === void 0
20870
20870
  );
20871
- const customRulesPresent = ruleList.length !== rules_default.length;
20872
- const micromarkTokens = parse2(
20873
- content3,
20874
- { "freezeTokens": customRulesPresent }
20871
+ const needMicromarkTokens = enabledRuleList.some(
20872
+ (rule) => rule.parser === "micromark"
20875
20873
  );
20874
+ const customRulesPresent = ruleList.length !== rules_default.length;
20875
+ const micromarkTokens = needMicromarkTokens ? parse2(content3, { "freezeTokens": customRulesPresent }) : [];
20876
20876
  const preClearedContent = content3;
20877
20877
  content3 = helpers.clearHtmlCommentText(content3);
20878
20878
  const lines = content3.split(helpers.newLineRe);
@@ -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