* RST: fix directive with fields (#16490) * Update tests/stdlib/trstgen.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
parent
6d442a40a6
commit
e70ac0f34c
2 changed files with 13 additions and 1 deletions
|
|
@ -535,6 +535,17 @@ Test1
|
|||
doAssert count(output1, "<ul ") == 1
|
||||
doAssert count(output1, "</ul>") == 1
|
||||
|
||||
test "Nim (RST extension) code-block":
|
||||
# check that presence of fields doesn't consume the following text as
|
||||
# its code (which is a literal block)
|
||||
let input0 = dedent """
|
||||
.. code-block:: nim
|
||||
:number-lines: 0
|
||||
|
||||
Paragraph1"""
|
||||
let output0 = rstToHtml(input0, {roSupportMarkdown}, defaultConfig())
|
||||
doAssert "<p>Paragraph1</p>" in output0
|
||||
|
||||
test "RST admonitions":
|
||||
# check that all admonitions are implemented
|
||||
let input0 = dedent """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue