mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
feat: blocks copy with options
This commit is contained in:
@@ -1074,7 +1074,10 @@
|
||||
level-blocks (mapv (fn [uuid] (get level-blocks-uuid-map uuid)) block-ids*)
|
||||
tree (blocks-vec->tree level-blocks)
|
||||
top-level-block-uuids (mapv :block/uuid (filterv #(not (vector? %)) tree))
|
||||
exported-md-contents (mapv #(export/export-blocks-as-markdown repo % "spaces" [])
|
||||
exported-md-contents (mapv #(export/export-blocks-as-markdown
|
||||
repo %
|
||||
@frontend.components.export/*export-block-text-indent-style
|
||||
(into [] @frontend.components.export/*export-block-text-remove-options))
|
||||
top-level-block-uuids)]
|
||||
[(string/join "\n" (mapv string/trim-newline exported-md-contents)) tree]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user