git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: use ; as separator between authors.

This allows you to use ',' within author names: e.g. "John Jones, Jr." git-svn-id: https://pandoc.googlecode.com/svn/trunk@1726 788f1e2b-df1e-0410-8736-df70ead52e1b

commit54dda0ff9e682036f3b17a28d7333d965313f9d1 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 31 Dec 2009, 01:16 (17 years ago) parent312d933
2 files changed+3−3
src/Text/Pandoc/Readers/Markdown.hs+2−2 tests/testsuite.txt+1−1
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -68,7 +68,7 @@ setextHChars = "=-"
6868
6969-- treat these as potentially non-text when parsing inline:
7070specialChars :: [Char]
71−specialChars = "\\[]*_~`<>$!^-.&'\"\8216\8217\8220\8221"
71+specialChars = "\\[]*_~`<>$!^-.&'\"\8216\8217\8220\8221;"
7272
7373--
7474-- auxiliary functions
@@ -136,7 +136,7 @@ authorsLine :: GenParser Char ParserState [[Inline]]
136136authorsLine = try $ do
137137 char '%'
138138 skipSpaces
139− authors <- sepEndBy (many1 (notFollowedBy (oneOf ",;\n") >> inline)) (oneOf ",;")
139+ authors <- sepEndBy (many1 (notFollowedBy (oneOf ";\n") >> inline)) (oneOf ";")
140140 newline
141141 return $ map normalizeSpaces authors
142142
tests/testsuite.txt+1−1
@@ -1,5 +1,5 @@
11% Pandoc Test Suite
2−% John MacFarlane, Anonymous
2+% John MacFarlane; Anonymous
33% July 17, 2006
44
55This is a set of tests for pandoc. Most of them are adapted from