sjDan2003 / Cookbook

0 stars 0 forks source link

Correctly parse itemListElement Ingredient lists #5

Open sjDan2003 opened 5 years ago

sjDan2003 commented 5 years ago

While testing https://bakingamoment.com/rhubarb-tart/, I see that the ingredients were not in a simple list format or as one big string. This should be detected and handled seperatly. An example is attached to this bug. 'itemListElement': [{'text': 'Place the flour, powdered sugar, and salt in the bowl of a food processor and pulse to combine.  ', '@type': 'HowToStep'}, {'text': 'Add the butter, and process until the mixture resembles coarse meal.', '@type': 'HowToStep'}, {'text': 'Combine the egg, cream, and vanilla in a small bowl and add to the flour/butter mixture, while running the machine.  ', '@type': 'HowToStep'}, {'text': 'Continue to process until the dough comes together into a ball.', '@type': 'HowToStep'}, {'text': 'Wrap the dough in plastic wrap and chill in the refrigerator for a minimum of 30 minutes.', '@type': 'HowToStep'}, {'text': 'Preheat the oven to 375 degrees F.  ', '@type': 'HowToStep'}, {'text': 'Roll the dough to a thickness of about 3/16-inch.  ', '@type': 'HowToStep'}, {'text': 'Place it in the tart pan, trimming away any excess.  ', '@type': 'HowToStep'}, {'text': 'Line with foil and ceramic pie weights or dried beans.  ', '@type': 'HowToStep'}, {'text': 'Bake for 15 minutes or until just beginning to turn golden.', '@type': 'HowToStep'}], '@type': 'HowToSection', 'name': 'To make the shortbread crust'}