I'm trying to use the package react-latex to create pretty mathematical notation. Whenever I type the latex string, it repeats the text twice - once in pretty latex rendering, once in non-pretty latex rendering. For example the code below produces the text twice once as an exponent and once as an ugly "a2"
import Latex from 'react-latex'
export default function Home() {
<div>
<Latex> $$\a^2 $$</Latex>
</div>
}
Looks like there is an 'output' option. It displays both by default.
https://katex.org/docs/options.html
The docs for the react component aren't very clear but maybe try