Skip to content

[Feature] Links relative to the repository root #12

Open
@amezin

Description

@amezin

Description

GitHub renders "absolute" links (/dir/file.md) relative to the root of the repository. This is convenient when, for example, a file is accessible from multiple locations through symlinks, with different nesting levels.

Currently such links are silently ignored.

Describe the solution you'd like

Resolve these links the same way as GitHub does. Since this behavior is specific to GitHub, it should be possible to enable/disable it with a config option.

And when resolution of absolute paths is not enabled - maybe they should be treated as errors (also a configuration option)? Otherwise, you may have potentially broken links that are silently ignored.

Describe alternatives you've considered

For now I converted all links to relative ones

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions