Missing <p> when converting from OrgMode #2464
rgaiacs
commented
I can see why this is happening:
-- Paragraphs or Plain text
paraOrPlain :: OrgParser (F Blocks)
paraOrPlain = try $ do
ils <- parseInlines
nl <- option False (newline >> return True)
try (guard nl >> notFollowedBy (orderedListStart <|> bulletListStart) >>
return (B.para <$> ils))
<|> (return (B.plain <$> ils))
In this case the "CLOSED:" text is followed directly by a bullet list item, so we get a Plain rather than a Para.
This is in fact just what you want in nested list contexts like:
* a
* b
* c
Here b
is a Plain because it's followed directly by an ordered list, with no blank space. This gives you a "tight" list.
Perhaps, though, we could make an exception when we're not in a list context at all, as in the original example.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimal working Example
Currently Output
Expected Output
Extra Information
If there is no list after the time stamp the output is OK.
Environment