From b76c0e6a4ad88c25edcd45eab4b102c881e90117 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 14 Mar 2018 17:33:00 -0700 Subject: RST reader: Allow unicode bullet characters. Closes #4454. --- src/Text/Pandoc/Readers/RST.hs | 2 +- test/command/4454.md | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/command/4454.md 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"]]]] +``` -- cgit v1.2.3