Modify build-demo to work with updated dependencies and recent changes.

This commit is contained in:
David Anson 2019-01-31 22:33:48 -08:00
parent 550ef6a53d
commit 1ada55fd60
2 changed files with 8 additions and 2 deletions

View file

@ -5,3 +5,9 @@ module.exports = window.markdownit;
if (!module.exports) {
console.error("markdown-it must be loaded before markdownlint.");
}
// Use browser's URL implementation if not available on url module
var url = require("url");
if (!url.URL) {
url.URL = URL;
}