Skip to main content

Module util

Module util 

Source

Modules§

cooklang_to_cooklang
Format a recipe as cooklang
cooklang_to_human
Format a recipe for humans to read
cooklang_to_latex
cooklang_to_md
Format a recipe as markdown
cooklang_to_schema
cooklang_to_typst
format

Constants§

RECIPE_SCALING_DELIMITER

Statics§

PARSER

Functions§

extract_ingredients
get_recipe
parse_recipe_from_entry
Parse a Recipe from a RecipeEntry with the given scaling factor
resolve_to_absolute_path
Resolves a path to an absolute path. If the input path is already absolute, it is returned as is. Otherwise, it is resolved relative to the current working directory. The path is normalized to remove any . or .. components.
split_recipe_name_and_scaling_factor
write_to_output