chore: bump dependencies

This commit is contained in:
endiliey 2019-11-01 01:25:10 +07:00
parent 255584cf65
commit ab1520548d
7 changed files with 181 additions and 381 deletions

View file

@ -7,7 +7,8 @@
const _ = require('lodash');
const hljs = require('highlight.js');
const Markdown = require('remarkable');
const {Remarkable: Markdown} = require('remarkable');
const {linkify} = require('remarkable/linkify');
const prismjs = require('prismjs');
const loadLanguages = require('prismjs/components/index');
const chalk = require('chalk');
@ -83,7 +84,6 @@ class MarkdownRenderer {
return '';
},
html: true,
linkify: true,
};
// Allow overriding default options
@ -100,6 +100,9 @@ class MarkdownRenderer {
// Register anchors plugin
md.use(anchors);
// Linkify
md.use(linkify);
// Allow client sites to register their own plugins
if (siteConfig.markdownPlugins) {
siteConfig.markdownPlugins.forEach(plugin => {