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

reStructured Text links to labels in same document do not work #1535

Open
felixfontein opened this issue Apr 12, 2022 · 0 comments · May be fixed by #1536
Open

reStructured Text links to labels in same document do not work #1535

felixfontein opened this issue Apr 12, 2022 · 0 comments · May be fixed by #1536

Comments

@felixfontein
Copy link

This is basically the problem described in #1219, but since rest2html is part of this repository I guess now this is the right place for creating this issue?

I'm trying to create working links inside a document to another part of that document that also show up in the RST preview on GitHub. :ref: references do not work (#122 because it's Sphinx specific), so I tried to stick to standard RST features:

Test section
============

Link: `link to target <target_>`_.

.. _target:

Target section
==============

The link should point to this section's title.

Rendering this yields something that looks fine, but the link does not work because the anchor isn't created. The link uses the anchor #target, but there is no anchor (or id) called target. https://gist.github.com/felixfontein/5ec5ad555ba6cdb293beb04c83280c90 demonstrates this.

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

Successfully merging a pull request may close this issue.

1 participant