Prevent SVG rendering in EWW buffer

Added functionality to ignore SVG files during rendering in EWW to address rendering issues associated with SVGs.
This commit is contained in:
Jeremy Dormitzer 2024-07-24 16:00:10 -04:00
parent a37891f4fc
commit 28da68fcd1

View File

@ -87,6 +87,9 @@ new EWW buffer."
(cdr (assoc bookmark bookmarks))) (cdr (assoc bookmark bookmarks)))
current-prefix-arg)) current-prefix-arg))
(eww bookmark arg)) (eww bookmark arg))
;; Don't try to render SVGs, for some reason they are not rendered correctly
(add-to-list 'shr-external-rendering-functions
'(svg . ignore))
:general :general
(leader-map "E" #'eww) (leader-map "E" #'eww)
(normal eww-mode-map (normal eww-mode-map