Screenshot of above math formula on my device
Hey Mr.Price I created a fresh new react project & added your code in it. On my device the math formula was rendered perfectly fine. It did not "truncated and moved down". I've attached a screenshot for reference.
Didn't face the issue that you are facing.
It appears there's some styles in your app that are reducing your canvas height. If you can share some more info about your app may be I'll be able to help you out.
By the way here's my package versions "html2canvas": "^.4.1", "react-katex": "^3.01"