parse RST headings when EOF follows them (#17014)
This commit is contained in:
parent
66bf9b18b0
commit
8053ccde2f
2 changed files with 12 additions and 3 deletions
|
|
@ -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 = """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue