]> git.eshelyaron.com Git - emacs.git/commitdiff
Display SVG images inline in Gnus
authorJuri Linkov <juri@linkov.net>
Sun, 29 Jun 2025 16:39:29 +0000 (19:39 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 20:08:44 +0000 (22:08 +0200)
* lisp/gnus/mm-decode.el (mm-inline-media-tests): Add "image/svg+xml".

(cherry picked from commit 7fd846f61ea74c6438c7ce3def7555a591279514)

lisp/gnus/mm-decode.el

index c92aed0bcc1079c43291f88ea3738faf5aa1244c..ab1345c83b46089b5657be10eccf3cba574bf6f1 100644 (file)
@@ -232,6 +232,10 @@ before the external MIME handler is invoked."
      mm-inline-image
      ,(lambda (handle)
        (mm-valid-and-fit-image-p 'pbm handle)))
+    ("image/svg\\+xml"
+     mm-inline-image
+     ,(lambda (handle)
+        (mm-valid-and-fit-image-p 'svg handle)))
     ("text/plain" mm-inline-text identity)
     ("text/enriched" mm-inline-text identity)
     ("text/richtext" mm-inline-text identity)