cooklang / cooklang-ts

Lightweight Cooklang parser implemented in TypeScript
https://cooklang.github.io/cooklang-ts/
MIT License
75 stars 7 forks source link

[REQUEST] Timers as ISO 8601 #24

Closed MTRNord closed 1 month ago

MTRNord commented 7 months ago

Is your feature request related to a problem? Please describe.

https://www.schema.org/Recipe uses their Duration type for things related to time. That type uses ISO8601. It would be nice to get the values as such to be able to convert to schema.org in renderers.

Describe the solution you'd like A getter for it would be nice

Describe alternatives you've considered Apart from parsing it myself none.

Additional context I guess this may need a spec change to cooklang itself as well.

ThatTSGuy commented 1 month ago

I think until the spec changes we will pause this.