Skip to content

#️⃣ Hash emoji causes errors in title.  #6260

Open
@PatelN123

Description

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • 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

  1. Create a new docusaurus page
  2. Set the title to something with the #️⃣
  3. Build the site, the title will be the ID rather than what you specified with the title you specified under it.

Expected behavior

Put the correct title

Actual behavior

Already written ^^

Your environment

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondomain: markdownRelated to Markdown parsing or syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions