-
Notifications
You must be signed in to change notification settings - Fork 201
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
Anchor links for header with link are broken on pub.dev #563
Comments
TL;DR: Seems like a bug in the The source code for the link to the header, in - [Task](#task) In CommonMark syntax, that's an external link to GitHub flavored markdown (GFM) makes it work as a link to the internal header with test "task", which it gives a name/id of The target is ### [Task](/packages/fpdart/lib/src/task.dart) So, this sounds like a bug in the GFM-web extension of The generated link of Example of what GFM does: # TOC
* Goto [simple header](#a-simple-header)
* Goto [text header](#a-link-text-header)
* Goto [text and image header](#a-link-text--header)
* Goto [silly header](#a-link---with-1--multiple%CC%81-spaces_and-2--int%C3%A9rnal-punctuation-and-3--html--face-header)
### A simple header
Simple, not?
### A [Link text](http://example.com) header
Text, not?
### A [Link text](http://example.com) ![with image](http://example.com/favicon.gif) header
More text?
### A link - __with__ (1) multiplé-**spaces**_and (2) _intérnal_-p/u/nc+tua!tion <sup>*and*</sup><a name="xx"/> ($3) <span color="red">html 😝 face</span> header
Silly, yes! So, algorithm seems to be, something like, for a header line
That's not a universal rule, it's GitHub specific, but that's what we should assume for the README.md of a pub package, especially if it has a Github repo, but probably in general. |
On the fpdart pub.dev page the anchor to some headers are broken.
The broken headers include a link:
### [Task](/packages/fpdart/lib/src/task.dart)
On the Github repository the anchor works correctly.
On pub.dev instead the anchor id added on click
#task
does not work. Instead, the correct id should be#taskpackagesfpdartlibsrctaskdart
.Issue on fpdart's repository
The text was updated successfully, but these errors were encountered: