Skip to content

Incorrect crossreference links generate local fragment-links #1245

Backlog

Description

@scmmmh

What version of myst-parser are you using?

5.2.0

What version dependencies are you using?

Sphinx: 9.2.0
docutils: 0.23

What operating system are you using?

Linux

Describe the Bug

In a project with two files "a.md" and "b.md", a link inside the "a.md" file the code [broken](b1.md) generates a link to "#b1.md" and does not report that the target file does not exist.

Expected Behavior

The broken link text should just be output as plain text and a warning about a missing cross-reference target should be generated.

To Reproduce

Create a project with two files "a.md" and "b.md". Inside the "a.md" file add the code [broken](b1.md). A broken link to "#b1.md" is generated and no report that the target file does not exist is output.

Activity

  1. added
    bug
    on Nov 25, 2026
  2. scmmmh commented on Dec 2, 2026

    @scmmmh
    Author

    I am happy to see a fix for this. However, further digging on my end has discovered that the reason for no report being generated is in an interaction between our own theme and the sphinx_book_theme package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions