Enabled rendering of HTML files served over gemini.
authorTim Vaughan <tgvaughan@gmail.com>
Thu, 24 Oct 2019 12:32:27 +0000 (14:32 +0200)
committerTim Vaughan <tgvaughan@gmail.com>
Thu, 24 Oct 2019 12:32:27 +0000 (14:32 +0200)
elpher.el

index bd8cc42..ac45b99 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -927,6 +927,8 @@ The response is assumed to be in the variable `elpher-gemini-response'."
       (pcase mime-type
         ((or "text/gemini" "")
          (elpher-render-gemini-map body parameters))
+        ("text/html"
+         (elpher-render-html body))
         ((pred (string-prefix-p "text/"))
          (elpher-render-gemini-plain-text body parameters))
         ((pred (string-prefix-p "image/"))