feat: initialize Intellecton portal repository under GitOps Covenant
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import katex from 'katex';
|
||||
|
||||
export default function Katex({ math, block = false }) {
|
||||
const html = katex.renderToString(math, {
|
||||
throwOnError: false,
|
||||
displayMode: block,
|
||||
});
|
||||
|
||||
return <span dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
}
|
||||
Reference in New Issue
Block a user