Skip to content
A Markdown parser + object model in scala and scala.js
Branch: master
Clone or download
Pull request Compare This branch is 126 commits ahead of tristanjuricek:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jvm/src
notes
project
shared/src
.gitignore
.travis.yml
build.sbt
license.txt
readme.markdown
version.sbt

readme.markdown

Knockoff - Markdown in Scala

Build Status 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" )
You can’t perform that action at this time.