Skip to content

Commit

Permalink
fix(theme): copy button has wrong tag closing syntax (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jun 20, 2022
1 parent 1f1e298 commit 75ca9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/plugins/preWrapper.ts
Expand Up @@ -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>`
}
}

0 comments on commit 75ca9e4

Please sign in to comment.