| 1 | <h2>Comments</h2> |
| 2 | <pre><code> |
| 3 | -- This is a single line comment |
| 4 | [- this |
| 5 | is |
| 6 | a multi line comment -] |
| 7 | </code></pre> |
| 8 | |
| 9 | <h2>Meta</h2> |
| 10 | <pre><code> |
| 11 | >> servings: 3 |
| 12 | >> source: https://cooklang.org/docs/spec |
| 13 | >> any key: any value |
| 14 | </code></pre> |
| 15 | |
| 16 | <h2>Ingredients</h2> |
| 17 | <pre><code> |
| 18 | @salt without amount |
| 19 | @egg{1} |
| 20 | @milk{1%l} |
| 21 | @milk{1|2%l} |
| 22 | @egg{1|2} |
| 23 | @egg{1*} |
| 24 | @milk{2*%l} |
| 25 | </code></pre> |
| 26 | |
| 27 | <h2>Cookware</h2> |
| 28 | <pre><code> |
| 29 | #spoon without amount |
| 30 | #spoon{10%pair} |
| 31 | #spoon{1|2} |
| 32 | #spoon{1*%pair} |
| 33 | #spoon{1|2%pair} |
| 34 | #spoon{1*} |
| 35 | </code></pre> |
| 36 | |
| 37 | <h2>Timer</h2> |
| 38 | <pre><code> |
| 39 | ~{25%minutes} without name |
| 40 | ~named timer{1%hours} |
| 41 | </code></pre> |