feat: copy button

This commit is contained in:
robin committed 2026-08-05 12:21:40 +02:00
1 parent da99471ca5
commit ed2c47aab2
4 files changed
+91 -25

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import { getWikiPageBySlug } from '@/lib/wiki';
import { notFound } from 'next/navigation';
import { MDXRemote } from 'next-mdx-remote/rsc';
import rehypePrettyCode from 'rehype-pretty-code';
import { Callout, Grid, Card, Steps, Step, InlineCode } from '@/components/mdx-components';
import { Callout, Grid, Card, Steps, Step, InlineCode, CodeBlockContainer } from '@/components/mdx-components';
const mdxOptions = {
mdxOptions: {
@@ -25,9 +25,9 @@ const mdxComponents = {
Card,
Steps,
Step,
// Custom Typography Überschreibungen
code: InlineCode,
pre: CodeBlockContainer,
h1: (props: any) => <h1 className="text-3xl font-bold text-white mt-8 mb-4 border-b border-zinc-800 pb-3" {...props} />,
h2: (props: any) => <h2 className="text-2xl font-bold text-white mt-10 mb-4" {...props} />,
h3: (props: any) => <h3 className="text-xl font-semibold text-white mt-6 mb-3" {...props} />,