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

<a> element in a <figcaption> is swallowed... #290

Closed
iherman opened this issue Dec 18, 2013 · 1 comment
Closed

<a> element in a <figcaption> is swallowed... #290

iherman opened this issue Dec 18, 2013 · 1 comment

Comments

@iherman
Copy link
Member

iherman commented Dec 18, 2013

This is the source:

<figure id="figure1">
   <img src="figure1.png" alt="Graph for XXX Example" />
   <figcaption>Graph for XXX Example (<a href="figure1.svg">SVG version</a>)</figcaption>
</figure>

and here is the generated source in the final version:

<figure style="text-align:center" id="figure1">
   <img alt="Graph for XXX Example" src="figure1.png" />
   <figcaption>Fig. <span class="figno">1</span> <span class="fig-title">Graph for XXX Example (SVG version)</span></figcaption>
</figure>

note the missing <a> element in the generated caption:-(

@darobin
Copy link
Member

darobin commented Dec 19, 2013

Indeed. This is a leftover from back when figure captions came from the title attribute. This is fixed in the next build.

Note that it can lead to slightly strange things if you use the Table of Figures feature. It will use the content of the caption for the link text there, so that it'll contain "(SVG version)" in your case. Not a huge deal, but I can't really remove that automatically.

@darobin darobin closed this as completed Dec 19, 2013
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
Ignore inflator when max_y is set
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

No branches or pull requests

2 participants