rst: add support for markdown tables (#15854)
* rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
This commit is contained in:
parent
d8e7caf5dd
commit
ee78d76108
6 changed files with 116 additions and 16 deletions
|
|
@ -1094,7 +1094,7 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
|
|||
of rnBlockQuote:
|
||||
renderAux(d, n, "<blockquote><p>$1</p></blockquote>\n",
|
||||
"\\begin{quote}$1\\end{quote}\n", result)
|
||||
of rnTable, rnGridTable:
|
||||
of rnTable, rnGridTable, rnMarkdownTable:
|
||||
renderAux(d, n,
|
||||
"<table border=\"1\" class=\"docutils\">$1</table>",
|
||||
"\\begin{table}\\begin{rsttab}{" &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue