diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-03-14 17:33:00 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-03-14 17:33:00 -0700 |
commit | b76c0e6a4ad88c25edcd45eab4b102c881e90117 (patch) | |
tree | f20e32d92c9aa1c92e8c867fc520dce687084983 | |
parent | 1b37e3b3c0708a5ddd500589edd10ced34bafae5 (diff) | |
download | pandoc-b76c0e6a4ad88c25edcd45eab4b102c881e90117.tar.gz |
RST reader: Allow unicode bullet characters.
Closes #4454.
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 | ||||
-rw-r--r-- | test/command/4454.md | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index e88d997f0..cf6ad30cf 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -80,7 +80,7 @@ type RSTParser m = ParserT [Char] ParserState m --- bulletListMarkers :: [Char] -bulletListMarkers = "*+-" +bulletListMarkers = "*+-•‣⁃" underlineChars :: [Char] underlineChars = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" diff --git a/test/command/4454.md b/test/command/4454.md new file mode 100644 index 000000000..db0b0a406 --- /dev/null +++ b/test/command/4454.md @@ -0,0 +1,9 @@ +``` +% pandoc -f rst -t native +• a +• b +^D +[BulletList + [[Plain [Str "a"]] + ,[Plain [Str "b"]]]] +``` |