remove asciidoc options/attributes and add rewrite-href post processing

This commit is contained in:
Adam Tankanow 2015-01-09 07:12:56 -05:00
parent 1cff8eadf2
commit eda815a5ae

View file

@ -51,14 +51,14 @@
(dir [this] "asc")
(ext [this] ".asc")
(render-fn [this]
(let [attributes (java.util.HashMap. {"toc" "macro"})
options (java.util.HashMap. {"attributes" attributes})]
(fn [rdr _]
(fn [rdr config]
(->>
(.convert (Asciidoctor$Factory/create)
(->> (java.io.BufferedReader. rdr)
(line-seq)
(s/join "\n"))
options))))))
(->> (java.io.BufferedReader. rdr)
(line-seq)
(s/join "\n"))
(Collections/emptyMap))
(rewrite-hrefs (:blog-prefix config)))))))
(defn markups
"Return a vector of Markup implementations. This is the primary entry point