mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: handle empty block embed
This commit is contained in:
@@ -690,6 +690,9 @@
|
||||
(= name "embed")
|
||||
(let [a (first arguments)]
|
||||
(cond
|
||||
(nil? a) ; empty embed
|
||||
nil
|
||||
|
||||
(and (string/starts-with? a "[[")
|
||||
(string/ends-with? a "]]"))
|
||||
(let [page-name (-> (string/replace a "[[" "")
|
||||
|
||||
Reference in New Issue
Block a user