Support Textile markup just before sentence ending
For this given Textile markup...
Expected output is:
Actual output is:
URLs (at least using the
Mailing list discussion: http://groups.google.com/group/liftweb/browse_frm/thread/4733278fa2be4180#
Sample test cases:
Not 100% sure this one would pass because of the space between the
the _end of a sentence_.
Expected output is:
the <em>end of a sentence</em>.
Actual output is:
the _end of a sentence_.
URLs (at least using the
"phrase":name
syntax) show the same problem.Mailing list discussion: http://groups.google.com/group/liftweb/browse_frm/thread/4733278fa2be4180#
Sample test cases:
"deal with emphasis just before end of sentence" in {
toHtml("Works _great_.") must ==/(<p>Works <em>great</em>.</p> )
toHtml("Works _great_!") must ==/(<p>Works <em>great</em>!</p> )
toHtml("Works _great_?") must ==/(<p>Works <em>great</em>?</p> )
}
Not 100% sure this one would pass because of the space between the
liftweb.
and the [liftweb]
"deal with URLs just before end of sentence" in {
toHtml("""See "LiftWeb":liftweb. [liftweb]http://liftweb.net""") must ==/(<p>See <a href="http://liftweb.net">LiftWeb</a>.</p> )
}
Leave a comment
Actually, the canonical implementation lets inline markup end with any punctuation and it can also start after the following characters:
.,\"'?!;:
You might also check this discussion in a similar Apache ESME issue:
https://issues.apache.org/jira/browse/ESME-307
.,\"'?!;:
You might also check this discussion in a similar Apache ESME issue:
https://issues.apache.org/jira/browse/ESME-307