docgen: support markdown link syntax; enable markdown extensions

This commit is contained in:
Araq 2019-01-11 14:20:34 +01:00 • committed by Andreas Rumpf
commit 5ef5dc86c5
6 changed files with 37 additions and 4 deletions

View file

@ -89,6 +89,9 @@ proc lastSon*(n: PRstNode): PRstNode =
proc add*(father, son: PRstNode) =
add(father.sons, son)
proc add*(father: PRstNode; s: string) =
add(father.sons, newRstNode(rnLeaf, s))
proc addIfNotNil*(father, son: PRstNode) =
if son != nil: add(father, son)