Skip to content
Markdown Compiler for Misaki
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
sample
src
test
.gitignore
.travis.yml
License.html
README.md
project.clj

README.md

misaki markdown logo

Build Status

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 git@github.com: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.

You can’t perform that action at this time.