feat: support block-embed alias in orgmode

pull/3963/head
llcc 2022-03-07 17:03:16 +08:00 committed by Tienson Qin
parent c32fba0ab1
commit 89721672b6
1 changed files with 4 additions and 0 deletions

View File

@ -912,6 +912,10 @@
(not= \* (last s)))
(->elem :a {:on-click #(route-handler/jump-to-anchor! (mldoc/anchorLink (subs s 1)))} (subs s 1))
(text/block-ref? s)
(let [id (text/get-block-ref s)]
(block-reference config id label))
(not (string/includes? s "."))
(page-reference (:html-export? config) s config label)