Closed dov closed 5 years ago
This major mode uses shr.el
for the rendering which doesn't support CSS at all, only color attributes for tables. Please contact Lars Ingebritsen if you really want CSS rendering to happen (bonus: You'd get it working in M-x eww
as well as it uses the same rendering library).
The book https://www.jyotirmoy.net/posts/2018-12-01-rust-book.html is a good example of a typical programming epub. It contains code snippets that have been syntax highlightened and annotated with tags like
<span class="pp">println!</span>(<span class="st">"Hello, world!"</span>);
. The xhtml also contains an inline style sheet which defines the attributes of these classes:But these styles are not honored in the display and the code is displayed in black only.
See:
ch002.xhtml
of the reference epub.