diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-07 15:27:45 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-07 15:27:45 +0100 |
commit | 896affd058622f70fac4ae0ff2b7c1e5472cb3b5 (patch) | |
tree | e7d30957ff12116e54e5dfa9289fbd3f866618aa /src/Text/Pandoc | |
parent | 93a9c09b6b7ef2b8e8fcf2c6ebbf04bcbfddea3c (diff) |
Re-enable support for custom lua writers.
Closes #3495.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/App.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index d1047c3cf..cdc0c52fc 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -166,7 +166,9 @@ convertWithOpts opts = do -- disabling the custom writer for now writer <- if ".lua" `isSuffixOf` format -- note: use non-lowercased version writerName - then error "custom writers disabled for now" + then return (StringWriter + (\o d -> liftIO $ writeCustom writerName o d) + :: Writer PandocIO) else case getWriter writerName of Left e -> err 9 $ if format == "pdf" |