The Cooklang spec designates that image files can be placed alongside recipes. We probably need to search the content directory for similarly named files of multiple types of image.
I don't think we'll be able to use getImageURL() from the cooklang-ts library here as this function just builds a URL and does not do any filesystem checks.
The Cooklang spec designates that image files can be placed alongside recipes. We probably need to search the content directory for similarly named files of multiple types of image.
I don't think we'll be able to use
getImageURL()
from the cooklang-ts library here as this function just builds a URL and does not do any filesystem checks.