UNPKG

mume-with-litvis

Version:

Fork of mume with added http://litvis.org/

22 lines 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = require("path"); const twemoji = require("twemoji"); /** * Replace emoji with svg. * @param $ */ function enhance($) { const html = twemoji.parse($.html(), { callback: (icon) => { return ("file://" + (0, path_1.resolve)(__dirname, "../../../node_modules/twemoji/2/svg") + "/" + icon + ".svg"); }, }); $.root().html(html); } exports.default = enhance; //# sourceMappingURL=emoji-to-svg.js.map