diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2021-02-12 17:08:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 15:08:09 +0100 |
commit | 8053ccde2f1c7fb5eefa9e73dfe34ee1f7bd8dce (patch) | |
tree | 2d7489114c91750658765865caa24a21b2313c3b /tests/stdlib/trstgen.nim | |
parent | 66bf9b18b0e2c32647c298bdce75516ca69b870c (diff) | |
download | Nim-8053ccde2f1c7fb5eefa9e73dfe34ee1f7bd8dce.tar.gz |
parse RST headings when EOF follows them (#17014)
Diffstat (limited to 'tests/stdlib/trstgen.nim')
-rw-r--r-- | tests/stdlib/trstgen.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stdlib/trstgen.nim b/tests/stdlib/trstgen.nim index 89bf107ca..0f28fb4cc 100644 --- a/tests/stdlib/trstgen.nim +++ b/tests/stdlib/trstgen.nim @@ -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 = """ |