Add a new face shr-code

* lisp/net/shr.el (shr-code): New face (bug#54480).
(shr-tag-code): Use it.
This commit is contained in:
Lars Ingebrigtsen 2022-03-21 16:01:33 +01:00
parent 59a8a0ef0d
commit bd5d136777

View file

@ -228,6 +228,10 @@ temporarily blinks with this face."
"Face for <h6> elements."
:version "28.1")
(defface shr-code '((t :inherit fixed-pitch))
"Face used for rendering <code> blocks."
:version "29.1")
(defcustom shr-inhibit-images nil
"If non-nil, inhibit loading images."
:version "28.1"
@ -1410,7 +1414,7 @@ ones, in case fg and bg are nil."
(shr-fontize-dom dom 'underline))
(defun shr-tag-code (dom)
(let ((shr-current-font 'fixed-pitch))
(let ((shr-current-font 'shr-code))
(shr-generic dom)))
(defun shr-tag-tt (dom)