mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
add unit-tests for export
This commit is contained in:
@@ -449,11 +449,11 @@
|
||||
(let [ast (gp-mldoc/->edn content (gp-mldoc/default-config format))
|
||||
ast (mapv common/remove-block-ast-pos ast)
|
||||
ast (removev common/Properties-block-ast? ast)
|
||||
keep-level<=n (get-in *state* [:export-options :keep-only-level<=N])
|
||||
ast (if (pos? keep-level<=n)
|
||||
(common/keep-only-level<=n ast keep-level<=n)
|
||||
ast)
|
||||
ast* (common/replace-block&page-reference&embed ast)
|
||||
keep-level<=n (get-in *state* [:export-options :keep-only-level<=N])
|
||||
ast* (if (pos? keep-level<=n)
|
||||
(common/keep-only-level<=n ast* keep-level<=n)
|
||||
ast*)
|
||||
ast** (if (= "no-indent" (get-in *state* [:export-options :indent-style]))
|
||||
(mapv common/replace-Heading-with-Paragraph ast*)
|
||||
ast*)
|
||||
|
||||
Reference in New Issue
Block a user