mirror of https://gitlab.com/curben/blog
fix(heading-link): remove <desc> from svg
otherwise the text ends up on toc
This commit is contained in:
parent
756a86b58a
commit
cbcb12b38a
|
@ -11,7 +11,6 @@ const cheerio = require('cheerio')
|
||||||
hexo.extend.filter.register('after_render:html', (str) => {
|
hexo.extend.filter.register('after_render:html', (str) => {
|
||||||
const $ = cheerio.load(str)
|
const $ = cheerio.load(str)
|
||||||
const svg = `<svg height="0.8em" viewBox="15 15 1635 1635">
|
const svg = `<svg height="0.8em" viewBox="15 15 1635 1635">
|
||||||
<desc>Link icon</desc>
|
|
||||||
<use href="/svg/link.svg#link"/>
|
<use href="/svg/link.svg#link"/>
|
||||||
</svg>`
|
</svg>`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue