fix(image.js): syntax

This commit is contained in:
MDLeom 2021-01-15 01:30:27 +00:00
parent 8394f7eeea
commit 8c5fb258de
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -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}">`