mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
@@ -236,7 +236,12 @@
|
||||
(let [ast (mldoc/->edn content (mldoc/default-config format))
|
||||
title? (mldoc/block-with-title? (ffirst (map first ast)))
|
||||
has-properties? (or (and title?
|
||||
(mldoc/properties? (second ast)))
|
||||
(or (mldoc/properties? (second ast))
|
||||
(mldoc/properties? (second
|
||||
(remove
|
||||
(fn [[x _]]
|
||||
(= "Hiccup" (first x)))
|
||||
ast)))))
|
||||
(mldoc/properties? (first ast)))
|
||||
lines (string/split-lines content)
|
||||
[title body] (if title?
|
||||
|
||||
Reference in New Issue
Block a user