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

Convert figure element's xml:id attribute into ID anchor to enable linking to figures #59

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

fbolton
Copy link
Contributor

@fbolton fbolton commented Jan 4, 2017

Previously, links to figures were broken, because no ID anchor was being generated for figures. This fix extracts the value of the xml:id attribute from the figure element and uses it to generate an anchor, [[XmlId]].

@mojavelinux
Copy link
Member

This looks good. I have one request, though. Could you write the anchor as follows?

[#_sample_figure]

When there is no reftext, we want to encourage the use of the modern, shorthand syntax.

I'll also need you to rebase, if possible, since other merges introduced a conflict. Thanks!

@fbolton
Copy link
Contributor Author

fbolton commented May 2, 2018

@mojavelinux I'll update the syntax and rebase the PR this evening. Should be ready for merging by tomorrow. Thanks for reviewing the PR!

@mojavelinux
Copy link
Member

Thanks @fbolton!

After that, I'll follow up on your other PRs as well. Thank you for your contributions to improve this converter!

@mojavelinux
Copy link
Member

Ping me in a comment when it's ready.

@mojavelinux mojavelinux merged commit 06f4336 into asciidoctor:master Oct 12, 2023
2 checks passed
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 this pull request may close these issues.

2 participants