mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-01 19:44:44 +00:00
Fix option lists with additional indentation in Markdown (#21633)
This is more Markdown-ish way to fix issue #21055, then PR #21625. It does not enable RST definition lists, instead it makes adding additional indentation (less than 4) right after a paragraph be ignored, as it's done for all block elements in Markdown. (In this case this tenet is applied to option lists that are not part of CommonMark spec by themselves).
This commit is contained in:
@@ -2447,7 +2447,9 @@ proc parseParagraph(p: var RstParser, result: PRstNode) =
|
||||
result.addIfNotNil(parseLineBlock(p))
|
||||
of rnMarkdownBlockQuote:
|
||||
result.addIfNotNil(parseMarkdownBlockQuote(p))
|
||||
else: break
|
||||
else:
|
||||
dec p.idx # allow subsequent block to be parsed as another section
|
||||
break
|
||||
else:
|
||||
break
|
||||
of tkPunct:
|
||||
|
||||
Reference in New Issue
Block a user