diff options
| author | Augusto Stoffel <arstoffel@gmail.com> | 2025-10-12 10:50:17 +0200 |
|---|---|---|
| committer | Augusto Stoffel <arstoffel@gmail.com> | 2025-10-12 10:50:17 +0200 |
| commit | 29f9b78774a886ef6f1e5cfc7bc4509d1e4b5021 (patch) | |
| tree | 46bc51117b9d332358bce2164a41199a13bdac5d | |
| parent | db669451bbee7d2ea9872c28661c4679391b9644 (diff) | |
Check whether Emacs can handle SVG imagesexternals/mathjax
| -rw-r--r-- | mathjax.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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." |
