When the character ª is available, the abbreviation of María is Mª; when it’s not, Ma. can be used. But the words after María are usually not “middle names”, that’s an English concept and not a Spanish one.
I didn’t feel like explaining again, so searched for one of my previous explanations on the subject of nombres compuestos.