From 896affd058622f70fac4ae0ff2b7c1e5472cb3b5 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 7 Mar 2017 15:27:45 +0100 Subject: Re-enable support for custom lua writers. Closes #3495. --- src/Text/Pandoc/App.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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" -- cgit v1.2.3