From c639eae27060533bd45df35ee964c5619eca59b1 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Tue, 5 May 2026 08:07:23 +0200 Subject: [PATCH] fix: add note about duplicated parseRecipeMarkdown function and TODO for extraction --- backend/src/recipes/recipes.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/src/recipes/recipes.service.ts b/backend/src/recipes/recipes.service.ts index 89d81a2..5c812aa 100644 --- a/backend/src/recipes/recipes.service.ts +++ b/backend/src/recipes/recipes.service.ts @@ -23,6 +23,14 @@ interface ParsedRecipe { // Parser Functions // ============================================================================ +/** + * NOTERING: Denna parseRecipeMarkdown-funktion är duplicerad i + * recipe-app/backend/src/common/utils/recipe-parser.ts + * + * TODO: Extrahera till shared npm-paket eller flytta till en location + * som båda kan importera från för att undvika version-drift. + */ + /** * Parsar ett recept i Markdown-format och extraherar namn, beskrivning, * instruktioner och ingredienser.