mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
chore: temporarily disable CodeBlock component in blog post page
This commit is contained in:
parent
3ae8888ef9
commit
c9d02a98d4
@ -14,7 +14,7 @@ import type { BundledLanguage } from "shiki/bundle/web";
|
||||
import TurndownService from "turndown";
|
||||
// @ts-ignore
|
||||
import * as turndownPluginGfm from "turndown-plugin-gfm";
|
||||
import { CodeBlock } from "./components/CodeBlock";
|
||||
// import { CodeBlock } from "./components/CodeBlock";
|
||||
import { H1, H2, H3 } from "./components/Headings";
|
||||
import { TableOfContents } from "./components/TableOfContents";
|
||||
import { ZoomableImage } from "./components/ZoomableImage";
|
||||
@ -178,15 +178,15 @@ export default async function BlogPostPage({ params }: Props) {
|
||||
className="object-cover max-w-lg mx-auto rounded-lg border max-lg:w-64 border-border overflow-hidden"
|
||||
/>
|
||||
),
|
||||
code: ({ className, children }) => {
|
||||
const match = /language-(\w+)/.exec(className || "");
|
||||
return (
|
||||
<CodeBlock
|
||||
lang={match ? (match[1] as BundledLanguage) : "ts"}
|
||||
code={children?.toString() || ""}
|
||||
/>
|
||||
);
|
||||
},
|
||||
// code: ({ className, children }) => {
|
||||
// const match = /language-(\w+)/.exec(className || "");
|
||||
// return (
|
||||
// <CodeBlock
|
||||
// lang={match ? (match[1] as BundledLanguage) : "ts"}
|
||||
// code={children?.toString() || ""}
|
||||
// />
|
||||
// );
|
||||
// },
|
||||
};
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user