mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Introduce options.markdownItFactory (and remove options.markdownItPlugins) so the markdown-it parser can be removed as a direct dependency because it is no longer used by default.
This commit is contained in:
parent
3cbe1cb6c5
commit
d4b981bcb3
11 changed files with 172 additions and 67 deletions
|
|
@ -7,7 +7,7 @@ import { lint as lintPromise, readConfig as readConfigPromise } from "../../lib/
|
|||
import { lint as lintSync, readConfig as readConfigSync } from "../../lib/exports-sync.mjs";
|
||||
|
||||
import assert from "assert";
|
||||
import markdownItSub from "markdown-it-sub";
|
||||
import markdownIt from "markdown-it";
|
||||
const markdownlintJsonPath = "../../.markdownlint.json";
|
||||
|
||||
const version: string = getVersion();
|
||||
|
|
@ -98,7 +98,7 @@ options = {
|
|||
"frontMatter": /---/,
|
||||
"handleRuleFailures": false,
|
||||
"noInlineConfig": false,
|
||||
"markdownItPlugins": [ [ markdownItSub ] ]
|
||||
"markdownItFactory": () => new markdownIt()
|
||||
};
|
||||
|
||||
assertLintResults(lintSync(options));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue