branch: elpa/gnosis
commit 7e48242a23afe8381ae8f4880143f9d4010612a4
Author: Thanos Apollo <pub...@thanosapollo.org>
Commit: Thanos Apollo <pub...@thanosapollo.org>

    [fix] cloze: Add org format for cloze type.
---
 gnosis.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index 24085694c3..52731e237f 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -402,9 +402,7 @@ This will not be applied to sentences that start with 
double space."
   (cl-assert (listp clozes) nil "Adding clozes: Clozes need to be a list.")
   (let ((cloze-string (or cloze-string gnosis-cloze-string)))
     (with-temp-buffer
-      (insert (gnosis-center-string str))
-      (org-mode)
-      (font-lock-ensure)
+      (insert (gnosis-center-string (gnosis-org-format-string str)))
       (dolist (cloze clozes)
         (let* ((cloze-text (gnosis-trim-quotes cloze))
                (replacement (concat

Reply via email to