Simplify the mechanics of using markdownlint in a browser.

This commit is contained in:
David Anson 2015-06-17 09:09:33 -07:00
parent d263a955f3
commit 070eb19177
5 changed files with 14 additions and 16 deletions

7
demo/markdown-it-stub.js Normal file
View 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.");
}