It’s possible notability actually uses the same API (although it doesn’t seem like it), but the mathpix api is great for this. It gives you back latex in whatever form you want. They have a desktop client but you can get more free requests direct with the API.
It lets me just snip any math and paste into my markdown editor (that renders latex) then I’ll often change one or two broken symbols and I’m off to the races.
What's your workflow to go from handwriting (on iPad?) to mathpix to desktop?
Disclaimer: I work for Mathpix
Sometimes I also copy with notability and paste on my Mac through iCloud clipboard sharing but that feature seems to work about 25-50% of the time.
I use mathpix for textbooks, websites and handwritten math but if I know beforehand I’m going to need it in latex I generally find it easier just to type.