mirror of https://gitlab.com/curben/blog
fix(image.js): syntax
This commit is contained in:
parent
8394f7eeea
commit
8c5fb258de
|
@ -13,7 +13,7 @@ hexo.extend.filter.register('marked:renderer', (renderer) => {
|
||||||
if (!alt) alt = ''
|
if (!alt) alt = ''
|
||||||
if (!title) title = alt
|
if (!title) title = alt
|
||||||
|
|
||||||
if (href.endsWith('.svg')) return `<img class="svg" src="${href}" alt="${alt} title="${title}">`
|
if (href.endsWith('.svg')) return `<img class="svg" src="${href}" alt="${alt}" title="${title}">`
|
||||||
|
|
||||||
// embed external image
|
// embed external image
|
||||||
if (!href.startsWith('20')) return `<img src="${href}" alt="${alt}" title="${title}">`
|
if (!href.startsWith('20')) return `<img src="${href}" alt="${alt}" title="${title}">`
|
||||||
|
|
Loading…
Reference in New Issue