Skip to content

exporter_markdown

Handles exporting recipes to Markdown format.

MarkdownExporter

MarkdownExporter(image_storage: ImageStoragePort | None = None)

Secondary adapter that implements MarkdownExporterPort.

save

save(recipes: list[RecipeEntity], output_file: str) -> None

Export a list of RecipeEntity objects to a Markdown file.

to_string

to_string(recipes: list[RecipeEntity]) -> str

Convert a list of RecipeEntity objects to a Markdown string.

to_zip_bytes

to_zip_bytes(recipes: list[RecipeEntity]) -> bytes

Create a ZIP archive containing the Markdown file and image files.