-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
I noticed that the hyperlink styling in epubs is very inconsistent across epub viewers; especially in the macOS and iOS Books app the links are often indistinguishable from regular text.
Here's a simple example document:
% My Book
% Sam Smith
# Chapter Two
This is my book!
Chapter one is over [link](https://pandoc.org/epub.html).
Chapter two has just begun [*italics link*](https://pandoc.org/epub.html).When converted as pandoc test.md -o test.epub with pandoc 3.8 on macOS the resulting epub looks fine in Calibre's epub viewer:

But the links look the same as regular text in the macOS Books app (normally, i.e., in other books, they would be in color, similar to the italics link in the iOS app):

In the iOS Books app, the link that has additional formatting applied is correctly rendered in color, but the other link not:

I think the same might apply to cross-references (like footnotes and chapter references), but this is less dramatic.
My guess is, the issue lies in the default CSS file, where it seems links are explicitly set to black.
Would it be possible to remove this from the default css (since it seems this is also used by other programs like Quarto)?