* bug#67987: Replacing faces applied by shr
[not found] <87sf3twfr6.fsf.ref@yahoo.com>
@ 2023-12-23 7:16 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; only message in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-12-23 7:16 UTC (permalink / raw)
To: 67987
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-23 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87sf3twfr6.fsf.ref@yahoo.com>
2023-12-23 7:16 ` bug#67987: Replacing faces applied by shr Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.