Skip to content

Expand links properly when cross linking to other .md files #588

Closed
@udoprog

Description

@udoprog

Hey,

It seems like mdbook doesn't translate links in chapters (like [link to chapter2](../chapter2.md)) to the resulting html file. To work around this, you have to use a link relative to the output folder, like chapter2.html`.

This breaks markdown links which are hosted on GitHub, and generally also means that a mdbook author needs to understand the topology of the generated book, instead of its sources when cross linking.

Examples:

I was not able to find an existing issue that mentioned this, but I didn't look super close. At least this should help in future searching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions