Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking to anchors in other files doesn't seem to work #212

Open
iamtodor opened this issue Jun 23, 2022 · 1 comment
Open

Linking to anchors in other files doesn't seem to work #212

iamtodor opened this issue Jun 23, 2022 · 1 comment

Comments

@iamtodor
Copy link

Hello,

Here is the full reproducible example:

doc1.md:

## What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

## Why do we use it?

[Link to doc2](doc2.md#why-do-we-use-it)

## Non exist link

[Link to doc2](doc2.md#non-exists-link)

doc2.md:

## Why do we use it
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Markdown link check:

>>> find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check

FILE: ./doc1.md
  [✓] doc2.md#why-do-we-use-it
  [✓] doc2.md#non-exists-link

  2 links checked.

FILE: ./doc2.md
  No hyperlinks found!

  0 links checked.

I found this #91 issue, but it seems to be closed

@toddbaert
Copy link

I also have this issue. Some of the other issues mention only anchor links in the same doc. Those seem to work for me, it's just ones in different md files that seem to be broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants