Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

TextileParser issues #44

Closed
fbettag opened this Issue · 8 comments

3 participants

@fbettag
Collaborator

1# * and _. Look at the following:

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

scala> TextileParser.toHtml("foo bar")
res7: scala.xml.NodeSeq =

foo __bar__

scala> TextileParser.toHtml("bar")
res8: scala.xml.NodeSeq =

bar

scala> TextileParser.toHtml("bar foo")
res9: scala.xml.NodeSeq =

bar *foo*

Something clearly isn't working with __ and ** ;)

#2 links with classes

scala> TextileParser.toHtml(""" "(cmsadmin-link)click here":# """)
res10: scala.xml.NodeSeq =

(cmsadmin-link)click here

Usually this should work too.

@dpp
Owner

I've fixed issued #1

I don't understand what "this should work too" means. What is the expected output.

@fbettag
Collaborator

It should produce a link which has the class cmsadmin-link.

thanks for the quick fix!

@dpp
Owner

I need to see exactly what HTML you expect to be output... and it would help if you could point to a reference. When I enter the example that you gave into , http://textism.com/tools/textile/index.php I get:

”(cmsadmin-link)click here”:#

@fbettag
Collaborator

"(cmsadmin-link)click here":/foo

transforms to:

click here

Done with RedCloth (ruby textile). Syntactically it's just the logical conclusion of the textile specs.

@dpp
Owner

I've updated Lift to support this construct

@fbettag
Collaborator

great! thank you!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.