git.iko.soy/typeable/pandoc
on master help sign in
Textile parser: Expanded list of stringBreakers.

This fixes a bug on input like "(_hello_)" which should be a parenthesized emphasized "hello". The new list is taken from the PHP source of textile 2.4.

commit4aa3e1f978fc285d16f047c800504b03cc897ec8 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 6 Nov 2012, 09:18 (14 years ago) parent54fb384
1 file changed+1−1
src/Text/Pandoc/Readers/Textile.hs+1−1
src/Text/Pandoc/Readers/Textile.hs+1−1
@@ -434,7 +434,7 @@ markupChars = "\\*#_@~-+^|%=[]"
434434-- punctuation. Double quote breaks for named links. > and < break
435435-- for inline html.
436436stringBreakers :: [Char]
437−stringBreakers = " \t\n('-.,:!?;\"<>"
437+stringBreakers = " \t\n\r.,\"'?!;:<>«»„“”‚‘’()[]"
438438
439439wordBoundaries :: [Char]
440440wordBoundaries = markupChars ++ stringBreakers