mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-17 19:16:58 +02:00
fix: replace use of deepmerge with _.merge (#1430)
This commit is contained in:
parent
578c53a936
commit
64fdafbcea
5 changed files with 13 additions and 8 deletions
|
@ -5,11 +5,11 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const _ = require('lodash');
|
||||
const hljs = require('highlight.js');
|
||||
const Markdown = require('remarkable');
|
||||
const prismjs = require('prismjs');
|
||||
const loadLanguages = require('prismjs/components/index');
|
||||
const deepmerge = require('deepmerge');
|
||||
const chalk = require('chalk');
|
||||
const anchors = require('./anchors.js');
|
||||
|
||||
|
@ -88,7 +88,7 @@ class MarkdownRenderer {
|
|||
|
||||
// Allow overriding default options
|
||||
if (siteConfig.markdownOptions) {
|
||||
markdownOptions = deepmerge(
|
||||
markdownOptions = _.merge(
|
||||
{},
|
||||
markdownOptions,
|
||||
siteConfig.markdownOptions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue