From 4827ab1faca73ea9fba1031bfc5713c100f23bd3 Mon Sep 17 00:00:00 2001 From: Gustaf Waldemarson Date: Thu, 11 May 2023 10:49:57 +0200 Subject: [PATCH] ox-html: Wrap LaTeX fragments in a span. It is sometimes useful to control the styling or post-processing of LaTeX environments. --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index b519402b1..504c49213 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -3012,7 +3012,7 @@ INFO is a plist containing export properties." :to-buffer (get-buffer-create " *Org HTML Export LaTeX*") :drop-visibility t :drop-narrowing t :drop-contents t (erase-buffer) - (insert latex-frag) + (insert (format "%s" latex-frag)) (org-format-latex cache-relpath nil nil cache-dir nil "Creating LaTeX Image..." nil processing-type) (buffer-string)))) -- 2.25.1