fix(export): remove prefix spaces when no-indent (#10807)

* fix(export): remove prefix spaces when no-indent
* fix(export): fix remove-prefix-spaces-in-Plain

use full_content for Src ast when no-indent
This commit is contained in:
rcmerci
2024-01-12 14:26:17 +08:00
committed by GitHub
parent d276fbf106
commit facc75f635
5 changed files with 86 additions and 29 deletions

View File

@@ -129,6 +129,23 @@
- 4")
"97a00e55-48c3-48d8-b9ca-417b16e3a616"))
(deftest export-blocks-as-markdown-no-indent
(are [expect content]
(= (string/trim expect)
(string/trim (#'export-text/export-helper (string/trim content) :markdown {:indent-style "no-indent"})))
"
1
2
3
4
5"
"
- 1
2
3
- 4
5"))
(deftest-async export-files-as-markdown
(p/do!