We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb43a2b commit 1d35ff3Copy full SHA for 1d35ff3
src/app/docs/[id]/page.tsx
@@ -86,6 +86,7 @@ export default async function DocDetails({
86
remarkPlugins={[remarkGfm]}
87
components={{
88
code({ node, className, children, ...props }) {
89
+ /* 正規表現を使って className から言語名を抽出する */
90
const match = /language-(\w+)/.exec(className || "");
91
return match ? (
92
<SyntaxHighlighter
0 commit comments