Skip to content

Markdown links to markdown files will be broken if the file name does not contain space but is surrounded by <> #9614

@axmmisaka

Description

@axmmisaka

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

Per CommonMark, [Haha](../hehe.mdx) and [Haha](<../hehe.mdx>) should be the same (if the path to file contains space only the latter will work, nevertheless.)
In Docusaurus 3, if the file path contains space only the latter syntax will work; however, if the file path does not contain space, only the former syntax will work and the latter will result in broken link.

image

Reproducible demo

No response

Steps to reproduce

  1. Open docusaurus.new
  2. In docs/tutorial-basics/congratulations.md,
- Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
+ Have **5 more minutes**? Take a look at **[versioning](<../tutorial-extras/manage-docs-versions.md>)** and **[i18n](<../tutorial-extras/translate-your-site.md>)**.
  1. yarn build

Expected behavior

As if nothing has changed

Actual behavior

Broken links found

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): NodeJS 20
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions