@@ -118,6 +118,9 @@ description meta' = do
118118 bt <- booktitle meta'
119119 let as = authors meta'
120120 dd <- docdate meta'
121+ annotation <- case lookupMeta "abstract" meta' of
122+ Just (MetaBlocks bs) -> (list . el "annotation") <$> cMapM blockToXml bs
123+ _ -> pure mempty
121124 let lang = case lookupMeta "lang" meta' of
122125 Just (MetaInlines [Str s]) -> [el "lang" $ iso639 s]
123126 Just (MetaString s) -> [el "lang" $ iso639 s]
@@ -132,7 +135,7 @@ description meta' = do
132135 Just (MetaString s) -> coverimage s
133136 _ -> return []
134137 return $ el "description"
135− [ el "title-info" (genre : (bt ++ as ++ dd ++ lang))
138+ [ el "title-info" (genre : (bt ++ annotation ++ as ++ dd ++ lang))
136139 , el "document-info" (el "program-used" "pandoc" : coverpage)
137140 ]
138141