diff --git a/modules/lang/markdown/autoload.el b/modules/lang/markdown/autoload.el index 7e1d2b23a..2a9595bc3 100644 --- a/modules/lang/markdown/autoload.el +++ b/modules/lang/markdown/autoload.el @@ -72,7 +72,8 @@ Returns its exit code." (call-process-region beg end shell-file-name nil output-buffer nil shell-command-switch - "pandoc" "--smart" "-f" "markdown" "-t" "html"))) + "pandoc" "-f" "markdown" "-t" "html" + "--standalone" "--mathjax" "--highlight-style=pygments"))) ;;;###autoload (defun +markdown-compile-markdown (beg end output-buffer) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 2cf556b6c..8db2958e0 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -66,10 +66,3 @@ capture, the end position, and the output buffer.") "t" #'markdown-toc-generate-toc "i" #'markdown-insert-image "l" #'markdown-insert-link)))) - - -(def-package! pandoc-mode - :when (featurep! +pandoc) - :commands pandoc-mode - :hook (markdown-mode . conditionally-turn-on-pandoc) - :init (setq markdown-command "pandoc --from=markdown --to=html --standalone --mathjax --highlight-style=pygments")) diff --git a/modules/lang/markdown/doctor.el b/modules/lang/markdown/doctor.el index cad8ccea4..4c9238840 100644 --- a/modules/lang/markdown/doctor.el +++ b/modules/lang/markdown/doctor.el @@ -1,10 +1,6 @@ ;; -*- lexical-binding: t; no-byte-compile: t; -*- ;;; lang/markdown/doctor.el -(when (featurep! +pandoc) - (unless (executable-find "pandoc") - (warn! "Couldn't find pandoc, markdown-mode may have issues"))) - (when (require 'markdown-mode nil t) (cond ((eq markdown-command #'+markdown-compile) (dolist (cmd (list (cons "marked" '+markdown-compile-marked)