Address comment. Thanks Junyi

This commit is contained in:
llcc
2022-03-02 14:34:22 +08:00
parent 1d420965bd
commit f90fca132b
3 changed files with 10 additions and 13 deletions

View File

@@ -339,8 +339,9 @@
[block value]
(if (and (state/enable-timetracking?)
(not= (:block/content block) value))
(let [new-marker (last (util/safe-re-find (marker/marker-pattern) (or value "")))
new-value (with-marker-time value block (:block/format block)
(let [format (:block/format block)
new-marker (last (util/safe-re-find (marker/marker-pattern format) (or value "")))
new-value (with-marker-time value block format
new-marker
(:block/marker block))]
new-value)