@@ -103,6 +103,7 @@ data Opt = Opt
103103 , optSelfContained :: Bool -- ^ Make HTML accessible offline
104104 , optXeTeX :: Bool -- ^ Format latex for xetex
105105 , optSmart :: Bool -- ^ Use smart typography
106+ , optOldDashes :: Bool -- ^ Parse dashes like pandoc <=1.8.2.1
106107 , optHtml5 :: Bool -- ^ Produce HTML5 in HTML
107108 , optHighlight :: Bool -- ^ Highlight source code
108109 , optHighlightStyle :: Style -- ^ Style to use for highlighted code
@@ -149,6 +150,7 @@ defaultOpts = Opt
149150 , optSelfContained = False
150151 , optXeTeX = False
151152 , optSmart = False
153+ , optOldDashes = False
152154 , optHtml5 = False
153155 , optHighlight = True
154156 , optHighlightStyle = pygments
@@ -245,6 +247,12 @@ options =
245247 (\opt -> return opt { optSmart = True }))
246248 "" -- "Use smart quotes, dashes, and ellipses"
247249
250+ , Option "" ["old-dashes"]
251+ (NoArg
252+ (\opt -> return opt { optSmart = True
253+ , optOldDashes = True }))
254+ "" -- "Use smart quotes, dashes, and ellipses"
255+
248256 , Option "5" ["html5"]
249257 (NoArg
250258 (\opt -> do
@@ -735,6 +743,7 @@ main = do
735743 , optIncremental = incremental
736744 , optSelfContained = selfContained
737745 , optSmart = smart
746+ , optOldDashes = oldDashes
738747 , optHtml5 = html5
739748 , optHighlight = highlight
740749 , optHighlightStyle = highlightStyle
@@ -858,6 +867,7 @@ main = do
858867 stateCitations = map CSL.refId refs,
859868 stateSmart = smart || writerName' `elem`
860869 ["latex", "context", "latex+lhs", "beamer"],
870+ stateOldDashes = oldDashes,
861871 stateColumns = columns,
862872 stateStrict = strict,
863873 stateIndentedCodeClasses = codeBlockClasses,