nit(markdown): revise comments & reformat
This commit is contained in:
parent
a6ba70aed7
commit
c45318d493
3 changed files with 9 additions and 6 deletions
|
@ -67,9 +67,9 @@ capture, the end position, and the output buffer.")
|
|||
fill-nobreak-predicate (cons #'markdown-code-block-at-point-p
|
||||
fill-nobreak-predicate))
|
||||
|
||||
;; HACK Prevent mis-fontification of YAML metadata blocks in `markdown-mode'
|
||||
;; which occurs when the first line contains a colon in it. See
|
||||
;; jrblevin/markdown-mode#328.
|
||||
;; HACK: Prevent mis-fontification of YAML metadata blocks in `markdown-mode'
|
||||
;; which occurs when the first line contains a colon in it. See
|
||||
;; jrblevin/markdown-mode#328.
|
||||
(defadvice! +markdown-disable-front-matter-fontification-a (&rest _)
|
||||
:override #'markdown-match-generic-metadata
|
||||
(ignore (goto-char (point-max))))
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
(when (require 'markdown-mode nil t)
|
||||
(cond ((eq markdown-command #'+markdown-compile)
|
||||
(unless (cl-loop for (exe . cmd) in (list (cons "marked" '+markdown-compile-marked)
|
||||
(cons "pandoc" '+markdown-compile-pandoc)
|
||||
(cons "markdown" '+markdown-compile-markdown)
|
||||
(cons "multimarkdown" '+markdown-compile-multimarkdown))
|
||||
(cons "pandoc" '+markdown-compile-pandoc)
|
||||
(cons "markdown" '+markdown-compile-markdown)
|
||||
(cons "multimarkdown" '+markdown-compile-multimarkdown))
|
||||
if (and (memq cmd +markdown-compile-functions)
|
||||
(executable-find exe))
|
||||
return t)
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
(package! markdown-mode :pin "8aab017f4790f7a1e0d8403239cce989c88412f6")
|
||||
(package! markdown-toc :pin "3d724e518a897343b5ede0b976d6fb46c46bcc01")
|
||||
|
||||
;; Required by `markdown-mode', or it will install it via package.el if it isn't
|
||||
;; present when you call `markdown-edit-code-block'.
|
||||
(package! edit-indirect :pin "82a28d8a85277cfe453af464603ea330eae41c05")
|
||||
|
||||
(when (modulep! +grip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue