From 68b6b9f652125318e82819918a79f8075924d93e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 2 Jul 2015 19:16:30 +0200 Subject: Readers.RST: Parse field list name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “Inline markup is parsed in field names.” [1] [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists --- src/Text/Pandoc/Readers/RST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 38de77f9f..95fa5c497 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -209,7 +209,7 @@ rawFieldListItem minIndent = try $ do fieldListItem :: Int -> RSTParser (Inlines, [Blocks]) fieldListItem minIndent = try $ do (name, raw) <- rawFieldListItem minIndent - let term = B.str name + term <- parseFromString (trimInlines . mconcat <$> many inline) name contents <- parseFromString parseBlocks raw optional blanklines return (term, [contents]) -- cgit v1.2.3