feat: add custom code tag to markdown

This commit is contained in:
Stevan Freeborn
2023-04-09 14:50:50 -05:00
parent ae44fe7e07
commit 4c6257012d
12 changed files with 189 additions and 115 deletions
+15
View File
@@ -0,0 +1,15 @@
import styles from './Code.module.css';
export default function Code({
children,
language,
}: {
children: string;
language: string;
}) {
return (
<pre className={styles.pre}>
<code className={styles.code}>{children}</code>
</pre>
);
}