fix(mdx-loader): ensure heading anchor slugs respect GitHub emoji behavior (#9202)

Co-authored-by: YosukeKato <katouyousuke@YosukeKato.local>
This commit is contained in:
yosukekato165 2023-08-11 01:17:07 +09:00 committed by GitHub
parent 1e40943176
commit 19ee437f64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -42,7 +42,7 @@ type SimpleProcessor = {
const DEFAULT_OPTIONS: MDXOptions = {
admonitions: true,
rehypePlugins: [],
remarkPlugins: [emoji, headings, toc],
remarkPlugins: [headings, emoji, toc],
beforeDefaultRemarkPlugins: [],
beforeDefaultRehypePlugins: [],
};

View 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)