Function: org-roam-preview-default-function

org-roam-preview-default-function is a byte-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 ~/.emacs.d/elpa/org-roam-20260224.1637/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))))