;;; init-markdown.el --- Configure markdown -*- lexical-binding: t -*- ;; Author: Franck Cuny ;;; Commentary: ;; Configuration related to markdown ;;; Code: (use-package markdown-mode :mode (("\\`README\\.md\\'" . gfm-mode) ("\\.md\\'" . markdown-mode) ("\\.markdown\\'" . markdown-mode)) :custom (markdown-command "pandoc -f markdown_github+smart") (markdown-command-needs-filename t) (markdown-enable-math t) (markdown-open-command "marked") :init (setq markdown-command "multimarkdown")) (use-package markdown-preview-mode :ensure t :after markdown-mode :config (setq markdown-preview-stylesheets (list (concat "https://github.com/dmarcotte/github-markdown-preview/" "blob/master/data/css/github.css")))) (provide 'init-markdown) ;;; init-markdown.el ends here