fix: rendering emojis

This commit is contained in:
qingwei.li 2017-02-07 20:17:12 +08:00
commit 8c7e4d7866
3 changed files with 3 additions and 1 deletions

View file

@ -39,7 +39,7 @@ export function init () {
renderer.code = function (code, lang = '') {
const hl = Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)
return `<pre v-pre data-lang="${lang}"><code class="lang-${lang}">${hl.replace(/:/g, '__colon__')}</code></pre>`
return `<pre v-pre data-lang="${lang}"><code class="lang-${lang}">${hl}</code></pre>`
}
renderer.link = function (href, title, text) {
if (!/:/.test(href)) {