Describe the bug
Small issue, but if there is a [ in metadata, we parse a recipe as a shopping-list.
I see this as a minor bug, but want to double-check it's unexpected before I put in any work to make a fix.
To Reproduce
Steps to reproduce the behavior:
// can ignore import syntax; this is standard usage via Deno
import { Parser } from 'npm:@cooklang/cooklang-ts';
const parser = new Parser()
console.log(parser.parse(`
>> source: https://www.youtube.com/watch?v=oTyVtAAKPRo
>> tags: [ breakfast ]
>> description: It's scrambled egg, with kimchi, and miso soup
>> servings: 1
Crack @eggs{2} into a #bowl, and beat with chopsticks
Make @Kombu broth (or dashi)
Heat a #small pan{} to high heat with #cooking oil{}
Slowly stir eggs onto pan, cook for about ~{10-15%sec}, then remove and add @sesame oil{} and @kimchi
Stir @miso paste{} into kombu broth, and bring to boil
Pour the soup into the egg-stirring bowl, and top with chopped @scallions
`))
Describe the bug Small issue, but if there is a
[
in metadata, we parse a recipe as a shopping-list. I see this as a minor bug, but want to double-check it's unexpected before I put in any work to make a fix.To Reproduce Steps to reproduce the behavior:
this will produce a result of:
Expected behavior
Should parse as a recipe (with
ingredients
,cookwares
, andsteps
instead of `shoppingList: