Skip to content
This repository

A Markdown parser + object model in scala

Convert build system to use gradle.

If you're not familiar with gradle, use the gradle wrapper: ./gradlew assemble

(I tend to just kick off gradle tasks via IDEA. It Just Works.)

This is preliminary, until there's a real fix for anything I won't create a new version. This does pass tests.
latest commit 865565d172
Tristan Juricek authored December 22, 2013
Octocat-spinner-32 gradle Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 lib Removed the knockoff-extras and knockoff-generator experimental proje… November 06, 2011
Octocat-spinner-32 notes Added release notes for 0.8.1 September 23, 2012
Octocat-spinner-32 src Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 .gitignore Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 build.gradle Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 gradlew Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 gradlew.bat Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 license.txt Convert build system to use gradle. December 22, 2013
Octocat-spinner-32 readme.markdown Convert build system to use gradle. December 22, 2013
readme.markdown

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: http://tristanjuricek.com/knockoff.

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.