diff --git a/themes/chameleon/scripts/image.js b/themes/chameleon/scripts/image.js index bf43959..4da9280 100644 --- a/themes/chameleon/scripts/image.js +++ b/themes/chameleon/scripts/image.js @@ -11,6 +11,8 @@ hexo.extend.filter.register('marked:renderer', (renderer) => { renderer.image = (href, title, alt) => { + if (href.endsWith('.svg')) return `${alt}` + if (!alt) alt = '' if (!title) title = alt let modern = href