fix code block issue

This commit is contained in:
Jonathan Summers-Muir committed 2022-12-11 03:25:02 +08:00
1 parent f29e7f63b0
commit 84a4856097
1 file changed
+5 -5
+5 -5
View File
@@ -54,12 +54,12 @@ const components = {
{props.children}
</Heading>
),
pre: (props: any) => {
const linesToHighlight = parseNumericRange(props.lines ?? '')
return <CodeBlock {...props} linesToHighlight={linesToHighlight} />
},
// pre: (props: any) => {
// const linesToHighlight = parseNumericRange(props.lines ?? '')
// return <CodeBlock {...props} linesToHighlight={linesToHighlight} />
// },
mono: (props: any) => <code className="text-sm">{props.children}</code>,
inlineCode: (props: { children: string }) => <InlineCodeTag {...props} />,
// inlineCode: (props: { children: string }) => <InlineCodeTag {...props} />,
RefSubLayout,
CH,
code: (props: any) => <CodeBlock {...props} />,