diff --git a/lib/rich-message.js b/lib/rich-message.js index 0987881..1dfa556 100644 --- a/lib/rich-message.js +++ b/lib/rich-message.js @@ -4,12 +4,9 @@ module.exports.mergeMessages = mergeMessages var emoji = require('markdown-it-emoji') var ghlink = require('ghlink') var higlight = require('highlight.js') -var htmlToVDom = require('html-to-vdom') var MarkdownIt = require('markdown-it') var twemoji = require('twemoji') var util = require('./util.js') -var VNode = require('virtual-dom/vnode/vnode') -var VText = require('virtual-dom/vnode/vtext') var md = new MarkdownIt({ linkify: true, @@ -32,15 +29,6 @@ md.renderer.rules.emoji = function (token, index) { return twemoji.parse(token[index].content) } -var convertHTML = htmlToVDom({ - VNode: VNode, - VText: VText -}) - -function makeVDom (html) { - return convertHTML('