This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
(str/replace #"stroke=['\"]#000['\"]" "stroke=\"currentColor\"")))
|
(str/replace #"stroke=['\"]#000['\"]" "stroke=\"currentColor\"")))
|
||||||
|
|
||||||
(defn render-snippets [snippet-promises]
|
(defn render-snippets [snippet-promises]
|
||||||
|
(fs/with-temp-dir [svg-dir {:prefix "doerg-svg-"}]
|
||||||
(let [rendered-snippets
|
(let [rendered-snippets
|
||||||
(delay (->> snippet-promises
|
(delay (->> snippet-promises
|
||||||
(map first)
|
(map first)
|
||||||
@@ -50,7 +51,7 @@
|
|||||||
hiccup/raw (deliver p)))
|
hiccup/raw (deliver p)))
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
(l/error e "Error in TeX thread")
|
(l/error e "Error in TeX thread")
|
||||||
(throw e))))))
|
(throw e)))))))
|
||||||
|
|
||||||
(comment
|
(comment
|
||||||
(let [snippets (for [x ["\\(\\ifxetex blah \\fi\\)"
|
(let [snippets (for [x ["\\(\\ifxetex blah \\fi\\)"
|
||||||
|
|||||||
Reference in New Issue
Block a user