@@ -1,4 +1,5 @@
11{-# LANGUAGE OverloadedStrings #-}
2+{-# LANGUAGE ScopedTypeVariables #-}
23{-
34Copyright (C) 2007-2017 John MacFarlane <jgm@berkeley.edu>
45
@@ -103,6 +104,10 @@ pandocToConTeXt options (Pandoc meta blocks) = do
103104 $ defField "layout" layoutFromMargins
104105 $ defField "number-sections" (writerNumberSections options)
105106 $ maybe id (defField "context-lang") mblang
107+ $ (case getField "papersize" metadata of
108+ Just ("a4" :: String) -> resetField "papersize"
109+ ("A4" :: String)
110+ _ -> id)
106111 $ metadata
107112 let context' = defField "context-dir" (toContextDir
108113 $ getField "dir" context) context