🚧 remove extra title
This commit is contained in:
parent
c05b9a17f4
commit
e896b21319
43 changed files with 4 additions and 132 deletions
|
@ -6,7 +6,7 @@ import re
|
|||
from pathvalidate import validate_filename
|
||||
import os
|
||||
|
||||
|
||||
include_title = False
|
||||
output_dir = "recipes-md"
|
||||
|
||||
def valid_duration(duration):
|
||||
|
@ -30,8 +30,9 @@ def parse_duration(duration):
|
|||
def format_recipe_to_markdown(recipe):
|
||||
md = []
|
||||
|
||||
# Title
|
||||
md.append(f"# {recipe.get('name', 'Untitled Recipe')}")
|
||||
# Title (may be implicit by filename)
|
||||
if include_title:
|
||||
md.append(f"# {recipe.get('name', 'Untitled Recipe')}")
|
||||
|
||||
# Description
|
||||
if 'description' in recipe:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue