feat: render Inline_Html

pull/1528/head
Tienson Qin 2021-03-23 20:56:23 +08:00
parent c4ffbac107
commit f8d1e90118
1 changed files with 6 additions and 0 deletions

View File

@ -735,6 +735,12 @@
(-> (safe-read-string s)
(security/remove-javascript-links-in-href)))
["Inline_Html" s]
(when (not html-export?)
;; TODO: how to remove span and only export the content of `s`?
[:span {:dangerouslySetInnerHTML
{:__html s}}])
["Break_Line"]
[:br]
["Hard_Break_Line"]