-
v.1.4.1
Stablereleased this
2026-11-14 17:54:11 +01:00 | 521 commits to main since this releaseBug fixes and improvements
- Parser: Section headers with leftover text after an anchor or intermediate (such as a multi-word
->&glazed rhubarbmissing braces) now raise a clear error instead of blaming the timer or turning the section into a step, and a section header on the last line with no trailing newline is now recognized. - Kitchen: Split quantities across two units (
@flour{1 cup 5 tbsp}) or prefixed with words (@flour{about 200g}) now raise anINVALID_UNITwarning instead of being misread or dropped when scaling (while unit-only descriptors like{1 tin of 400 g}or{a pinch}remain valid). - Analyzer: An ingredient whose unit holds a quantity of its own (
@tomatoes{1 tin of 400 g}) no longer falls back to the database's per-piece weight (which counted one tin as one tomato); its mass is reported as unknown until Gram parses the inner quantity. - Renderer: Hovering a preparation (
&dough) in HTML now highlights the entire section that makes it,formatFractionis now applied to ingredient quantities across recipe views, and ingredients written inkgormgno longer repeat their standardized mass next to them. - Renderer & CLI: Totals where you buy or read an overview (shopping list, recipe/section weight, nutrition base,
gram shop) convert metric amounts from 1000 g/ml up tokgorl(3.9 kginstead of3900 g), while steps, section ingredients, the run sheet, andgram cookkeep grams for weighing (API helpers:toLargerMetricUnit,isMetricMassUnitin@gram-lang/i18n). - Renderer & CLI: Numbers follow the recipe's language (
lang/ projectlanguage, with decimal commas in French and no thousands separators ingram shop/gram scale), and spoons, cups, and imperial measures display as fractions (1 3/4 cup) across views and CLI commands while keeping machine attributes unchanged (API helpers:formatNumber,localizeDecimals,toKitchenFractionin@gram-lang/i18n). - CLI / Cook: Timer countdowns in
gram cooknow honor the unit written in the recipe (~{1h}counts down 1 hour and~{30 s}30 seconds, instead of treating every timer as minutes).
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
1 download
- Parser: Section headers with leftover text after an anchor or intermediate (such as a multi-word