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

ENH Add reference label for rst #86

Merged
merged 2 commits into from
Jan 2, 2024
Merged

Conversation

lucyleeow
Copy link
Contributor

closes #85

Adds reference label for .rst. AFAICT for md, you can just use the header to cross reference, so no special label needed.

I do not know how best to test this. Could I add a cross link to test/sources/test-rst/index.rst and then amend the test only for testroot="rst" ?

@melissawm melissawm added the enhancement New feature or request label Dec 10, 2023
Copy link
Owner

@melissawm melissawm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll approve, but we should probably think about testing, I just don't know the answer right now. Cheers!

@JWCook
Copy link
Collaborator

JWCook commented Jan 2, 2024

It would be nice to have a consistent ref label for both rST and MyST, since some projects (including some of mine) use a mix of both formats. I can add that plus tests in a separate PR.

@JWCook JWCook merged commit 581f3c0 into melissawm:main Jan 2, 2024
2 checks passed
@lucyleeow lucyleeow deleted the ref_label branch January 3, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH Add reference label to tags page headers
3 participants