From 9bb5b54102d06fa67961a8c344aa30d3905c3d67 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 20 Jan 2011 22:48:20 -0800 Subject: Added --normalize option. --- src/pandoc.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pandoc.hs b/src/pandoc.hs index 22cf7fc8b..58a3330d3 100644 --- a/src/pandoc.hs +++ b/src/pandoc.hs @@ -32,7 +32,7 @@ module Main where import Text.Pandoc import Text.Pandoc.S5 (s5HeaderIncludes) import Text.Pandoc.Shared ( tabFilter, ObfuscationMethod (..), readDataFile, - headerShift, findDataFile ) + headerShift, findDataFile, normalize ) #ifdef _HIGHLIGHTING import Text.Pandoc.Highlighting ( languages ) #endif @@ -215,6 +215,12 @@ options = (\opt -> return opt { optStrict = True } )) "" -- "Disable markdown syntax extensions" + , Option "" ["normalize"] + (NoArg + (\opt -> return opt { optTransforms = + normalize : optTransforms opt } )) + "" -- "Normalize the Pandoc AST" + , Option "" ["reference-links"] (NoArg (\opt -> return opt { optReferenceLinks = True } )) -- cgit v1.2.3