mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-04-29 18:06:04 +08:00
fix: github assets url (#774)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import {inBrowser} from '../util/env'
|
import {inBrowser} from '../util/env'
|
||||||
|
|
||||||
function replace(m, $1) {
|
function replace(m, $1) {
|
||||||
return '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/' + $1 + '.png" alt="' + $1 + '" />'
|
return '<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/' + $1 + '.png" alt="' + $1 + '" />'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function emojify(text) {
|
export function emojify(text) {
|
||||||
|
|||||||
@@ -892,7 +892,7 @@ const AllGithubEmoji = [
|
|||||||
window.emojify = function (match, $1) {
|
window.emojify = function (match, $1) {
|
||||||
return AllGithubEmoji.indexOf($1) === -1 ?
|
return AllGithubEmoji.indexOf($1) === -1 ?
|
||||||
match :
|
match :
|
||||||
'<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/' +
|
'<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/' +
|
||||||
$1 +
|
$1 +
|
||||||
'.png" alt="' +
|
'.png" alt="' +
|
||||||
$1 +
|
$1 +
|
||||||
|
|||||||
Reference in New Issue
Block a user