mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
added rudimentary support for markdown compilation via pandoc
This commit is contained in:
@ -3,6 +3,9 @@
|
|||||||
(def-package! markdown-mode
|
(def-package! markdown-mode
|
||||||
:mode ("/README\\(?:\\.\\(?:markdown\\|md\\)\\)?\\'" . gfm-mode)
|
:mode ("/README\\(?:\\.\\(?:markdown\\|md\\)\\)?\\'" . gfm-mode)
|
||||||
:init
|
:init
|
||||||
|
(when (featurep! +pandoc)
|
||||||
|
(setq markdown-command "pandoc --from=markdown --to=html --standalone --mathjax --highlight-style=pygments"))
|
||||||
|
|
||||||
(setq markdown-enable-wiki-links t
|
(setq markdown-enable-wiki-links t
|
||||||
markdown-italic-underscore t
|
markdown-italic-underscore t
|
||||||
markdown-asymmetric-header t
|
markdown-asymmetric-header t
|
||||||
@ -47,3 +50,10 @@
|
|||||||
:nv "t" #'markdown-toc-generate-toc
|
:nv "t" #'markdown-toc-generate-toc
|
||||||
:nv "i" #'markdown-insert-image
|
:nv "i" #'markdown-insert-image
|
||||||
:nv "l" #'markdown-insert-link)))
|
:nv "l" #'markdown-insert-link)))
|
||||||
|
|
||||||
|
(def-package! pandoc-mode
|
||||||
|
:when (featurep! +pandoc)
|
||||||
|
:commands
|
||||||
|
pandoc-mode
|
||||||
|
:hook
|
||||||
|
(markdown-mode . conditionally-turn-on-pandoc))
|
||||||
|
@ -4,3 +4,7 @@
|
|||||||
(package! markdown-mode)
|
(package! markdown-mode)
|
||||||
(package! markdown-toc)
|
(package! markdown-toc)
|
||||||
|
|
||||||
|
(when (featurep! +pandoc)
|
||||||
|
(package! pandoc-mode))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user