clarklab / chowdown

Simple recipes in Markdown format
https://chowdown.io
The Unlicense
621 stars 201 forks source link

feature-request: ingredient sub-sections / sub-lists #54

Open macbrayne opened 3 years ago

macbrayne commented 3 years ago

The app currently doesn't have a way to divide the ingredient list up which can be helpful in case of cakes for example in which you prepare the topping seperately. This could be achieved by nesting lists natively in yaml. Currently nested lists are not accepted as valid yaml.

Example:

- Test
-   - 4 eggs
    - 1/4 cup heavy cream
    - 2 tsp vanilla 
    - sprinkle of sugar
    - 4 cups Nilla Wafers Minis

(according to this stackoverflow post) shows as

instead of

clarklab commented 3 years ago

Hello! Currently this feature is supported with "component recipes" where you can roll up multiple smaller recipes into a final recipe. An example can be seen on the main site with the Red Berry Tart recipe: https://chowdown.io/recipes/red-berry-tart.html (made up of three smaller recipes for the crust, topping, and filling).

In the future if we ever rebuild, maybe we can take a look at native nested lists. Currently I chose component route so that the sub recipes could be included in a number of other final recipes.