parent
4ec5cbac0d
commit
496e9f74e1
1 changed files with 2 additions and 0 deletions
|
|
@ -1102,6 +1102,8 @@ proc whichSection(p: RstParser): RstNodeKind =
|
||||||
of tkPunct:
|
of tkPunct:
|
||||||
if isMarkdownHeadline(p):
|
if isMarkdownHeadline(p):
|
||||||
result = rnHeadline
|
result = rnHeadline
|
||||||
|
elif p.tok[p.idx].symbol == "```":
|
||||||
|
result = rnCodeBlock
|
||||||
elif match(p, tokenAfterNewline(p), "ai"):
|
elif match(p, tokenAfterNewline(p), "ai"):
|
||||||
result = rnHeadline
|
result = rnHeadline
|
||||||
elif p.tok[p.idx].symbol == "::":
|
elif p.tok[p.idx].symbol == "::":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue