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.