feat(markdown): Improve markdown editing experience
- Enable native code block fontification - Add htmlize package for HTML export - Add custom theme faces for markdown-mode headers, code and tables - Remove Emacs 31+ tree-sitter mode remapping
This commit is contained in:
@@ -46,11 +46,11 @@
|
||||
:hook
|
||||
(markdown-mode . toggle-truncate-lines)
|
||||
:init
|
||||
(setq markdown-command "multimarkdown")
|
||||
(when (>= emacs-major-version 31)
|
||||
(add-to-list 'major-mode-remap-alist
|
||||
'(markdown-mode . markdown-ts-mode))
|
||||
(add-hook 'markdown-ts-mode-hook #'toggle-truncate-lines)))
|
||||
(setq markdown-command "multimarkdown"
|
||||
markdown-fontify-code-blocks-natively t))
|
||||
|
||||
;; html
|
||||
(use-package htmlize)
|
||||
|
||||
(provide 'init-prog)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user