This commit is contained in:
Juan Carlos
2020-03-29 09:39:58 -03:00
committed by GitHub
parent cfa1a827dc
commit 8c719fce54

View File

@@ -1115,10 +1115,10 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
"\\href{$2}{$1}", [tmp0, tmp1])
of rnDirArg, rnRaw: renderAux(d, n, result)
of rnRawHtml:
if d.target != outLatex:
if d.target != outLatex and not lastSon(n).isNil:
result.add addNodes(lastSon(n))
of rnRawLatex:
if d.target == outLatex:
if d.target == outLatex and not lastSon(n).isNil:
result.add addNodes(lastSon(n))
of rnImage, rnFigure: renderImage(d, n, result)