Skip to content

Commit 84afca7

Browse files
committed
Merge pull request #108 from jrblevin/check-markdown-command
Check whether markdown-command is installed
2 parents eee57ec + b1e044c commit 84afca7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/markdown-test.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3782,8 +3782,10 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
37823782
(ad-activate #'markdown-live-preview-window-eww)))))
37833783

37843784
(defmacro markdown-test-eww-or-nothing (test &rest body)
3785-
(if (and (fboundp 'libxml-parse-html-region) (require 'eww nil t)) `(progn ,@body)
3786-
(message "no eww, or no libxml2 found: skipping %s" test)
3785+
(if (and (fboundp 'libxml-parse-html-region) (require 'eww nil t)
3786+
(executable-find markdown-command))
3787+
`(progn ,@body)
3788+
(message "no eww, no libxml2, or no %s found: skipping %s" markdown-command test)
37873789
nil))
37883790

37893791
(ert-deftest test-markdown-ext/live-preview-exports ()

0 commit comments

Comments
 (0)