fix :number-lines: regression (#17639)

This commit is contained in:
Andrey Makarov 2021-04-05 09:33:06 +03:00 • committed by GitHub
commit ca405167ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -1089,6 +1089,16 @@ Test1
let output0 = input0.toHtml
doAssert "<p>Paragraph1</p>" in output0
test "Nim code-block :number-lines:":
let input = dedent """
.. code-block:: nim
:number-lines: 55
x
y
"""
check "<pre class=\"line-nums\">55\n56\n</pre>" in input.toHtml
test "RST admonitions":
# check that all admonitions are implemented
let input0 = dedent """