fix(backend): rendering issue
This commit is contained in:
@@ -46,7 +46,10 @@ export const unitsOfMeasure = {
|
||||
export function parseIngredients(
|
||||
text: string,
|
||||
): (Ingredient | IngredientGroup)[] {
|
||||
const cleanText = removeMarkdownFormatting(text);
|
||||
const cleanText = removeMarkdownFormatting(text)
|
||||
.split("\n")
|
||||
.map((line) => line.trim().replace(/^-/, ""))
|
||||
.join("\n");
|
||||
|
||||
const ingredients = parseIngredient(cleanText, {
|
||||
normalizeUOM: true,
|
||||
|
||||
Reference in New Issue
Block a user