@@ -699,9 +699,6 @@ data ParserState = ParserState
699 stateTitle :: [Inline], -- ^ Title of document
699 stateTitle :: [Inline], -- ^ Title of document
700 stateAuthors :: [[Inline]], -- ^ Authors of document
700 stateAuthors :: [[Inline]], -- ^ Authors of document
701 stateDate :: [Inline], -- ^ Date of document
701 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
705 stateLiterateHaskell :: Bool, -- ^ Treat input as literate haskell
702 stateLiterateHaskell :: Bool, -- ^ Treat input as literate haskell
706 stateHeaderTable :: [HeaderType], -- ^ Ordered list of header types used
703 stateHeaderTable :: [HeaderType], -- ^ Ordered list of header types used
707 stateIndentedCodeClasses :: [String], -- ^ Classes to use for indented code blocks
704 stateIndentedCodeClasses :: [String], -- ^ Classes to use for indented code blocks
@@ -731,7 +728,6 @@ defaultParserState =
731 stateTitle = [],
728 stateTitle = [],
732 stateAuthors = [],
729 stateAuthors = [],
733 stateDate = [],
730 stateDate = [],
734− stateOldDashes = False,
735 stateLiterateHaskell = False,
731 stateLiterateHaskell = False,
736 stateHeaderTable = [],
732 stateHeaderTable = [],
737 stateIndentedCodeClasses = [],
733 stateIndentedCodeClasses = [],
@@ -887,7 +883,7 @@ ellipses = do
888dash :: Parsec [Char] ParserState Inline
884dash :: Parsec [Char] ParserState Inline
890− oldDashes <- stateOldDashes `fmap` getState
886+ oldDashes <- getOption readerOldDashes
891 if oldDashes
887 if oldDashes
892 then emDashOld <|> enDashOld
888 then emDashOld <|> enDashOld
893 else Str `fmap` (hyphenDash <|> emDash <|> enDash)
889 else Str `fmap` (hyphenDash <|> emDash <|> enDash)