TextileParser issues
1# * and . Look at the following:
scala> import net.liftweb.textile.
import net.liftweb.textile._
scala> TextileParser.toHtml("*foo* __bar__")
res7: scala.xml.NodeSeq =
<p><strong>foo</strong> __bar__</p>
scala> TextileParser.toHtml("__bar__")
res8: scala.xml.NodeSeq =
<p><i>bar</i></p>
scala> TextileParser.toHtml("__bar__ foo*")
res9: scala.xml.NodeSeq =
<p><i>bar</i> *foo*</p>
Something clearly isn't working with __ and * ;)
#2 links with classes
scala> TextileParser.toHtml(""" "(cmsadmin-link)click here":# """)
res10: scala.xml.NodeSeq =
<p> <a href="javascript://">(cmsadmin-link)click here</a> </p>
Usually this should work too.
scala> import net.liftweb.textile.
import net.liftweb.textile._
scala> TextileParser.toHtml("*foo* __bar__")
res7: scala.xml.NodeSeq =
<p><strong>foo</strong> __bar__</p>
scala> TextileParser.toHtml("__bar__")
res8: scala.xml.NodeSeq =
<p><i>bar</i></p>
scala> TextileParser.toHtml("__bar__ foo*")
res9: scala.xml.NodeSeq =
<p><i>bar</i> *foo*</p>
Something clearly isn't working with __ and * ;)
#2 links with classes
scala> TextileParser.toHtml(""" "(cmsadmin-link)click here":# """)
res10: scala.xml.NodeSeq =
<p> <a href="javascript://">(cmsadmin-link)click here</a> </p>
Usually this should work too.
Leave a comment
on 2010-02-06 13:47 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/44/find