mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Allow options.markdownItFactory to be implemented asynchronously so the markdown-it parser import can be deferred.
This commit is contained in:
parent
d4b981bcb3
commit
44c302fe0b
6 changed files with 448 additions and 249 deletions
|
|
@ -98,7 +98,7 @@ options = {
|
|||
"frontMatter": /---/,
|
||||
"handleRuleFailures": false,
|
||||
"noInlineConfig": false,
|
||||
"markdownItFactory": () => new markdownIt()
|
||||
"markdownItFactory": () => markdownIt()
|
||||
};
|
||||
|
||||
assertLintResults(lintSync(options));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue