Petrosinella

[2] A pregnant woman steals parsley from the garden of an ogress (orca) and agrees to give up her child when she is caught.

Eventually, the prince makes his way to the tower and climbs up Petrosinella's hair after he imitates the ogress's voice.

The couple continues to see each other every night until a neighbor tells the ogress of the romance.

With the ogress defeated and the couple free, Petrosinella and the prince get married with the permission of his father.

[4] Notably, the Grimms' version does not mention the maiden's learning "magic arts", nor does it include an escape scene where she uses these powers to save both her and the prince from a pursuing villain.

[3] Furthermore, Basile does not include the maiden's out of wedlock pregnancy nor the birth of twins, which former is only mentioned explicitly in the 1812 iteration.