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:
@@ -14,7 +14,7 @@ import type { BundledLanguage } from "shiki/bundle/web";
|
|||||||
import TurndownService from "turndown";
|
import TurndownService from "turndown";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import * as turndownPluginGfm from "turndown-plugin-gfm";
|
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 { H1, H2, H3 } from "./components/Headings";
|
||||||
import { TableOfContents } from "./components/TableOfContents";
|
import { TableOfContents } from "./components/TableOfContents";
|
||||||
import { ZoomableImage } from "./components/ZoomableImage";
|
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"
|
className="object-cover max-w-lg mx-auto rounded-lg border max-lg:w-64 border-border overflow-hidden"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
code: ({ className, children }) => {
|
// code: ({ className, children }) => {
|
||||||
const match = /language-(\w+)/.exec(className || "");
|
// const match = /language-(\w+)/.exec(className || "");
|
||||||
return (
|
// return (
|
||||||
<CodeBlock
|
// <CodeBlock
|
||||||
lang={match ? (match[1] as BundledLanguage) : "ts"}
|
// lang={match ? (match[1] as BundledLanguage) : "ts"}
|
||||||
code={children?.toString() || ""}
|
// code={children?.toString() || ""}
|
||||||
/>
|
// />
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user