Account for removed default export of marked
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
* works around an issue with `~` characters in module paths by escaping them.
|
* works around an issue with `~` characters in module paths by escaping them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const marked = require('marked');
|
const {marked} = require('marked');
|
||||||
const format = require('util').format;
|
const format = require('util').format;
|
||||||
|
|
||||||
const tags = [
|
const tags = [
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import frontMatter from 'front-matter';
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import fse from 'fs-extra';
|
import fse from 'fs-extra';
|
||||||
import handlebars from 'handlebars';
|
import handlebars from 'handlebars';
|
||||||
import marked from 'marked';
|
|
||||||
import path, {dirname} from 'path';
|
import path, {dirname} from 'path';
|
||||||
import sources from 'webpack-sources';
|
import sources from 'webpack-sources';
|
||||||
import {fileURLToPath} from 'url';
|
import {fileURLToPath} from 'url';
|
||||||
|
import {marked} from 'marked';
|
||||||
|
|
||||||
const RawSource = sources.RawSource;
|
const RawSource = sources.RawSource;
|
||||||
const baseDir = dirname(fileURLToPath(import.meta.url));
|
const baseDir = dirname(fileURLToPath(import.meta.url));
|
||||||
|
|||||||
Reference in New Issue
Block a user