mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 00:09:48 +02:00
chore: bump dependencies
This commit is contained in:
parent
255584cf65
commit
ab1520548d
7 changed files with 181 additions and 381 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue