diff --git a/packages/docusaurus-mdx-loader/src/processor.ts b/packages/docusaurus-mdx-loader/src/processor.ts index 2683b66693d6..5cc5699d6804 100644 --- a/packages/docusaurus-mdx-loader/src/processor.ts +++ b/packages/docusaurus-mdx-loader/src/processor.ts @@ -42,7 +42,7 @@ type SimpleProcessor = { const DEFAULT_OPTIONS: MDXOptions = { admonitions: true, rehypePlugins: [], - remarkPlugins: [emoji, headings, toc], + remarkPlugins: [headings, emoji, toc], beforeDefaultRemarkPlugins: [], beforeDefaultRehypePlugins: [], }; diff --git a/website/_dogfooding/_blog tests/2023-08-05.mdx b/website/_dogfooding/_blog tests/2023-08-05.mdx new file mode 100644 index 000000000000..180d6c6db846 --- /dev/null +++ b/website/_dogfooding/_blog tests/2023-08-05.mdx @@ -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)