@@ -73,20 +73,26 @@ metaKey = T.toLower <$> many1Char (noneOf ": \n\r")
74exportSettingHandlers :: PandocMonad m => Map Text (OrgParser m ())
74exportSettingHandlers :: PandocMonad m => Map Text (OrgParser m ())
75exportSettingHandlers = Map.fromList
75exportSettingHandlers = Map.fromList
76− [ ("result" , fmap pure anyLine `parseThen` discard) -- RESULT is never an export setting
76+ [ ("result" , fmap pure anyLine `parseThen` discard)
77− , ("author" , lineOfInlines `parseThen` collectLines "author")
78+ , ("author" , lineOfInlines `parseThen` collectLines "author")
78− , ("keywords" , lineOfInlines `parseThen` collectLines "keywords")
79− , ("date" , lineOfInlines `parseThen` setField "date")
79+ , ("date" , lineOfInlines `parseThen` setField "date")
80− , ("description", lineOfInlines `parseThen` collectLines "description")
80+ , ("description", lineOfInlines `parseThen` collectLines "description")
81+ , ("keywords" , lineOfInlines `parseThen` collectLines "keywords")
81− , ("title" , lineOfInlines `parseThen` collectLines "title")
82+ , ("title" , lineOfInlines `parseThen` collectLines "title")
82− , ("nocite" , lineOfInlines `parseThen` collectAsList "nocite")
83+ -- LaTeX
83 , ("latex_class", fmap pure anyLine `parseThen` setField "documentclass")
84 , ("latex_class", fmap pure anyLine `parseThen` setField "documentclass")
84 , ("latex_class_options", (pure . T.filter (`notElem` ("[]" :: String)) <$> anyLine)
85 , ("latex_class_options", (pure . T.filter (`notElem` ("[]" :: String)) <$> anyLine)
85 `parseThen` setField "classoption")
86 `parseThen` setField "classoption")
86 , ("latex_header", metaExportSnippet "latex" `parseThen`
87 , ("latex_header", metaExportSnippet "latex" `parseThen`
87 collectAsList "header-includes")
88 collectAsList "header-includes")
88 , ("html_head" , metaExportSnippet "html" `parseThen`
90 , ("html_head" , metaExportSnippet "html" `parseThen`
89 collectAsList "header-includes")
91 collectAsList "header-includes")
93+ , ("nocite" , lineOfInlines `parseThen` collectLines "nocite")
94+ , ("header-includes", lineOfInlines `parseThen` collectLines "header-includes")
95+ , ("institute" , lineOfInlines `parseThen` collectLines "institute")
92parseThen :: PandocMonad m
98parseThen :: PandocMonad m