@@ -33,6 +33,7 @@ module Text.Pandoc.Readers.Org.ParserState
33 , defaultOrgParserState
33 , defaultOrgParserState
34 , OrgParserLocal (..)
34 , OrgParserLocal (..)
35 , OrgNoteRecord
35 , OrgNoteRecord
36 , HasReaderOptions (..)
37 , HasReaderOptions (..)
37 , HasQuoteContext (..)
38 , HasQuoteContext (..)
38 , HasMacros (..)
39 , HasMacros (..)
@@ -88,6 +89,9 @@ type OrgNoteTable = [OrgNoteRecord]
88type OrgLinkFormatters = M.Map String (String -> String)
89type OrgLinkFormatters = M.Map String (String -> String)
89-- | Macro expander function
90-- | Macro expander function
90type MacroExpander = [String] -> String
91type MacroExpander = [String] -> String
93+newtype Tag = Tag { fromTag :: String }
94+ deriving (Show, Eq, Ord)
92-- | The states in which a todo item can be
96-- | The states in which a todo item can be
93data TodoState = Todo | Done
97data TodoState = Todo | Done
@@ -113,6 +117,7 @@ data OrgParserState = OrgParserState
113 -- specified here.
117 -- specified here.
114 , orgStateEmphasisPostChars :: [Char] -- ^ Chars allowed at after emphasis
118 , orgStateEmphasisPostChars :: [Char] -- ^ Chars allowed at after emphasis
115 , orgStateEmphasisNewlines :: Maybe Int
119 , orgStateEmphasisNewlines :: Maybe Int
120+ , orgStateExcludedTags :: Set.Set Tag
116 , orgStateExportSettings :: ExportSettings
121 , orgStateExportSettings :: ExportSettings
117 , orgStateHeaderMap :: M.Map Inlines String
122 , orgStateHeaderMap :: M.Map Inlines String
118 , orgStateIdentifiers :: Set.Set String
123 , orgStateIdentifiers :: Set.Set String
@@ -183,6 +188,7 @@ defaultOrgParserState = OrgParserState
183 , orgStateEmphasisCharStack = []
188 , orgStateEmphasisCharStack = []
184 , orgStateEmphasisNewlines = Nothing
189 , orgStateEmphasisNewlines = Nothing
185 , orgStateExportSettings = def
190 , orgStateExportSettings = def
191+ , orgStateExcludedTags = Set.singleton $ Tag "noexport"
186 , orgStateHeaderMap = M.empty
192 , orgStateHeaderMap = M.empty
187 , orgStateIdentifiers = Set.empty
193 , orgStateIdentifiers = Set.empty
188 , orgStateIncludeFiles = []
194 , orgStateIncludeFiles = []