Skip to content

Commit

Permalink
fix(mdx-loader): ensure heading anchor slugs respect GitHub emoji beh…
Browse files Browse the repository at this point in the history
…avior (#9202)

Co-authored-by: YosukeKato <[email protected]>
  • Loading branch information
yosukekato165 and YosukeKato authored Aug 10, 2023
1 parent 1e40943 commit 19ee437
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-mdx-loader/src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type SimpleProcessor = {
const DEFAULT_OPTIONS: MDXOptions = {
admonitions: true,
rehypePlugins: [],
remarkPlugins: [emoji, headings, toc],
remarkPlugins: [headings, emoji, toc],
beforeDefaultRemarkPlugins: [],
beforeDefaultRehypePlugins: [],
};
Expand Down
8 changes: 8 additions & 0 deletions website/_dogfooding/_blog tests/2023-08-05.mdx
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 19ee437

Please sign in to comment.