Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 758 Bytes

readme.markdown

File metadata and controls

20 lines (13 loc) · 758 Bytes

Knockoff - Markdown in Scala

scaladoc Maven Central

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

import 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" )