Compare commits

..

3 Commits

Author SHA1 Message Date
d0b126ec54
Add missing id: prefix when adding DATE references to checklists
Forgot this, oops.
2024-09-19 15:47:47 +02:00
bc4e163ac5
Include TOCs in Markdown exports by default
I usually want those.  This setting can be overwritten by
customizations.
2024-09-19 15:46:02 +02:00
f54c39fe52
Natively fontify code blocks in Markdown files
Nice!
2024-09-19 15:45:45 +02:00
2 changed files with 3 additions and 2 deletions

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 --toc"
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)))

View File

@ -1344,7 +1344,7 @@ inserting the checklist."
(ts-active :to ,(ts-now)))))) (ts-active :to ,(ts-now))))))
(insert "Concurrent DATEs:\n") (insert "Concurrent DATEs:\n")
(dolist (date concurrent-dates) (dolist (date concurrent-dates)
(insert "- " (org-link-make-string (cdr date) (car date)) "\n")) (insert "- " (org-link-make-string (format "id:%s" (cdr date)) (car date)) "\n"))
(insert "\n")) (insert "\n"))
;; Insert relevant backlinks, when available. ;; Insert relevant backlinks, when available.