table to list servings, gross and net weight

This commit is contained in:
neingeist 2026-04-23 19:26:12 +02:00
parent 5b6e7510fe
commit cf6c3a9d6f
5 changed files with 185 additions and 78 deletions

11
lib.py
View file

@ -19,3 +19,14 @@ def read_recipes(keyword=None):
]
return recipes
def recipe_url(recipe_id: int) -> str:
return f"{TANDOOR_URL}/recipe/{recipe_id}"
def markdown_link(text: str, url: str) -> str:
return f"[{text}]({url})"
def markdown_alert(text: str) -> str:
return f"::: danger\n{text}\n:::"