@diplodoc/yfmlint 1.2.1 → 1.2.2
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 +1 -0
- package/build/index.js +4 -4
- package/build/index.js.map +2 -2
- package/package.json +2 -2
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
|
|
20872
|
-
|
|
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);
|