Back to front pageView on Hacker News (opens in a new tab)Show HN: CookLang – Recipe Markup Language (opens in a new tab)cooklang.org415 pointsby dubadub (on Hacker News)5 years agocooklang.org (opens in a new tab)Cooklang – Recipe Markup LanguageCooklang is a markup language for recipes.Comments (146) 44 threadsShow all commentsShowing thread 15 of 44[-]xutopia5 years ago4 replies#The only thing missing would be a substitute... for example "vinegar or lemon juice" is impossible to describe in the current language spec.[-]dubadub5 years ago1 reply#Good point, any idea how it could look like?[-]vborovikov5 years ago2 replies#How about [@raw organic cane sugar, @honey]{3%tbsp} Here square brackets indicate that the ingredient will have variations separated by commas.quisnam5 years ago#Good idea. I'd prefer the at sign in front of the brackets, though. @[sugar, honey]{3%tbsp} It should be easier to parse and allows for brackets to be used elsewhere without escapes.dubadub5 years ago#Interesting idea, how about the case when quantity varies for different ingredient? For example 2 tbsp of raw organic cane sugar or 3 honey.dubadub5 years ago#I'd suggest to open an issue for tracking in spec repo https://github.com/cooklang/spec, so people can discuss different options.splatcollision5 years ago#You could be inspired by the link reference syntax from markdown, and use the following where subs are possible:add @acid{1%tsp} to @milk{1%cup} to create acidulated milk[acid]{lemon juice|apple cider vinegar}Anyway great spec and language!gizdan5 years ago#Lots missing really, you can add nutrition and scaling things to that list.
Show HN: CookLang – Recipe Markup Language (opens in a new tab)cooklang.org415 pointsby dubadub (on Hacker News)5 years ago
xutopia5 years ago4 replies#The only thing missing would be a substitute... for example "vinegar or lemon juice" is impossible to describe in the current language spec.
vborovikov5 years ago2 replies#How about [@raw organic cane sugar, @honey]{3%tbsp} Here square brackets indicate that the ingredient will have variations separated by commas.
quisnam5 years ago#Good idea. I'd prefer the at sign in front of the brackets, though. @[sugar, honey]{3%tbsp} It should be easier to parse and allows for brackets to be used elsewhere without escapes.
dubadub5 years ago#Interesting idea, how about the case when quantity varies for different ingredient? For example 2 tbsp of raw organic cane sugar or 3 honey.
dubadub5 years ago#I'd suggest to open an issue for tracking in spec repo https://github.com/cooklang/spec, so people can discuss different options.
splatcollision5 years ago#You could be inspired by the link reference syntax from markdown, and use the following where subs are possible:add @acid{1%tsp} to @milk{1%cup} to create acidulated milk[acid]{lemon juice|apple cider vinegar}Anyway great spec and language!
Comments (146) 44 threads
Show all comments
Showing thread 15 of 44
add @acid{1%tsp} to @milk{1%cup} to create acidulated milk
[acid]{lemon juice|apple cider vinegar}
Anyway great spec and language!