Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Can't reference headings in a different file #155

@gibfahn

Description

@gibfahn

Summary

I want to be able to reference a heading in a different file. In Github I would do this:

[Guide Part 2](/path/to/guide.md#part-2)

Full explanation

Let's say I have the file path/to/guide.md which looks like:

# Guide

## Part 1

## Part 2

Linking to that doc via an absolute path (from a different file) works well:

[Guide](/path/to/guide)

however, trying to link to a heading in that doc doesn't work, it gets resolved as an external reference:

<!-- None of these work: -->
[Guide](/path/to/guide#part-2)
[Guide](/path/to/guide.md#part-2)

It does happen to work if you use .html and get the relative path right (but it's still resolved as an external link).

[Guide](../../path/to/guide.html#part-2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions