summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-09-08 02:17:04 +0200
committerLeon Rische <leon.rische@me.com>2020-09-08 02:17:04 +0200
commit1d9d9e9d356b0c64ef8fc2710e5c63506e839049 (patch)
tree716fc4b6b20080e8dd8aef59d7b5b0aa9c51a562
parent3a06926baedf43d899558173f9b14ca74eda9db2 (diff)
Improve latex display in cloze holes
-rw-r--r--org-fc.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/org-fc.el b/org-fc.el
index c291a6f..d42e42d 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -833,6 +833,7 @@ CURRENT-INDEX is the index of the current position in the list of all holes."
;; "[...hint]" and set the font for the whole hole.
((= i current-index)
(org-fc-hide-region hole-beg text-beg "")
+ (remove-overlays text-beg text-end)
(setq org-fc-type-cloze--text
(org-fc-make-overlay text-beg text-end 'invisible t))
(org-fc-hide-region text-end hint-beg "")
@@ -879,6 +880,7 @@ Processes all holes in the card text."
"Flip a cloze card."
(org-show-children)
(overlay-put org-fc-type-cloze--text 'invisible nil)
+ (org-fc-show-latex)
;; Remove all overlays in the region of the hint to get rid of
;; latex overlays in the hint, then hide the region again.
(let* ((hint-start (overlay-start org-fc-type-cloze--hint))