mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: inline hiccup
This commit is contained in:
committed by
Andelf
parent
a36f56c8df
commit
604dd20d33
@@ -1578,10 +1578,10 @@
|
||||
["Inline_Hiccup" s] ;; String to hiccup
|
||||
(ui/catch-error
|
||||
[:div.warning {:title "Invalid hiccup"} s]
|
||||
[:div.hiccup_html {:dangerouslySetInnerHTML
|
||||
{:__html (-> (safe-read-string s)
|
||||
(rum/render-static-markup)
|
||||
(security/sanitize-html))}}])
|
||||
[:span {:dangerouslySetInnerHTML
|
||||
{:__html (-> (safe-read-string s)
|
||||
(rum/render-static-markup)
|
||||
(security/sanitize-html))}}])
|
||||
|
||||
["Inline_Html" s]
|
||||
(when (not html-export?)
|
||||
|
||||
Reference in New Issue
Block a user