From 4aa3e1f978fc285d16f047c800504b03cc897ec8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 6 Nov 2012 09:18:02 -0800 Subject: [PATCH] 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. --- src/Text/Pandoc/Readers/Textile.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs index 263c863ab..c6a2938a9 100644 --- a/src/Text/Pandoc/Readers/Textile.hs +++ b/src/Text/Pandoc/Readers/Textile.hs @@ -434,7 +434,7 @@ markupChars = "\\*#_@~-+^|%=[]" -- punctuation. Double quote breaks for named links. > and < break -- for inline html. stringBreakers :: [Char] -stringBreakers = " \t\n('-.,:!?;\"<>" +stringBreakers = " \t\n\r.,\"'?!;:<>«»„“”‚‘’()[]" wordBoundaries :: [Char] wordBoundaries = markupChars ++ stringBreakers