From 5e698edc94c1ecc1eb07df4ad8bddbc92a7f3921 Mon Sep 17 00:00:00 2001 From: abiwab Date: Wed, 25 Nov 2026 18:35:28 +0100 Subject: [PATCH] chore(docs): regenerate llms-full.txt --- packages/docs/public/llms-full.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/docs/public/llms-full.txt b/packages/docs/public/llms-full.txt index 175d0e46..96218279 100644 --- a/packages/docs/public/llms-full.txt +++ b/packages/docs/public/llms-full.txt @@ -1812,6 +1812,18 @@ If you also use the whole parent ingredient directly (e.g., cutting a whole lemo ``` > 🛒 **Shopping List**: 3 Lemons. +### 4. One total per unit +*(since v1.5.2)* + +The three rules above add up amounts of one unit, or of units that convert into each other (`g` and `kg`, `cup` and `tbsp`). When the parent is used in units that don't (`100 g` here, `2` there), Gram never mixes them: it keeps one entry per unit, each with the parts drawn in that unit, like any ingredient bought in two units. + +```gram +[Melt] @butter{100 g}. // 100 g of butter + +[Brown] @brown butter{1}<@butter{2}. // 2 pieces of butter +``` +> 🛒 **Shopping List**: Butter, 2, and Butter, 100 g. + ## Shopping list output The resulting shopping list structure handles composite ingredients gracefully, allowing front-end applications to display them hierarchically. @@ -1832,6 +1844,8 @@ For the example above, the JSON output would look like this: } ``` +A parent drawn in a unit carries it in `unit` (`"unit": "g"`; no `unit` means pieces), and each entry of a parent used in several units carries `"multiUnit": true` *(since v1.5.2)*. + ## Section ingredient lists Unlike the shopping list, a section's own ingredient list is flat, not nested — but it still shows which parent a composite child came from, appended in parentheses right after the child's name: -- 2.54.0