aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-11-06 09:18:02 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-11-06 09:18:02 -0800
commit4aa3e1f978fc285d16f047c800504b03cc897ec8 (patch)
treee4a82f7972265a85ce4d938a1b0ea65130aa1272 /src/Text/Pandoc/Readers
parent54fb3843693d7fb004053aad91ecc69a96dcef82 (diff)
downloadpandoc-4aa3e1f978fc285d16f047c800504b03cc897ec8.tar.gz
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.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs2
1 files changed, 1 insertions, 1 deletions
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