-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ingredient grouping #311
Comments
I think this has been discussed before, e.g., in #285 . Unfortunately, although I’d really like to see this feature, it seems not to be supported by schema.org. Adding an ingredient separating the groups with an ingredient with
|
I opened the PR schemaorg/schemaorg#2738 against Schema.org. If they accept it, there should be an option to group the ingredients accordingly. Until that is decided, I suggest to postpone this issue here. Then, we can decide how to proceed further. |
Thanks for the clarification. I'm sorry, that I didn't search the issues for this, so I could have found your answers already. |
I found an example that uses grouped ingredients. I don’t know if this conforms to the schema.org standard, but in this form we currently cannot import the recipe instructions at all: https://leitesculinaria.com/7759/recipes-pasteis-de-nata.html#recipe |
I just looked at it. The named recipe does only show in the website the ingredient grouping. The JSON has a straight list of ingredients. I have not tested it but the structure is sort of awkward they use for the JSON+LD. They define a complete graph of objects and link them together. See for yourself: json.txt. It could be a problem with our parser, I might say. |
sry I mixed up ingredients and instructions. my bad. the instructions are grouped and can't be imported correctly. however, the logic is probably the same (?) |
What do you mean by logic? In the Schema.org standard the instructions can be of type |
Okay, that I didn’t know. Then we should check why the instructions can’t be imported. The ingredients worked fine. I open a different issue for this - this doesn’t fit here. |
Allowing Markdown as discussed in #47 would instantly make this a heading. I would love this! |
You have to distinguish between ingredients and instructions. Here we are discussing things related to ingredients. The problem is the need of structure but the missing support by the standard. I will have a look there. The trick with In #47 the main point is adding images (the storage is an extended issue in this context) and related to instructions. BTW with #381 the description will be able to use markdown as well. |
I understood #47 (comment) as if Markdown should be allowed in ingredient fields as well. Reading it again now I think I got that wrong and, in fact, #47 is completely unrelated.
That's wonderful! Now just rendering markdown in any text field (read: ingredients as well) would do the trick for me, especially since it seems to be >80% result with <20% afford and it wouldn't stretch the standard too much. |
Please open a new feature request to keep track of that wish. |
there appears to be no progress on the relevant schema.org issues schemaorg/schemaorg#2628 and schemaorg/schemaorg#882 to be able to continue to enhance/develop nc/cookbook, would it be an option to store recipes in the cookbook assuming
|
It looks like one can achieve a visual separation of groups by using for ex. |
I would recommend using |
Is your feature request related to a problem? Please describe.
Some recipes have multiple parts to them (example here and therefore ingredients are grouped for individual parts of the meal. Currently i just have an additional ingredient line with ingredient group name in, but this makes seeing the grouping harder.
Describe the solution you'd like
Ability to group ingredients for specific parts of a recipe. eg Main meal: ingredient1, 2 & 3. Sauce: ingredient 4 & 5)
Describe alternatives you've considered
n/a
The text was updated successfully, but these errors were encountered: