Replies: 3 comments
-
|
+1 for this FR, i was also looking for something like this |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Wouldn't the reference modifier language extension address this issue in part? It's currently not supported by |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This would handle the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
the problem
Some recipes call for some of the total amount of an ingredient.
While this doesn't cause any issues for figuring how much is used in the entire recipe (after all, you can write
1 tsp of @sugar{1/3%cup}), it does when you are showing how much is used per step.@sugar{1%tsp}as the step requests? (not good)@sugar{1/3%cup}which the entire recipe needs? (not ideal)TL;DR: Cooklang is all-or-nothing. You either use the ingredient or you don't.
a potential implementation (
feat)A potential solution would be modifying the existing syntax to include an optional total amount of an ingredient, like this:
@ingredient{ [amount to use] ; [total amount (optional)] }.remainingas a quantity to calculate the amount after prior steps.@sugar{remaining}after@sugar{ 1%tsp ; 1/3%cup }would be "15 tsp" or "0.3125 cup(s)"Beta Was this translation helpful? Give feedback.
All reactions