make rst.nim use object variant (#17138)

* make rst.nim use object variant

* add workaround

* fix mistake
This commit is contained in:
Andrey Makarov
2021-02-22 13:00:31 +03:00
committed by GitHub
parent f26c25737c
commit fab1618eb4
5 changed files with 159 additions and 132 deletions

View File

@@ -298,6 +298,11 @@ Some chapter
expect(EParseError):
let output8 = rstToHtml(input8, {roSupportMarkdown}, defaultConfig())
test "RST inline text":
let input1 = "GC_step"
let output1 = input1.toHtml
doAssert output1 == "GC_step"
test "RST links":
let input1 = """
Want to learn about `my favorite programming language`_?