Enable org-mode in temporary excerpt buffer

This commit is contained in:
Correl Roush 2023-11-02 11:56:11 -04:00
parent 74304e45c1
commit bce5ecfce4
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@
(defun org-roam-export-backlinks-excerpt (backlink)
"Get the Org element containing the link from BACKLINK as an excerpt."
(with-temp-buffer
(org-mode)
(insert-file-contents (org-roam-node-file (org-roam-backlink-source-node backlink)))
(goto-char (org-roam-backlink-point backlink))
(org-roam-export-backlinks--excerpt)))