@@ -699,9 +699,6 @@ data ParserState = ParserState
699699 stateTitle :: [Inline], -- ^ Title of document
700700 stateAuthors :: [[Inline]], -- ^ Authors of document
701701 stateDate :: [Inline], -- ^ Date of document
702− stateOldDashes :: Bool, -- ^ Use pandoc <= 1.8.2.1 behavior
703− -- in parsing dashes; -- is em-dash;
704− -- before numeral is en-dash
705702 stateLiterateHaskell :: Bool, -- ^ Treat input as literate haskell
706703 stateHeaderTable :: [HeaderType], -- ^ Ordered list of header types used
707704 stateIndentedCodeClasses :: [String], -- ^ Classes to use for indented code blocks
@@ -731,7 +728,6 @@ defaultParserState =
731728 stateTitle = [],
732729 stateAuthors = [],
733730 stateDate = [],
734− stateOldDashes = False,
735731 stateLiterateHaskell = False,
736732 stateHeaderTable = [],
737733 stateIndentedCodeClasses = [],
@@ -887,7 +883,7 @@ ellipses = do
887883
888884dash :: Parsec [Char] ParserState Inline
889885dash = do
890− oldDashes <- stateOldDashes `fmap` getState
886+ oldDashes <- getOption readerOldDashes
891887 if oldDashes
892888 then emDashOld <|> enDashOld
893889 else Str `fmap` (hyphenDash <|> emDash <|> enDash)