summaryrefslogtreecommitdiff
path: root/mathjax.el
diff options
context:
space:
mode:
Diffstat (limited to 'mathjax.el')
-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."