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

README Index links don't work on PyPI, only GitHub's markdown renderer #340

Closed
pushfoo opened this issue Oct 16, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@pushfoo
Copy link

pushfoo commented Oct 16, 2023

Browser Version

Expected behavior

  1. Go to to the PyPI page
  2. Click a link under the Index heading
  3. Browser jumps to the topic

Actual behavior / Replication steps

  1. Go to the PyPI page
  2. Click a link under the Index heading
  3. Observe: browser does not jump to the heading

Root cause

The current PyPI builds do not render an HTML ID / name for each heading target for each heading the way GitHub's markdown view does. There is a long-standing issue with PyPA filed related to this: pypa/readme_renderer#169

Some of the comments in the thread (1, 2) mention a workaround: using directly generated HTML anchor tags which PyPI does not strip out.

Since they do not seem like they will fix the markdown renderer soon, perhaps it's possible to automate link target generation for headings as part of the package build?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@pushfoo pushfoo added the bug Something isn't working label Oct 16, 2023
@fabiocaccamo
Copy link
Owner

@pushfoo do you want to submit a PR?

@fabiocaccamo fabiocaccamo added the documentation Improvements or additions to documentation label Oct 16, 2023
@fabiocaccamo
Copy link
Owner

@pushfoo I close this because it's more a PyPi bug than a bug of this library README.

@fabiocaccamo fabiocaccamo closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
Archived in project
Development

No branches or pull requests

2 participants