diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-11-06 09:18:02 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-11-06 09:18:02 -0800 |
commit | 4aa3e1f978fc285d16f047c800504b03cc897ec8 (patch) | |
tree | e4a82f7972265a85ce4d938a1b0ea65130aa1272 /src/Text/Pandoc/Readers | |
parent | 54fb3843693d7fb004053aad91ecc69a96dcef82 (diff) | |
download | pandoc-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.hs | 2 |
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 |