mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
parse RST headings when EOF follows them (#17014)
This commit is contained in:
@@ -271,6 +271,13 @@ Some chapter
|
||||
let output5 = rstToHtml(input5, {roSupportMarkdown}, defaultConfig())
|
||||
doAssert ""punctuation symbols"" in output5 and "<h1" in output5
|
||||
|
||||
# check that EOF after adornment does not prevent it parsing as heading
|
||||
let input6 = dedent """
|
||||
Some chapter
|
||||
------------"""
|
||||
let output6 = rstToHtml(input6, {roSupportMarkdown}, defaultConfig())
|
||||
doAssert "<h1 id=\"some-chapter\">Some chapter</h1>" in output6
|
||||
|
||||
|
||||
test "RST links":
|
||||
let input1 = """
|
||||
|
||||
Reference in New Issue
Block a user