bump 1.10.0

This commit is contained in:
qingwei.li 2017-01-25 15:08:28 +08:00
commit 46967e73bf
7 changed files with 14 additions and 6 deletions

View file

@ -2528,6 +2528,10 @@ function init (options) {
return ("<p>" + text + "</p>")
};
renderer.text = function (text) {
return text.replace(/:(\S*?):/ig, '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/$1.png" alt="$1" />')
};
if (typeof OPTIONS$1.markdown === 'function') {
markdown.setOptions({ renderer: renderer });
markdown = OPTIONS$1.markdown.call(this, markdown);