From 35bd39a9d0eef1396b2f6a562430ec63e36b7921 Mon Sep 17 00:00:00 2001 From: Andrey Makarov Date: Mon, 15 Feb 2021 16:12:40 +0300 Subject: RST: implement footnotes and citations (#16960) * RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf --- tests/stdlib/trstgen.nim | 208 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) (limited to 'tests/stdlib/trstgen.nim') diff --git a/tests/stdlib/trstgen.nim b/tests/stdlib/trstgen.nim index 0f28fb4cc..03911f6d1 100644 --- a/tests/stdlib/trstgen.nim +++ b/tests/stdlib/trstgen.nim @@ -8,6 +8,9 @@ import ../../lib/packages/docutils/rstgen import ../../lib/packages/docutils/rst import unittest, strutils, strtabs +proc toHtml(input: string): string = + rstToHtml(input, {roSupportMarkdown}, defaultConfig()) + suite "YAML syntax highlighting": test "Basics": let input = """.. code-block:: yaml @@ -572,6 +575,203 @@ Test1 doAssert count(output1, "