update verbatim for static HTML (#96)
This commit is contained in:
parent
20fe35355c
commit
ad3c0a63ee
1 changed files with 2 additions and 0 deletions
|
|
@ -379,6 +379,8 @@ proc add*(result: var string, n: VNode, indent = 0, indWidth = 2) =
|
||||||
|
|
||||||
if n.kind == VNodeKind.text:
|
if n.kind == VNodeKind.text:
|
||||||
result.addEscaped(n.text)
|
result.addEscaped(n.text)
|
||||||
|
elif n.kind == VNodeKind.verbatim:
|
||||||
|
result.add(n.text)
|
||||||
else:
|
else:
|
||||||
let kind = $n.kind
|
let kind = $n.kind
|
||||||
result.add('<')
|
result.add('<')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue