summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAugusto Stoffel <arstoffel@gmail.com>2025-10-12 10:50:17 +0200
committerAugusto Stoffel <arstoffel@gmail.com>2025-10-12 10:50:17 +0200
commit29f9b78774a886ef6f1e5cfc7bc4509d1e4b5021 (patch)
tree46bc51117b9d332358bce2164a41199a13bdac5d
parentdb669451bbee7d2ea9872c28661c4679391b9644 (diff)
Check whether Emacs can handle SVG imagesexternals/mathjax
-rw-r--r--mathjax.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/mathjax.el b/mathjax.el
index b7ee1d3..68abbc4 100644
--- a/mathjax.el
+++ b/mathjax.el
@@ -51,8 +51,10 @@
Currently, the only requirement to use this (besides Emacs with SVG
image support) is the Node JavaScript interpreter."
- (not (null (let ((default-directory mathjax--installation-directory))
- (executable-find "node")))))
+ (and (image-type-available-p 'svg)
+ (let ((default-directory mathjax--installation-directory))
+ (executable-find "node"))
+ t))
(defun mathjax--get-state ()
"Return a cons cell consisting of a MathJax process and a list of callbacks."