Function: org-roam-preview-default-function
org-roam-preview-default-function is a natively compiled function
defined in org-roam-mode.el.
Signature
(org-roam-preview-default-function)
Documentation
Return the preview content at point.
This function returns the all contents under the current headline, up to the next headline.
Source Code
;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam-mode.el
(defun org-roam-preview-default-function ()
"Return the preview content at point.
This function returns the all contents under the current
headline, up to the next headline."
(let ((beg (save-excursion
(org-roam-end-of-meta-data t)
(point)))
(end (save-excursion
(org-next-visible-heading 1)
(point))))
(string-trim (buffer-substring-no-properties beg end))))