Skip to content

Commit e673916

Browse files
authored
fix(website): copy button on website (#2879)
fix: copy button on website
1 parent 3e745c1 commit e673916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/components/mdx-components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const SnippetItem = ({
2828
id: string
2929
}) => {
3030
const content = useMDX(body.code)
31-
const textContent = body.raw.split("\n").slice(1, -2).join("\n")
31+
const textContent = body.raw.split("\n").slice(1, -1).join("\n")
3232
return (
3333
<div className="prose" id="snippet" data-framework={id}>
3434
{content}

0 commit comments

Comments
 (0)