remove asciidoc options/attributes and add rewrite-href post processing
This commit is contained in:
parent
1cff8eadf2
commit
eda815a5ae
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue