-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add option "case insensitive" #147
Comments
are they valid because you're using JS? the provided html snippet, pasted into a html file and opened with firefox does not have both links working |
For me both links work when opening the html e.g. in MS Edge (on Windows). |
Can you try with other browsers? I don't have access to a windows machine |
As I mentioned, my primary intention is to validate cross-references in (GitHub flavored) Markdown (gfm) documents. In this file, there one chapter and one html anchor (which is supported by gfm) are defined:
At the beginning of the document, 4 cross-references are defined:
Now when I open this md file in a browser (on Windows) - all those 4 links work (tried it with Firefox, Edge and Chrome).
|
I don't think i can help here. You are converting the Markdown to HTML in a fundamentally different way than GitHub does. GitHub uses a ton of JS to make anchors work (the resulting DOM does not contain the element IDs verbatim), and for some reason they do it case-insensitively. I think you have two options:
|
Already tried before - it does not :)
OK. |
maybe this helps: https://github.com/phseiff/github-flavored-markdown-to-html |
Is it possible to check anchors case insensitive or to add such an option?
E.g. when checking the html below, I get the error
error: bad link test.html#Some-Section
However both links
"#some-section"
and"#Some-Section"
should be valid in my context.Thank you.
The text was updated successfully, but these errors were encountered: