Natively fontify code blocks in Markdown files

Nice!
This commit is contained in:
Daniel Borchmann 2024-09-19 15:45:45 +02:00
parent dbda1928ce
commit f54c39fe52
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -2867,7 +2867,8 @@ eventuelly be set to nil, however)."
:commands (markdown-mode) :commands (markdown-mode)
:init (progn :init (progn
(setq markdown-use-pandoc-style-yaml-metadata t (setq markdown-use-pandoc-style-yaml-metadata t
markdown-command "pandoc --standalone") markdown-command "pandoc --standalone"
markdown-fontify-code-blocks-natively t)
(fset 'markdown-output-standalone-p #'(lambda () t)) (fset 'markdown-output-standalone-p #'(lambda () t))
(add-hook 'markdown-mode-hook #'turn-off-auto-fill) (add-hook 'markdown-mode-hook #'turn-off-auto-fill)
(add-hook 'markdown-mode-hook #'turn-on-visual-line-mode))) (add-hook 'markdown-mode-hook #'turn-on-visual-line-mode)))