Skip to content

Commit

Permalink
fix inline-link when html export
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Apr 3, 2023
1 parent 9b5bdb2 commit 14d91a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/frontend/handler/export/html.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@

(defn- inline-link
[{:keys [url label full_text]}]
(let [href (when (= "Search" (first url)) (second url))]
(let [href (case (first url)
"Search" (second url)
"Complex" (str (:protocol (second url)) "://" (:link (second url)))
nil)]
(cond-> [:a]
href (conj {:href href})
href (concatv (mapv inline-ast->hiccup label))
Expand Down

0 comments on commit 14d91a5

Please sign in to comment.