mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-16 00:06:11 +02:00
feat(v2): allow custom heading component (#1687)
* feat(v2): allow custom heading component * changelog
This commit is contained in:
parent
6287739bec
commit
84b2270039
7 changed files with 62 additions and 81 deletions
|
@ -11,11 +11,10 @@ const emoji = require('remark-emoji');
|
|||
const slug = require('remark-slug');
|
||||
const matter = require('gray-matter');
|
||||
const stringifyObject = require('stringify-object');
|
||||
const linkHeadings = require('./rehype/linkHeadings');
|
||||
const rightToc = require('./remark/rightToc');
|
||||
|
||||
const DEFAULT_OPTIONS = {
|
||||
rehypePlugins: [linkHeadings],
|
||||
rehypePlugins: [],
|
||||
remarkPlugins: [emoji, slug, rightToc],
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue