@@ -45,6 +45,7 @@ module Text.Pandoc.Readers.Org.ParserState
4545 , setExportDrawers
4646 , setExportEmphasizedText
4747 , setExportSmartQuotes
48+ , setExportSpecialStrings
4849 , setExportSubSuperscripts
4950 , modifyExportSettings
5051 , optionsToParserState
@@ -84,8 +85,9 @@ data ExportSettings = ExportSettings
8485 -- ^ Specify drawer names which should be exported. @Left@ names are
8586 -- explicitly excluded from the resulting output while @Right@ means that
8687 -- only the listed drawer names should be included.
87− , exportEmphasizedText :: Bool -- ^ Parse emphasized text.
88− , exportSmartQuotes :: Bool -- ^ Parse quotes, ellipses, apostrophs smartly
88+ , exportEmphasizedText :: Bool -- ^ Parse emphasized text
89+ , exportSmartQuotes :: Bool -- ^ Parse quotes smartly
90+ , exportSpecialStrings :: Bool -- ^ Parse ellipses and dashes smartly
8991 , exportSubSuperscripts :: Bool -- ^ TeX-like syntax for sub- and superscripts
9092 }
9193
@@ -160,6 +162,7 @@ defaultExportSettings = ExportSettings
160162 { exportDrawers = Left ["LOGBOOK"]
161163 , exportEmphasizedText = True
162164 , exportSmartQuotes = True
165+ , exportSpecialStrings = True
163166 , exportSubSuperscripts = True
164167 }
165168
@@ -182,15 +185,20 @@ setExportDrawers val es = es { exportDrawers = val }
182185setExportEmphasizedText :: ExportSettingSetter Bool
183186setExportEmphasizedText val es = es { exportEmphasizedText = val }
184187
188+-- | Set export options for parsing of smart quotes.
189+setExportSmartQuotes :: ExportSettingSetter Bool
190+setExportSmartQuotes val es = es { exportSmartQuotes = val }
191+
192+-- | Set export options for parsing of special strings (like em/en dashes or
193+-- ellipses).
194+setExportSpecialStrings :: ExportSettingSetter Bool
195+setExportSpecialStrings val es = es { exportSpecialStrings = val }
196+
185197-- | Set export options for sub/superscript parsing. The short syntax will
186198-- not be parsed if this is set set to @False@.
187199setExportSubSuperscripts :: ExportSettingSetter Bool
188200setExportSubSuperscripts val es = es { exportSubSuperscripts = val }
189201
190−-- | Set export options for parsing of smart quotes.
191−setExportSmartQuotes :: ExportSettingSetter Bool
192−setExportSmartQuotes val es = es { exportSmartQuotes = val }
193−
194202-- | Modify a parser state
195203modifyExportSettings :: ExportSettingSetter a -> a -> OrgParserState -> OrgParserState
196204modifyExportSettings setter val state =