So, my math was rendered badly due to old katex version which I fixed by
installing katex into my own project using this and then I copied the newly
installed version into markdown-it-math/node_modules which was made
to compromise different version (I think) - then it rendered everything correctly.
"dependencies": {
"katex": "^0.6.0"
},
In conclusion... changing the version to 0.15.1 fixex styling problem
So, my math was rendered badly due to old katex version which I fixed by installing katex into my own project using this and then I copied the newly installed version into markdown-it-math/node_modules which was made to compromise different version (I think) - then it rendered everything correctly.
In conclusion... changing the version to 0.15.1 fixex styling problem