Version 4, last updated by Richard Dallaway at 20 Jan 03:18 UTC

Using the Textile module

The Textile module allows you to parse Textile markup and convert it to (X)HTML.

The SBT configuration is:

 "net.liftweb" %% "lift-textile" % liftVersion % "compile->default"

Example

scala> import net.liftweb.textile._                   
import net.liftweb.textile._

scala> TextileParser.toHtml("""h1. Hi!              
     | 
     | The module in "Lift":http://www.liftweb.net for turning Textile markup into HTML is pretty easy to use.
     | 
     | * As you can see
     | * In this example
     | """)
res0: scala.xml.NodeSeq = 
NodeSeq(<h1>Hi!</h1>, 
, <p>The module in <a href="http://www.liftweb.net">Lift</a> for turning Textile markup into HTML is pretty easy to use.</p>, 
, <ul><li> As you can see</li>
<li> In this example</li>
</ul>, 
, )

See also