mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 06:42:31 +02:00
fix(mdx-loader): ensure heading anchor slugs respect GitHub emoji behavior (#9202)
Co-authored-by: YosukeKato <katouyousuke@YosukeKato.local>
This commit is contained in:
parent
1e40943176
commit
19ee437f64
2 changed files with 9 additions and 1 deletions
|
@ -42,7 +42,7 @@ type SimpleProcessor = {
|
|||
const DEFAULT_OPTIONS: MDXOptions = {
|
||||
admonitions: true,
|
||||
rehypePlugins: [],
|
||||
remarkPlugins: [emoji, headings, toc],
|
||||
remarkPlugins: [headings, emoji, toc],
|
||||
beforeDefaultRemarkPlugins: [],
|
||||
beforeDefaultRehypePlugins: [],
|
||||
};
|
||||
|
|
8
website/_dogfooding/_blog tests/2023-08-05.mdx
Normal file
8
website/_dogfooding/_blog tests/2023-08-05.mdx
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: Ensure heading anchor slugs respect GitHub emoji behavior
|
||||
date: 2023-08-05
|
||||
---
|
||||
|
||||
## :smiley: This is a friendly header
|
||||
|
||||
## 😃 This is a friendly header (real smiley)
|
Loading…
Add table
Add a link
Reference in a new issue