[tex4ht-commits] [SCM] tex4ht updated: r604 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Fri Sep 13 14:02:48 CEST 2019
Author: michal_h21
Date: 2019-09-13 15:02:48 +0300 (Fri, 13 Sep 2019)
New Revision: 604
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed \hypertarget
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2019-09-12 08:59:11 UTC (rev 603)
+++ trunk/lit/ChangeLog 2019-09-13 12:02:48 UTC (rev 604)
@@ -1,3 +1,9 @@
+2019-09-13 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (hyperref.4ht, exerquiz.4ht): moved contents of the second
+ argument of \hypertarget outside the generated link, in order to prevent
+ creation of invalid HTML tags.
+
2019-09-12 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.tex (html4.4ht),
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2019-09-12 08:59:11 UTC (rev 603)
+++ trunk/lit/tex4ht-4ht.tex 2019-09-13 12:02:48 UTC (rev 604)
@@ -4676,9 +4676,13 @@
\let\o:ref|=\:temp
>>>
+The second parameter of hypertarget is outside of the link because
+it can often contain block elements such as headers and it would
+produce invalid HTML
+
\<hyperref utils\><<<
\def\hyperlink#1#2{\Link{#1}{}#2\EndLink}
-\def\hypertarget#1#2{\Link{}{#1}#2\EndLink}
+\def\hypertarget#1#2{\Link{}{#1}\EndLink#2}
\ifx \hyperpage\:UnDef \let\hyperpage=\empty \fi
>>>
@@ -30530,7 +30534,7 @@
\let\sv:tocsection|=\tocsection
\def\tocsection{\let\toclikesection|=\:gobbleIII \sv:tocsection}
-\def\hypertarget#1#2{\Link{}{#1}#2\EndLink}
+\def\hypertarget#1#2{\Link{}{#1}\EndLink#2}
\def\hyperlink#1#2{\Link{#1}{}#2\EndLink}
\append:def\exercise{\Link{}{page.ex\the at exno}\EndLink }
More information about the tex4ht-commits
mailing list