diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-07-02 19:16:30 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-07-03 16:41:28 +0200 |
commit | 68b6b9f652125318e82819918a79f8075924d93e (patch) | |
tree | 38eed46341662fd0e7eae3f6dcd2e809d4eab3bf /src/Text | |
parent | 79764df2d5c75c63b92613316fcc8a9b8379f8cc (diff) | |
download | pandoc-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.hs | 2 |
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]) |