mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: add page embeds to page references
This commit is contained in:
@@ -60,11 +60,11 @@
|
||||
(and (vector? block)
|
||||
(= "Macro" (first block)))
|
||||
(let [{:keys [name arguments]} (second block)]
|
||||
(when (and (= name "embed")
|
||||
(string? (first arguments))
|
||||
(string/starts-with? (first arguments) "[[")
|
||||
(string/ends-with? (first arguments) "]]"))
|
||||
(subs (first arguments) 2 (- (count (first arguments)) 2))))
|
||||
(let [argument (string/join ", " arguments)]
|
||||
(when (and (= name "embed")
|
||||
(string? argument)
|
||||
(text/page-ref? argument))
|
||||
(text/page-ref-un-brackets! argument))))
|
||||
:else
|
||||
nil)]
|
||||
(when (and
|
||||
|
||||
Reference in New Issue
Block a user