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

Use linespans for anchorlinenos #2026

Merged
merged 1 commit into from Jan 31, 2022

Conversation

mhils
Copy link
Contributor

@mhils mhils commented Jan 6, 2022

When using the HTML formatter with linespans=foo, linenos=inline, and anchorlinenos=True,
the generated anchor links should be #foo-42 and not #-42.

Thanks for maintaining pygments, we are very happy users with pdoc! 😃 🍰

… and `anchorlinenos=True`,

the generated anchor links should be `#foo-42` and not `#-42`.
@Anteru Anteru self-assigned this Jan 31, 2022
@Anteru Anteru added changelog-update Items which need to get mentioned in the changelog A-formatting area: changes to formatters labels Jan 31, 2022
@Anteru Anteru added this to the 2.12.0 milestone Jan 31, 2022
@Anteru Anteru merged commit b1edee0 into pygments:master Jan 31, 2022
@Anteru
Copy link
Collaborator

Anteru commented Jan 31, 2022

Good catch, thanks!

@mhils mhils deleted the linespans-and-anchorlinenos branch February 1, 2022 09:11
@jeanas jeanas removed the changelog-update Items which need to get mentioned in the changelog label May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-formatting area: changes to formatters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants