Add stateAllowLineBreaks to ParserState. [API change]
This commit is contained in:
parent
4a7dad18b1
commit
7c03c26d58
1 changed files with 2 additions and 0 deletions
|
@ -1049,6 +1049,7 @@ data ParserState = ParserState
|
||||||
stateParserContext :: ParserContext, -- ^ Inside list?
|
stateParserContext :: ParserContext, -- ^ Inside list?
|
||||||
stateQuoteContext :: QuoteContext, -- ^ Inside quoted environment?
|
stateQuoteContext :: QuoteContext, -- ^ Inside quoted environment?
|
||||||
stateAllowLinks :: Bool, -- ^ Allow parsing of links
|
stateAllowLinks :: Bool, -- ^ Allow parsing of links
|
||||||
|
stateAllowLineBreaks :: Bool, -- ^ Allow parsing of line breaks
|
||||||
stateMaxNestingLevel :: Int, -- ^ Max # of nested Strong/Emph
|
stateMaxNestingLevel :: Int, -- ^ Max # of nested Strong/Emph
|
||||||
stateLastStrPos :: Maybe SourcePos, -- ^ Position after last str parsed
|
stateLastStrPos :: Maybe SourcePos, -- ^ Position after last str parsed
|
||||||
stateKeys :: KeyTable, -- ^ List of reference keys
|
stateKeys :: KeyTable, -- ^ List of reference keys
|
||||||
|
@ -1158,6 +1159,7 @@ defaultParserState =
|
||||||
stateParserContext = NullState,
|
stateParserContext = NullState,
|
||||||
stateQuoteContext = NoQuote,
|
stateQuoteContext = NoQuote,
|
||||||
stateAllowLinks = True,
|
stateAllowLinks = True,
|
||||||
|
stateAllowLineBreaks = True,
|
||||||
stateMaxNestingLevel = 6,
|
stateMaxNestingLevel = 6,
|
||||||
stateLastStrPos = Nothing,
|
stateLastStrPos = Nothing,
|
||||||
stateKeys = M.empty,
|
stateKeys = M.empty,
|
||||||
|
|
Loading…
Reference in a new issue