mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 17:37:09 +02:00
feat(v1): add 'slugPreprocessor' config option to allow users customize the hash links (#3124)
* fix(v1): remove HTML content from hash links * fix one more test * rewrite changes as new feature to prevent breaking changes
This commit is contained in:
parent
d1a27efe8c
commit
aa7430e168
7 changed files with 50 additions and 11 deletions
|
@ -102,7 +102,7 @@ class MarkdownRenderer {
|
|||
const md = new Markdown(markdownOptions);
|
||||
|
||||
// Register anchors plugin
|
||||
md.use(anchors);
|
||||
md.use(anchors, siteConfig.slugPreprocessor);
|
||||
|
||||
// Linkify
|
||||
md.use(linkify);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue