chore(docs): regenerate llms-full.txt #258

Merged
abiwab merged 1 commit from chore/docs-llms-full into main 2026-11-25 18:41:31 +01:00

View file

@ -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: