Skip to content

Repository files navigation

Knockoff - Markdown in Scala

scaladocMaven Central

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

importknockoff.DefaultDiscounter._
toXHTML(knockoff("""# My Markdown Content """))

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

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

About

A Markdown parser + object model in scala and scala.js

Topics

Resources

Stars

9 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages