mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
refactor: decouple block extraction for db graphs and exporting
Coupling db graph app to export needs could lead to bugs and is harder to maintain. Also fix a test assertion
This commit is contained in:
@@ -350,8 +350,8 @@
|
||||
(is (= "|markdown| table|\n|some|thing|" (:block/title (find-block-by-content @conn #"markdown.*table"))))
|
||||
(is (= "multiline block\na 2nd\nand a 3rd" (:block/title (find-block-by-content @conn #"multiline block"))))
|
||||
(is (= "logbook block" (:block/title (find-block-by-content @conn #"logbook block"))))
|
||||
(is (is (re-find #"(?s)^Text before\n.*BEGIN_QUERY.*END_QUERY\nText after$"
|
||||
(:block/title (find-block-by-content @conn #":title \"tasks"))))))
|
||||
(is (re-find #"(?s)^Text before\n#\+BEGIN_QUERY.*END_QUERY\nText after$"
|
||||
(:block/title (find-block-by-content @conn #":title \"tasks")))))
|
||||
|
||||
(testing "block refs and path-refs"
|
||||
(let [block (find-block-by-content @conn "old todo block")]
|
||||
|
||||
Reference in New Issue
Block a user