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