fix(logbook): track time in markdown header block

This commit is contained in:
llcc
2022-02-25 18:22:15 +08:00
parent db6e8f5a97
commit c250ca7f40
2 changed files with 7 additions and 4 deletions

View File

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