We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe5a4f4 + cf0c057 commit 116a73dCopy full SHA for 116a73d
1 file changed
app/components/markdown.tsx
@@ -163,7 +163,7 @@ export function PreCode(props: { children: any }) {
163
);
164
}
165
166
-function CustomCode(props: { children: any }) {
+function CustomCode(props: { children: any; className?: string }) {
167
const ref = useRef<HTMLPreElement>(null);
168
const [collapsed, setCollapsed] = useState(true);
169
const [showToggle, setShowToggle] = useState(false);
@@ -182,6 +182,7 @@ function CustomCode(props: { children: any }) {
182
return (
183
<>
184
<code
185
+ className={props?.className}
186
ref={ref}
187
style={{
188
maxHeight: collapsed ? "400px" : "none",
0 commit comments