Skip to content

Commit

Permalink
fix(mdx-loader):ensure heading anchor slugs respect GitHub emoji beha…
Browse files Browse the repository at this point in the history
…vior
  • Loading branch information
YosukeKato authored and YosukeKato committed Aug 5, 2023
1 parent 109ab0c commit e69b863
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 e69b863

Please sign in to comment.