Welcome to Knockoff

Knockoff is a Markdown parser with a twist. Most Markdown systems just convert Markdown source to HTML. Knockoff converts from Markdown source to an object model ... then, to an XHMTL fragment, generated easily with Scala's excellent XML integration. I've found it an easy way to manipulate Markdown content.

For example, I've built a literate programming environment by basically stringing together specially tagged code blocks of the markdown content. With the meta-data extension, you can pretty easily use markdown files as the "storage" format for something like a website.

Converting Markdown to HTML

The Discounter is what grabs the "knockoff" of a markdown string. For simple usage, you can use the DefaultDiscounter object.

import com.tristanhunt.knockoff.DefaultDiscounter._
toXML( knockoff( markdownString ) )

See the Recipes page for more.

Recent Updates

0.6.1-8 Dec 6, 2009

0.6.0-5 Nov 28, 2009

0.6.0-4 Nov 28, 2009