mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
Merge branch 'master' into enhance/graph-parser-part-four
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
:file/content
|
||||
"- 1
|
||||
id:: 61506710-484c-46d5-9983-3d1651ec02c8
|
||||
- 2
|
||||
id:: 61506711-5638-4899-ad78-187bdc2eaffc
|
||||
- 3
|
||||
id:: 61506712-3007-407e-b6d3-d008a8dfa88b
|
||||
- ((61506712-3007-407e-b6d3-d008a8dfa88b))
|
||||
- 2
|
||||
id:: 61506711-5638-4899-ad78-187bdc2eaffc
|
||||
- 3
|
||||
id:: 61506712-3007-407e-b6d3-d008a8dfa88b
|
||||
- ((61506712-3007-407e-b6d3-d008a8dfa88b))
|
||||
- 4
|
||||
id:: 61506712-b8a7-491d-ad84-b71651c3fdab"
|
||||
}
|
||||
@@ -24,7 +24,7 @@
|
||||
:file/content
|
||||
"- 3
|
||||
id:: 97a00e55-48c3-48d8-b9ca-417b16e3a616
|
||||
- {{embed [[page1]]}}"}])
|
||||
- {{embed [[page1]]}}"}])
|
||||
|
||||
(defn- import-test-data!
|
||||
[]
|
||||
@@ -42,20 +42,20 @@
|
||||
(are [expect block-uuid-s]
|
||||
(= expect
|
||||
(export/export-blocks-as-markdown (state/get-current-repo) [(uuid block-uuid-s)] "dashes" []))
|
||||
"- 1\n\t- 2\n\t\t- 3\n\t\t- 3"
|
||||
"- 1 \n\t- 2 \n\t\t- 3 \n\t\t- 3 "
|
||||
"61506710-484c-46d5-9983-3d1651ec02c8"
|
||||
|
||||
"- 3\n\t- 1\n\t\t- 2\n\t\t\t- 3\n\t\t\t- 3\n\t- 4"
|
||||
"- 3 \n\t- 1 \n\t\t- 2 \n\t\t\t- 3 \n\t\t\t- 3 \n\t- 4 "
|
||||
"97a00e55-48c3-48d8-b9ca-417b16e3a616"))
|
||||
|
||||
(deftest export-files-as-markdown
|
||||
(are [expect files]
|
||||
(= expect
|
||||
(@#'export/export-files-as-markdown (state/get-current-repo) files true))
|
||||
[["pages/page1.md" "- 1\n\t- 2\n\t\t- 3\n\t\t- 3\n- 4"]]
|
||||
[["pages/page1.md" "- 1 \n\t- 2 \n\t\t- 3 \n\t\t- 3 \n- 4 "]]
|
||||
[{:path "pages/page1.md" :content (:file/content (nth test-files 0)) :names ["page1"] :format :markdown}]
|
||||
|
||||
[["pages/page2.md" "- 3\n\t- 1\n\t\t- 2\n\t\t\t- 3\n\t\t\t- 3\n\t- 4"]]
|
||||
[["pages/page2.md" "- 3 \n\t- 1 \n\t\t- 2 \n\t\t\t- 3 \n\t\t\t- 3 \n\t- 4 "]]
|
||||
[{:path "pages/page2.md" :content (:file/content (nth test-files 1)) :names ["page2"] :format :markdown}]))
|
||||
|
||||
(deftest export-repo-as-edn-str
|
||||
|
||||
Reference in New Issue
Block a user