@@ -496,6 +496,14 @@ tests =
496496 ] =?>
497497 (mempty::Blocks)
498498
499+ , "later meta definitions take precedence" =:
500+ unlines [ "#+AUTHOR: this will not be used"
501+ , "#+author: Max"
502+ ] =?>
503+ let author = MetaInlines [Str "Max"]
504+ meta = setMeta "author" (MetaList [author]) $ nullMeta
505+ in Pandoc meta mempty
506+
499507 , "Logbook drawer" =:
500508 unlines [ " :LogBook:"
501509 , " - State \"DONE\" from \"TODO\" [2014-03-03 Mon 11:00]"