aboutsummaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 7608ad017..1836fe345 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -327,6 +327,14 @@ options =
"FORMAT")
"" -- "Print default template for FORMAT"
+ , Option "" ["print-sample-lua-writer"]
+ (NoArg
+ (\_ -> do
+ sample <- readDataFileUTF8 Nothing "sample.lua"
+ UTF8.hPutStr stdout sample
+ exitWith ExitSuccess))
+ "" -- "Print sample lua custom writer"
+
, Option "" ["no-wrap"]
(NoArg
(\opt -> return opt { optWrapText = False }))