From 85a87ac05f966517cb99bcfe30148f8d19db5fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20=C4=8Covi=C4=87?= Date: Sat, 29 Sep 2018 01:45:49 +0200 Subject: [PATCH] Change return type of renderHTML func in index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5687727..a780498 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ function renderHTML(html) { var result = htmlAST.childNodes.map(renderNode); - return result.length === 1 ? result[0] : result; + return result; } module.exports = renderHTML;