fix: highlight not working in org mode

This commit is contained in:
Tienson Qin
2021-09-26 10:38:39 +08:00
parent 821ffecaf3
commit ad5b4e0d44
2 changed files with 10 additions and 3 deletions

View File

@@ -102,8 +102,10 @@
(defn italics-format! []
(format-text! config/get-italic))
(defn highlight-format! []
(format-text! config/get-highlight))
(defn highlight-format! [state]
(when-let [block (state/get-edit-block)]
(let [format (:block/format block)]
(format-text! #(config/get-highlight format)))))
(defn strike-through-format! []
(format-text! config/get-strike-through))