mirror of https://gitlab.com/curben/blog
				
				
				
			fix(image): avoid prepending '/img/' to svg path
This commit is contained in:
		
							parent
							
								
									1b77cdd383
								
							
						
					
					
						commit
						8a3c90641b
					
				|  | @ -11,6 +11,8 @@ | |||
| 
 | ||||
| hexo.extend.filter.register('marked:renderer', (renderer) => { | ||||
|   renderer.image = (href, title, alt) => { | ||||
|     if (href.endsWith('.svg')) return `<img src="${href}" alt="${alt}">` | ||||
| 
 | ||||
|     if (!alt) alt = '' | ||||
|     if (!title) title = alt | ||||
|     let modern = href | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue