git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: use ; as separator between authors.
54dda0ffiddlosopher
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -68,7 +68,7 @@ setextHChars = "=-"
68
68
69-- treat these as potentially non-text when parsing inline:
69-- treat these as potentially non-text when parsing inline:
70specialChars :: [Char]
70specialChars :: [Char]
71−specialChars = "\\[]*_~`<>$!^-.&'\"\8216\8217\8220\8221"
71+specialChars = "\\[]*_~`<>$!^-.&'\"\8216\8217\8220\8221;"
72
72
73--
73--
74-- auxiliary functions
74-- auxiliary functions
@@ -136,7 +136,7 @@ authorsLine :: GenParser Char ParserState [[Inline]]
136authorsLine = try $ do
136authorsLine = try $ do
137 char '%'
137 char '%'
138 skipSpaces
138 skipSpaces
139− authors <- sepEndBy (many1 (notFollowedBy (oneOf ",;\n") >> inline)) (oneOf ",;")
139+ authors <- sepEndBy (many1 (notFollowedBy (oneOf ";\n") >> inline)) (oneOf ";")
140 newline
140 newline
141 return $ map normalizeSpaces authors
141 return $ map normalizeSpaces authors
142
142
tests/testsuite.txt+1−1
@@ -1,5 +1,5 @@
1% Pandoc Test Suite
1% Pandoc Test Suite
2−% John MacFarlane, Anonymous
2+% John MacFarlane; Anonymous
3% July 17, 2006
3% July 17, 2006
4
4
5This is a set of tests for pandoc. Most of them are adapted from
5This is a set of tests for pandoc. Most of them are adapted from