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

Broken by footnote #218

Open
d-tsuji opened this issue Sep 20, 2022 · 0 comments
Open

Broken by footnote #218

d-tsuji opened this issue Sep 20, 2022 · 0 comments

Comments

@d-tsuji
Copy link

d-tsuji commented Sep 20, 2022

What happened?

Footnotes are inspected by markdown-link-check and fail.

sample

  • Sample.md
# sample 

This is sample footnote[^1].

[^1]: foot

Result

$ markdown-link-check Sample.md

FILE: README.md
[✖] foot

1 links checked.

ERROR: 1 dead links found!
[✖] foot → Status: 400

background

GitHub and others support footnotes. Yes, footnotes are links, but they are also checked by markdown-link-check.

https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/

Expected

Is there any way to ignore footnotes?

Option of ignorePatterns checks for link destination strings. Therefore, the following settings will not work.

{
    "ignorePatterns": [
        {"pattern":"^\^"}
    ]
}

This is because footnote links usually do not contain specific strings, such as http.

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

1 participant