Account for removed default export of marked

This commit is contained in:
Andreas Hocevar
2021-11-08 16:35:23 +01:00
parent 7679128245
commit b86f9df8bd
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
* 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 tags = [

View File

@@ -3,10 +3,10 @@ import frontMatter from 'front-matter';
import fs from 'fs';
import fse from 'fs-extra';
import handlebars from 'handlebars';
import marked from 'marked';
import path, {dirname} from 'path';
import sources from 'webpack-sources';
import {fileURLToPath} from 'url';
import {marked} from 'marked';
const RawSource = sources.RawSource;
const baseDir = dirname(fileURLToPath(import.meta.url));