aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-07-02 19:16:30 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-07-03 16:41:28 +0200
commit68b6b9f652125318e82819918a79f8075924d93e (patch)
tree38eed46341662fd0e7eae3f6dcd2e809d4eab3bf /src/Text
parent79764df2d5c75c63b92613316fcc8a9b8379f8cc (diff)
downloadpandoc-68b6b9f652125318e82819918a79f8075924d93e.tar.gz
Readers.RST: Parse field list name
“Inline markup is parsed in field names.” [1] [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/RST.hs2
1 files changed, 1 insertions, 1 deletions
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])