diff --git a/2_to_markdown.py b/2_to_markdown.py index c1bc094..c74827d 100644 --- a/2_to_markdown.py +++ b/2_to_markdown.py @@ -81,9 +81,10 @@ def format_recipe_to_markdown(recipe): md.append(f"* {p}\n") # Ingredients - md.append("\n## Zutaten (gesamt)") - for step in recipe["steps"]: - md += md_for_step_ingredients(step) + if recipe["show_ingredient_overview"]: + md.append("\n## Zutaten (gesamt)") + for step in recipe["steps"]: + md += md_for_step_ingredients(step) # Instructions if "steps" in recipe: