Magic Bitter, Magic Sweet by Charlie N. Holmberg is on sale in ebook format for $1.99. If you read the description you can see inspiration from Gingerbread Man and Hansel and Gretel in its pages, at least the food tropes from those tales.
Maire is a baker with an extraordinary gift: she can infuse her treats with emotions and abilities, which are then passed on to those who eat them. She doesn’t know why she can do this and remembers nothing of who she is or where she came from.
When marauders raid her town, Maire is captured and sold to the eccentric Allemas, who enslaves her and demands that she produce sinister confections, including a witch’s gingerbread cottage, a living cookie boy, and size-altering cakes.
During her captivity, Maire is visited by Fyel, a ghostly being who is reluctant to reveal his connection to her. The more often they meet, the more her memories return, and she begins to piece together who and what she really is—as well as past mistakes that yield cosmic consequences.
From the author of The Paper Magician series comes a haunting and otherworldly tale of folly and consequence, forgiveness and redemption.