Skip to content

Commit

Permalink
docx writer -- support custom properties
Browse files Browse the repository at this point in the history
fixes jgm#3024
  • Loading branch information
agusmba committed Jan 24, 2019
1 parent e18d9ba commit 1746491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Text/Pandoc/Writers/Docx.hs
Expand Up @@ -512,7 +512,8 @@ writeDocx opts doc@(Pandoc meta _) = do
let docPropsEntry = toEntry docPropsPath epochtime $ renderXml docProps

let customProperties :: [(String, String)]
customProperties = [] -- FIXME
customProperties = [(k, lookupMetaString k meta) | k <- M.keys (unMeta meta)
, k `notElem` ["title", "lang", "author", "date"]]
let mkCustomProp (k, v) pid = mknode "property"
[("fmtid","{D5CDD505-2E9C-101B-9397-08002B2CF9AE}")
,("pid", show pid)
Expand Down

0 comments on commit 1746491

Please sign in to comment.