mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00: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
|
|
@ -42,7 +42,7 @@ type SimpleProcessor = {
|
|||
const DEFAULT_OPTIONS: MDXOptions = {
|
||||
admonitions: true,
|
||||
rehypePlugins: [],
|
||||
remarkPlugins: [emoji, headings, toc],
|
||||
remarkPlugins: [headings, emoji, toc],
|
||||
beforeDefaultRemarkPlugins: [],
|
||||
beforeDefaultRehypePlugins: [],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue