mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
fix: highlight not working in org mode
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user