@@ -112,7 +112,6 @@ convertWithOpts opts args = do
112 , optSectionDivs = sectionDivs
112 , optSectionDivs = sectionDivs
113 , optIncremental = incremental
113 , optIncremental = incremental
114 , optSelfContained = selfContained
114 , optSelfContained = selfContained
116 , optOldDashes = oldDashes
115 , optOldDashes = oldDashes
117 , optHtml5 = html5
116 , optHtml5 = html5
118 , optHtmlQTags = htmlQTags
117 , optHtmlQTags = htmlQTags
@@ -212,10 +211,6 @@ convertWithOpts opts args = do
212 let conTeXtOutput = format == "context"
211 let conTeXtOutput = format == "context"
213 let html5Output = format == "html5"
212 let html5Output = format == "html5"
215− let laTeXInput = "latex" `isPrefixOf` readerName' ||
216− "beamer" `isPrefixOf` readerName'
219 -- disabling the custom writer for now
214 -- disabling the custom writer for now
220 writer <- if ".lua" `isSuffixOf` format
215 writer <- if ".lua" `isSuffixOf` format
221 -- note: use non-lowercased version writerName
216 -- note: use non-lowercased version writerName
@@ -295,11 +290,15 @@ convertWithOpts opts args = do
295 uriFragment = "" }
290 uriFragment = "" }
296 _ -> Nothing
291 _ -> Nothing
298− let readerOpts = def{ readerSmart = if laTeXInput
293+ {- TODO - smart is now an extension, but we should prob make
294+ - texligatures one too...
295+ let smartExt = if laTeXInput
299− then texLigatures
296+ then texLigatures
300− else smart || (texLigatures &&
297+ else smart || (texLigatures &&
301− (laTeXOutput || conTeXtOutput))
298+ (laTeXOutput || conTeXtOutput))
302− , readerStandalone = standalone'
301+ let readerOpts = def{ readerStandalone = standalone'
303 , readerParseRaw = parseRaw
302 , readerParseRaw = parseRaw
304 , readerColumns = columns
303 , readerColumns = columns
305 , readerTabStop = tabStop
304 , readerTabStop = tabStop
@@ -547,7 +546,6 @@ data Opt = Opt
547 , optSectionDivs :: Bool -- ^ Put sections in div tags in HTML
546 , optSectionDivs :: Bool -- ^ Put sections in div tags in HTML
548 , optIncremental :: Bool -- ^ Use incremental lists in Slidy/Slideous/S5
547 , optIncremental :: Bool -- ^ Use incremental lists in Slidy/Slideous/S5
549 , optSelfContained :: Bool -- ^ Make HTML accessible offline
548 , optSelfContained :: Bool -- ^ Make HTML accessible offline
550− , optSmart :: Bool -- ^ Use smart typography
551 , optOldDashes :: Bool -- ^ Parse dashes like pandoc <=1.8.2.1
549 , optOldDashes :: Bool -- ^ Parse dashes like pandoc <=1.8.2.1
552 , optHtml5 :: Bool -- ^ Produce HTML5 in HTML
550 , optHtml5 :: Bool -- ^ Produce HTML5 in HTML
553 , optHtmlQTags :: Bool -- ^ Use <q> tags in HTML
551 , optHtmlQTags :: Bool -- ^ Use <q> tags in HTML
@@ -613,7 +611,6 @@ defaultOpts = Opt
613 , optSectionDivs = False
611 , optSectionDivs = False
614 , optIncremental = False
612 , optIncremental = False
615 , optSelfContained = False
613 , optSelfContained = False
617 , optOldDashes = False
614 , optOldDashes = False
618 , optHtml5 = False
615 , optHtml5 = False
619 , optHtmlQTags = False
616 , optHtmlQTags = False
@@ -692,15 +689,9 @@ options =
692 (\opt -> return opt { optParseRaw = True }))
689 (\opt -> return opt { optParseRaw = True }))
693 "" -- "Parse untranslatable HTML codes and LaTeX environments as raw"
690 "" -- "Parse untranslatable HTML codes and LaTeX environments as raw"
695− , Option "S" ["smart"]
697− (\opt -> return opt { optSmart = True }))
698− "" -- "Use smart quotes, dashes, and ellipses"
700 , Option "" ["old-dashes"]
692 , Option "" ["old-dashes"]
702− (\opt -> return opt { optSmart = True
703− , optOldDashes = True }))
694+ (\opt -> return opt { optOldDashes = True }))
704 "" -- "Use smart quotes, dashes, and ellipses"
695 "" -- "Use smart quotes, dashes, and ellipses"
706 , Option "" ["base-header-level"]
697 , Option "" ["base-header-level"]