Bläddra i källkod

lisp/ox-html.el: Restore org-svg class.

* lisp/ox-html.el (org-html--format-image): Restore org-svg class.
d96e8975791bd3b1a5f8fdb75609d73f134dc831 removed the org-svg class
which is necessary even when using <img> tags otherwise svg images
will render at absurdly large sizes.
Tom Gillespie 3 år sedan
förälder
incheckning
9364b2d894
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      lisp/ox-html.el

+ 3 - 1
lisp/ox-html.el

@@ -1707,7 +1707,9 @@ a communication channel."
                     (org-html-encode-plain-text
                      (org-find-text-property-in-string 'org-latex-src source))
                   (file-name-nondirectory source)))
-     attributes))
+     (if (string= "svg" (file-name-extension source))
+         (org-combine-plists '(:class "org-svg") attributes '(:fallback nil))
+       attributes)))
    info))
 
 (defun org-html--textarea-block (element)