You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% if 'label' in obj.idref and obj.idref.label.ref %}<a href="{{obj.idref.label.url}}">{{obj.idref.label.ref}}</a>{% else %}??{% endif %}
just replacing {{obj.idref.label.ref}} with {{ obj }}. Please apply that after reviewing, I am not much sure if this is correct.
(As a note, I found out that \label is always bound to the last section heading (unlike in LaTeX, where it can be positioned anywhere), and that \hypertarget does not suffer from that... Just saying, perhaps this observation is useful for someone later.)
The text was updated successfully, but these errors were encountered:
fixesplastex#316
It looks like the template for \hyperref in the HTML5 renderer was for
the \hyperref{URL}{category}{name}{text} version, but only the
\hyperref[ref]{text} version was implemented.
This commit changes the template to use the `idref` property if it's
present, which is true for the square bracket version which links to a
ref.
I am hitting a bug where the HTML5 renderer render
\hyperref[label]{text}
incorrectly (producing#.
anchor):plastex/plasTeX/Renderers/HTML5/hyperref.jinja2s
Lines 18 to 19 in aa5de5c
This is trivially reproducible with
I get something functional if I copy the definition of ref from
plastex/plasTeX/Renderers/HTML5/Crossref.jinja2s
Lines 1 to 2 in 02610ee
just replacing
{{obj.idref.label.ref}}
with{{ obj }}
. Please apply that after reviewing, I am not much sure if this is correct.(As a note, I found out that
\label
is always bound to the last section heading (unlike in LaTeX, where it can be positioned anywhere), and that\hypertarget
does not suffer from that... Just saying, perhaps this observation is useful for someone later.)The text was updated successfully, but these errors were encountered: