knockoff


License

License

GroupId

GroupId

com.tristanhunt
ArtifactId

ArtifactId

knockoff_2.9.1-1
Last Version

Last Version

0.8.1
Release Date

Release Date

Type

Type

jar
Description

Description

knockoff
knockoff
Project Organization

Project Organization

com.tristanhunt

Download knockoff_2.9.1-1

How to add to project

<!-- https://jarcasting.com/artifacts/com.tristanhunt/knockoff_2.9.1-1/ -->
<dependency>
    <groupId>com.tristanhunt</groupId>
    <artifactId>knockoff_2.9.1-1</artifactId>
    <version>0.8.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.tristanhunt/knockoff_2.9.1-1/
implementation 'com.tristanhunt:knockoff_2.9.1-1:0.8.1'
// https://jarcasting.com/artifacts/com.tristanhunt/knockoff_2.9.1-1/
implementation ("com.tristanhunt:knockoff_2.9.1-1:0.8.1")
'com.tristanhunt:knockoff_2.9.1-1:jar:0.8.1'
<dependency org="com.tristanhunt" name="knockoff_2.9.1-1" rev="0.8.1">
  <artifact name="knockoff_2.9.1-1" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.tristanhunt', module='knockoff_2.9.1-1', version='0.8.1')
)
libraryDependencies += "com.tristanhunt" % "knockoff_2.9.1-1" % "0.8.1"
[com.tristanhunt/knockoff_2.9.1-1 "0.8.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.9.1-1

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.9.1-1 jar 1.8

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.8.1
0.8.0-16