@@ -118,6 +118,9 @@ description meta' = do
118 bt <- booktitle meta'
118 bt <- booktitle meta'
119 let as = authors meta'
119 let as = authors meta'
120 dd <- docdate meta'
120 dd <- docdate meta'
121+ annotation <- case lookupMeta "abstract" meta' of
122+ Just (MetaBlocks bs) -> (list . el "annotation") <$> cMapM blockToXml bs
121 let lang = case lookupMeta "lang" meta' of
124 let lang = case lookupMeta "lang" meta' of
122 Just (MetaInlines [Str s]) -> [el "lang" $ iso639 s]
125 Just (MetaInlines [Str s]) -> [el "lang" $ iso639 s]
123 Just (MetaString s) -> [el "lang" $ iso639 s]
126 Just (MetaString s) -> [el "lang" $ iso639 s]
@@ -132,7 +135,7 @@ description meta' = do
132 Just (MetaString s) -> coverimage s
135 Just (MetaString s) -> coverimage s
133 _ -> return []
136 _ -> return []
134 return $ el "description"
137 return $ el "description"
135− [ el "title-info" (genre : (bt ++ as ++ dd ++ lang))
138+ [ el "title-info" (genre : (bt ++ annotation ++ as ++ dd ++ lang))
136 , el "document-info" (el "program-used" "pandoc" : coverpage)
139 , el "document-info" (el "program-used" "pandoc" : coverpage)