fix: invalid blocks when pasting multi-line content

related to
https://github.com/logseq/db-test/issues/56#issuecomment-2343937486 but
had seen this happen elsewhere when extract-blocks was called
This commit is contained in:
Gabriel Horner
2024-09-19 12:08:32 -04:00
parent 81e9081501
commit 9301c605db

View File

@@ -29,7 +29,7 @@ and handles unexpected failure."
:db-graph-mode? (config/db-based-graph? repo)})]
(if (config/db-based-graph? repo)
(map (fn [block]
(cond-> (dissoc block :block/properties)
(cond-> (dissoc block :block/properties :block/macros :block/properties-order)
(:block/properties block)
(merge (update-keys (:block/properties block)
(fn [k]