diff --git a/lib/parse.js b/lib/parse.js
index 5d81ef0..b8ab953 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -36,16 +36,14 @@ module.exports = function parse(html, options) {
inComponent = false;
}
}
- // check if this is a comment tag. if so, just return.
- if (tag.indexOf('';
+ html = '
Hi there!
';
parsed = HTML.parse(html);
t.deepEqual(parsed, [{
type: 'tag',
@@ -393,7 +393,15 @@ test('parse', function (t) {
attrs: {},
voidElement: false,
children: [
- { type: 'text', content: 'Hi '}
+ { type: 'text', content: 'Hi '},
+ { type: 'text', content: 'there'},
+ {
+ type: 'tag',
+ name: 'strong',
+ attrs: {},
+ voidElement: false,
+ children: [{ type: 'text', content: '!'}]
+ }
]
},{
type: 'tag',