]> git.eshelyaron.com Git - emacs.git/commit
org-latex-preview: Add protection when `untrusted-content' is non-nil
authorIhor Radchenko <yantar92@posteo.net>
Tue, 20 Feb 2024 09:47:24 +0000 (12:47 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 30 Mar 2024 19:30:24 +0000 (20:30 +0100)
commitaba81c1da8827b24bd4a031d55c8e022dfbc5f8d
treedff3ee1395508f7c3091149f821a1618c5d3b03b
parentc97727da25dcda13e4625f3fa2fccb9aecf12e57
org-latex-preview: Add protection when `untrusted-content' is non-nil

* lisp/org/org.el (org--latex-preview-when-risky): New variable
controlling how to handle LaTeX previews in Org files from untrusted
origin.
(org-latex-preview): Consult `org--latex-preview-when-risky' before
generating previews.

This patch adds a layer of protection when LaTeX preview is requested
for an email attachment, where `untrusted-content' is set to non-nil.

(cherry picked from commit 6f9ea396f49cbe38c2173e0a72ba6af3e03b271c)
lisp/org/org.el