[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67987: Replacing faces applied by shr
From: |
Po Lu |
Subject: |
bug#67987: Replacing faces applied by shr |
Date: |
Sat, 23 Dec 2023 15:16:13 +0800 |
It is currently impossible to display text inside <pre> or <code> tags
in a face besides `default' or `shr-code', which runs contrary to its
stated purpose of being a general mechanism for displaying HTML snippets
as text. The variable that controls the faces selected for other tags
is also marked "private." For this reason, I find myself modifying
face-remapping-alist rather than variables provided by shr, just to
change the fonts shr applies in my own callers.
Not even face-remapping-alist is a complete solution, since different
alists cannot be applied to separate portions of a buffer. Thus users
are ultimately forced to iterate over the text properties shr inserts
and modifying each face property encountered, or to define an
`shr-external-rendering-function' for each tag it might render.
For a start, I'd like to see `shr-current-font' made public and
variables defined for each of the tags that override it controlling the
faces by which it is overridden.
Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#67987: Replacing faces applied by shr,
Po Lu <=