Markdown code blocks part 2; migrate Nim Manual (#20080)

* Change headings underscored by `~~~` to `###`

* Markdown code blocks part 2; migrate Nim Manual
This commit is contained in:
Andrey Makarov 2022-07-25 19:29:52 +03:00 • committed by GitHub
commit 62b81d7f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 881 additions and 670 deletions

View file

@ -552,7 +552,7 @@ context1
context2
"""
let output1 = input1.toHtml
let output1 = input1.toHtml(preferRst)
doAssert "<hr" in output1
let input2 = """
@ -1616,3 +1616,8 @@ suite "local file inclusion":
discard ".. code-block:: nim\n :file: ./readme.md".toHtml(error=error)
check(error[] == "input(2, 20) Error: disabled directive: 'file'")
test "code-block file directive is disabled - Markdown":
var error = new string
discard "```nim file = ./readme.md\n```".toHtml(error=error)
check(error[] == "input(1, 23) Error: disabled directive: 'file'")