Skip to content

Commit 03acfa8

Browse files
committed
fix: cut out content, close #25
1 parent 8be0ded commit 03acfa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ function render (tree, options) {
103103
default:
104104
result += '>'
105105
}
106+
107+
result += node.content ? html(node.content) : ''
106108
} else {
107109
result += '<' + tag + (node.attrs ? attrs(node.attrs) : '') + '>' + (node.content ? html(node.content) : '') + '</' + tag + '>'
108110
}

0 commit comments

Comments
 (0)