As per README.md the expected behaviour is to add cloudflare served stylesheet link in head as
<head>
<link
href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css"
rel="stylesheet"
/>
</head>
my questions are :
- instead of defining the stylesheet in head, can i add katex npm package to my code and import stylesheet defined in its dist folder ? something like this
import Latex from "react-latex";
import "katex/dist/katex.min.css";
const MathRender = ({ src }) => {
return <Latex>{src}</Latex>;
};
export default MathRender;
- if i can add it, then whats the difference between the both ?
Project Details:
web app built with create-react-app