News for hackers. Stuff that matters.
Re:Show HN: CookLang – Recipe Markup Language by dusted on Tuesday October 26, 2021 @08:39AM (#28999634)
I suggest replacing % with a space between the amount and unit.

@potatoes {1 kg} is a bit easier on the eyes

Re:Show HN: CookLang – Recipe Markup Language by dubadub on Tuesday October 26, 2021 @10:40AM (#29001004)
I agree, I thought about that. I expect that it can be some cases when either ingredients or units have spaces. And the problem is that I can't come up with a solid counter example. Something like @coriander{2%small batches}... You can open an issue in a spec repo so people can discuss https://github.com/cooklang/spec.
Re:Show HN: CookLang – Recipe Markup Language by gizdan on Tuesday October 26, 2021 @01:08PM (#29003039)
Maybe using an underscore might make sense? i.e. {2_small batches}?
Re:Show HN: CookLang – Recipe Markup Language by mekkkkkk on Tuesday October 26, 2021 @09:37AM (#29000227)
Having an explicit delimiter allows for whitespace in either amount or unit. I suppose that's the reason. Can't seem to come up with an example for that on the fly though.