fix(theme): copy button has wrong tag closing syntax (#816)

pull/823/head
Shinigami 2 years ago committed by GitHub
parent 1f1e298864
commit 75ca9e4302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,6 +15,6 @@ export const preWrapperPlugin = (md: MarkdownIt) => {
const [tokens, idx] = args
const token = tokens[idx]
const rawCode = fence(...args)
return `<div class="language-${token.info.trim()}"><span class="copy" />${rawCode}</div>`
return `<div class="language-${token.info.trim()}"><span class="copy"></span>${rawCode}</div>`
}
}

Loading…
Cancel
Save