git.iko.soy/typeable/pandoc
on master help sign in
Re-enable support for custom lua writers.

Closes #3495.

commit896affd058622f70fac4ae0ff2b7c1e5472cb3b5 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 7 Mar 2017, 15:27 (10 years ago) parent93a9c09
1 file changed+3−1
src/Text/Pandoc/App.hs+3−1
src/Text/Pandoc/App.hs+3−1
@@ -166,7 +166,9 @@ convertWithOpts opts = do
166166 -- disabling the custom writer for now
167167 writer <- if ".lua" `isSuffixOf` format
168168 -- note: use non-lowercased version writerName
169− then error "custom writers disabled for now"
169+ then return (StringWriter
170+ (\o d -> liftIO $ writeCustom writerName o d)
171+ :: Writer PandocIO)
170172 else case getWriter writerName of
171173 Left e -> err 9 $
172174 if format == "pdf"