Org reader: Added state changing blanklines.
This allows us to emphasize at the beginning of a new paragraph (or, in general, after blank lines).
This commit is contained in:
parent
08359c44e4
commit
73b887e2df
1 changed files with 8 additions and 1 deletions
|
@ -37,7 +37,7 @@ import Text.Pandoc.Options
|
|||
import qualified Text.Pandoc.Parsing as P
|
||||
import Text.Pandoc.Parsing hiding ( F, unF, askF, asksF, runF
|
||||
, newline, orderedListMarker
|
||||
, parseFromString
|
||||
, parseFromString, blanklines
|
||||
)
|
||||
import Text.Pandoc.Readers.LaTeX (inlineCommand, rawLaTeXInline)
|
||||
import Text.Pandoc.Shared (compactify', compactify'DL)
|
||||
|
@ -242,6 +242,13 @@ newline =
|
|||
<* updateLastPreCharPos
|
||||
<* updateLastForbiddenCharPos
|
||||
|
||||
-- | Like @Text.Parsec.Char.blanklines@, but causes additional state changes.
|
||||
blanklines :: OrgParser [Char]
|
||||
blanklines =
|
||||
P.blanklines
|
||||
<* updateLastPreCharPos
|
||||
<* updateLastForbiddenCharPos
|
||||
|
||||
--
|
||||
-- parsing blocks
|
||||
--
|
||||
|
|
Loading…
Add table
Reference in a new issue