You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the console error message carefully (if applicable).
Description
The #️⃣ emoji causes errors.
When using the hash emoji as a title (# #️⃣ text) in a page at the beginning, it uses the ID of the page as the title instead.
Steps to reproduce
Create a new docusaurus page
Set the title to something with the #️⃣
Build the site, the title will be the ID rather than what you specified with the title you specified under it.
This is fixed. The keycap emoji #️⃣ starts with an ASCII #, and the old title regex treated it as a closing heading marker. That regex was replaced in #6906 (March 2022).
Verified on current main with a throwaway docs site:
# #️⃣ Support → <title> "#️⃣ Support | Verify 6260", <h1> "#️⃣ Support", sidebar label "#️⃣ Support"
# Get #️⃣ help → <title> "Get #️⃣ help | Verify 6260", <h1> "Get #️⃣ help", sidebar label "Get #️⃣ help"
Note for front matter: quote the value (title: "#️⃣ Support"). Unquoted, YAML reads # as the start of a comment, so the title becomes null and the build fails with a validation error.
Activity
Josh-Cena commentedon Jan 4, 2022
I figured it out. #️⃣ actually includes
#as its first character (because emojis are just a sequence of UTF-16 characters).Therefore, our title-parsing regex actually sees:
This would, once again, be solved once we use Remark for Markdown parsing. ref #5659.
PatelN123 commentedon Jan 4, 2022
Ah yes!
I did think this would be the cause but I didn't know how to explain it.
Thanks!
slorber commentedon Oct 16, 2026
This is fixed. The keycap emoji #️⃣ starts with an ASCII
#, and the old title regex treated it as a closing heading marker. That regex was replaced in #6906 (March 2022).Verified on current
mainwith a throwaway docs site:# #️⃣ Support→<title>"#️⃣ Support | Verify 6260",<h1>"#️⃣ Support", sidebar label "#️⃣ Support"# Get #️⃣ help→<title>"Get #️⃣ help | Verify 6260",<h1>"Get #️⃣ help", sidebar label "Get #️⃣ help"title: "#️⃣ Quoted"→<title>"#️⃣ Quoted | Verify 6260",<h1>"#️⃣ Quoted", sidebar label "#️⃣ Quoted"parseMarkdownContentTitlebefore and after #6906:Note for front matter: quote the value (
title: "#️⃣ Support"). Unquoted, YAML reads#as the start of a comment, so the title becomesnulland the build fails with a validation error.(AI-assisted)