mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-24 09:50:13 +01:00
Simplify the mechanics of using markdownlint in a browser.
This commit is contained in:
parent
d263a955f3
commit
070eb19177
5 changed files with 14 additions and 16 deletions
7
demo/markdown-it-stub.js
Normal file
7
demo/markdown-it-stub.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
// Alias "markdown-it" (expected) to "markdownit" (exported)
|
||||
module.exports = window.markdownit;
|
||||
if (!module.exports) {
|
||||
console.error("markdown-it must be loaded before markdownlint.");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue