LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

links occasionally lose colors

Open xworld21 opened this issue 1 year ago • 0 comments

Links can sometimes lose their color:

\color{black}\href{URL}{should not be black}, to separate it from normal text

will show the link as black instead of blue (or whichever color is set in CSS).

This happens because the color gets merged into the ltx:href itself, thus creating an inline style which overrides everything else. ltx:href should have some sort of barrier preventing outside colors from getting merged in, or for simplicity just not merge colors altogether.

xworld21 avatar Jan 26 '25 14:01 xworld21