git.iko.soy/typeable/pandoc
on master help sign in
Add stateAllowLineBreaks to ParserState. [API change]
commit7c03c26d58f092b082f815d8a7f3e09f8e6abd28 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 27 Aug 2019, 10:04 (7 years ago) parent4a7dad1
1 file changed+2
src/Text/Pandoc/Parsing.hs+2
src/Text/Pandoc/Parsing.hs+2
@@ -1049,6 +1049,7 @@ data ParserState = ParserState
10491049 stateParserContext :: ParserContext, -- ^ Inside list?
10501050 stateQuoteContext :: QuoteContext, -- ^ Inside quoted environment?
10511051 stateAllowLinks :: Bool, -- ^ Allow parsing of links
1052+ stateAllowLineBreaks :: Bool, -- ^ Allow parsing of line breaks
10521053 stateMaxNestingLevel :: Int, -- ^ Max # of nested Strong/Emph
10531054 stateLastStrPos :: Maybe SourcePos, -- ^ Position after last str parsed
10541055 stateKeys :: KeyTable, -- ^ List of reference keys
@@ -1158,6 +1159,7 @@ defaultParserState =
11581159 stateParserContext = NullState,
11591160 stateQuoteContext = NoQuote,
11601161 stateAllowLinks = True,
1162+ stateAllowLineBreaks = True,
11611163 stateMaxNestingLevel = 6,
11621164 stateLastStrPos = Nothing,
11631165 stateKeys = M.empty,