Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A Markdown parser + object model in scala
Failed to load latest commit information.
notes Added release notes for 0.8.1
src Added support for sbt and scala 2.11
build.sbt Add organization setting to sbt configuration.
readme.markdown Convert build system to use gradle.


Knockoff - Markdown in Scala

This is a simple Markdown to object model to XHTML system.

import com.tristanhunt.knockoff.DefaultDiscounter._

toXHTML(knockoff("""# My Markdown Content """))

You can use the blocks returned from the knockoff method to do useful things, like fetch the header:

val blocks = knockoff("""# My markdown""")
blocks.find( _.isInstanceOf[Header] ).map( toText ).getOrElse( "No header" )

More information

See the home page for more information:

License is BSD. Patches are welcome, if the patch is clean, I'll probably accept it.

Something went wrong with that request. Please try again.