update verbatim for static HTML (#96)

This commit is contained in:
liuxiaodong 2019-05-16 00:36:22 +08:00 • committed by Andreas Rumpf
commit ad3c0a63ee

View file

@ -379,6 +379,8 @@ proc add*(result: var string, n: VNode, indent = 0, indWidth = 2) =
if n.kind == VNodeKind.text:
result.addEscaped(n.text)
elif n.kind == VNodeKind.verbatim:
result.add(n.text)
else:
let kind = $n.kind
result.add('<')