Last active
December 12, 2016 07:50
-
-
Save ar7hur/21baf7ccc00d5cc5a88804c5d2509552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn transform-node [node f] | |
(case (.-nodeName node) | |
("P" "DIV") (str "\n" (f) "\n") | |
("SPAN") (str " " (f) " ") | |
("A") (f) | |
("I" "EM" "B" "U") (str " \\emph{" (f) "} ") | |
("BR") "\n" | |
; else | |
(do (warn! (.-nodeName node)) | |
(f)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment