mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 08:55:55 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user