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

build-loi: Remove links and noterefs from figcaption #751

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

gvtulder
Copy link
Contributor

se build-loi copies non-block-level elements from the <figcaption> to the LoI. If the caption contains an <a> tag, such as an endnote reference, this creates a nested <a>:

<a href="chapter-1.xhtml#f-10">Figure.<a href="endnotes.xhtml#note-8" id="noteref-8" epub:type="noteref">8</a></a>

This patch:

  • removes noteref <a>s entirely;
  • removes other <a> tags as well, but keeps their contents.

@acabal
Copy link
Member

acabal commented Sep 23, 2024

Thanks!

@acabal acabal merged commit 48a4536 into standardebooks:master Sep 23, 2024
1 check passed
@gvtulder gvtulder deleted the f-build-loi branch September 23, 2024 22:13
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