feat: add custom code tag to markdown
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user