mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-30 18:41:45 +00:00
make rst.nim use object variant (#17138)
* make rst.nim use object variant * add workaround * fix mistake
This commit is contained in:
@@ -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`_?
|
||||
|
||||
Reference in New Issue
Block a user