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")
|
||||
(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))))))
|
||||
(Collections/emptyMap))
|
||||
(rewrite-hrefs (:blog-prefix config)))))))
|
||||
|
||||
(defn markups
|
||||
"Return a vector of Markup implementations. This is the primary entry point
|
||||
|
|
Loading…
Reference in a new issue