diff --git a/org-roam-utils.el b/org-roam-utils.el index 3c7e433..5b72be3 100644 --- a/org-roam-utils.el +++ b/org-roam-utils.el @@ -227,9 +227,9 @@ Like `org-fontify-like-in-org-mode', but supports `org-ref'." ;; `org-fontify-like-in-org-mode' here (with-temp-buffer (insert s) - (let ((org-ref-buffer-hacked t) - (org-fold-core-style 'overlays)) + (let ((org-ref-buffer-hacked t)) (org-mode) + (setq-local org-fold-core-style 'overlays) (font-lock-ensure) (buffer-string))))