self.onmessage = function(data) {
        var msg = data.data;

        if (markdown[msg.msg]) {
            return markdown[msg.msg](msg.data)