aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-08-27 10:04:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-08-27 10:04:02 -0700
commit7c03c26d58f092b082f815d8a7f3e09f8e6abd28 (patch)
treeddd1747fe887fdb40899cc4627b6be1b3b49ed7e /src/Text
parent4a7dad18b109987cfa13168a9f5505c183744d99 (diff)
downloadpandoc-7c03c26d58f092b082f815d8a7f3e09f8e6abd28.tar.gz
Add stateAllowLineBreaks to ParserState. [API change]
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Parsing.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs
index a50add362..49414a9a5 100644
--- a/src/Text/Pandoc/Parsing.hs
+++ b/src/Text/Pandoc/Parsing.hs
@@ -1049,6 +1049,7 @@ data ParserState = ParserState
stateParserContext :: ParserContext, -- ^ Inside list?
stateQuoteContext :: QuoteContext, -- ^ Inside quoted environment?
stateAllowLinks :: Bool, -- ^ Allow parsing of links
+ stateAllowLineBreaks :: Bool, -- ^ Allow parsing of line breaks
stateMaxNestingLevel :: Int, -- ^ Max # of nested Strong/Emph
stateLastStrPos :: Maybe SourcePos, -- ^ Position after last str parsed
stateKeys :: KeyTable, -- ^ List of reference keys
@@ -1158,6 +1159,7 @@ defaultParserState =
stateParserContext = NullState,
stateQuoteContext = NoQuote,
stateAllowLinks = True,
+ stateAllowLineBreaks = True,
stateMaxNestingLevel = 6,
stateLastStrPos = Nothing,
stateKeys = M.empty,