misaki-markdown is one of misaki's compiler plugin. This compiler allows you to use misaki Markdown templates instead of S-exp templates.
Example template
; @layout default
; @title sample title
# $(title)
welcome to misaki-markdown's sample page.
## posts
@(for posts)
* [$(date-format date "yyyy MM dd") - $(title)]($(url))
@(end)
## paging
@(if next-page)
[Next page »]($(next-page))
@(end)
@(if prev-page)
[« Prev page]($(prev-page))
@(end)
Usage
Run sample
$ git clone [email protected]:liquidz/misaki-markdown.git
$ cd misaki-markdown
$ lein run sample
Configuration
Code detection
;_config.clj
;; code regexp setting
;; default value: #"(?s)```([^\r\n]*)[\r\n]+(.+?)[\r\n]+```"
:code-regexp #"(?s)```([^\r\n]*)[\r\n]+(.+?)[\r\n]+```"
Output code html
;_config.clj
;; code html format setting
;; defailt value; "<pre><code@(if lang) class="brush: $(lang);"@(end)>$(code)</code></pre>"
:code-html-format "<pre><code@(if lang) class=\"brush: $(lang);\"@(end)>$(code)</code></pre>"
License
Copyright (C) 2013 Masashi Iizuka(@uochan)
Distributed under the Eclipse Public License, the same as Clojure.