From f736dea4ba71f81b37ff28a218115871249b35ec Mon Sep 17 00:00:00 2001 From: Mauro Bieg <mb21@users.noreply.github.com> Date: Sat, 15 Sep 2018 20:55:23 +0200 Subject: [PATCH] Docx writer: add MetaString case for abstract, subtitle (#4905) fixes #4900 --- src/Text/Pandoc/Writers/Docx.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index 2055ee1da..5bd7e809b 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -763,11 +763,13 @@ writeOpenXML opts (Pandoc meta blocks) = do let abstract' = case lookupMeta "abstract" meta of Just (MetaBlocks bs) -> bs Just (MetaInlines ils) -> [Plain ils] + Just (MetaString s) -> [Plain [Str s]] _ -> [] let subtitle' = case lookupMeta "subtitle" meta of Just (MetaBlocks [Plain xs]) -> xs Just (MetaBlocks [Para xs]) -> xs Just (MetaInlines xs) -> xs + Just (MetaString s) -> [Str s] _ -> [] let includeTOC = writerTableOfContents opts || case lookupMeta "toc" meta of