mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 09:31:38 +00:00
fixes rst parsing Markdown CodeblockFields blocking the loop (#24128)
```nim
import packages/docutils/[rst, rstgen]
let message = """```llvm-profdata"""
echo rstgen.rstToHtml(message, {roSupportMarkdown}, nil)
```
This commit is contained in:
@@ -1526,7 +1526,7 @@ proc parseMarkdownCodeblockFields(p: var RstParser): PRstNode =
|
||||
result = nil
|
||||
else:
|
||||
result = newRstNode(rnFieldList)
|
||||
while currentTok(p).kind != tkIndent:
|
||||
while currentTok(p).kind notin {tkIndent, tkEof}:
|
||||
if currentTok(p).kind == tkWhite:
|
||||
inc p.idx
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user