Skip to content

epub links indistinguishable from regular text in macOS and iOS Books app #11174

@cod3licious

Description

@cod3licious

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:
Image

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):
Image

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

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions