devfort / nosebag

Yet another recipe management system
1 stars 0 forks source link

Media files #5

Open norm opened 4 years ago

norm commented 4 years ago

Dr Syntax states "Media files are referenced..." but is silent about how they appear in the recipe. My suggestion would be a media array that can be attached to the recipe as a whole or an individual step, each entry being an object containing the path to the media and optional extra keys (width, height, alt text, HTML class to apply...).

jaylett commented 4 years ago

I think that's sensible. If it's media, that suggests more than pictures. Would you support audio, for instance? (And if so, would it make sense to support this at top-level, and/or alongside text blob keys? Possibly that would require objects for textblobs + audio, textblobs + video, &c.)

norm commented 4 years ago

I would think that attached media could be anything and that Dr Syntax should be agnostic as to how it works, but provide some common examples. Photo, audio, video being the most likely to my mind.

I can whip up a PR for criticism purposes.