Repository navigation
add image in recipe steps - #195
Conversation
88b134d to
bd4c4fb
Compare
|
Hey @pinage404, great work on adding images and providing the description for your PR! I started fixing that a few weeks back but never finished. My bad, I don't provide transparency on that, but I added step images support into cooklang-find library so that feature can be reused in any other app that uses it too cooklang/cooklang-find@3b58f49. Would you mind using updated cooklang-find library for your implementation and get step images from RecipyEntry object? |
I already used I didn't understood what should i change |
|
Sorry, my bad 🤦 Somehow I overlooked it. Let's merge it then! |
|
|
||
| let section_image_path = entry | ||
| .step_images() | ||
| .get(0, section_steps.len() + 1) |
There was a problem hiding this comment.
I think we should take section index here instead of 0, so recipes with multiple sections correctly place images too (like this one https://recipes.cooklang.org/recipes/3400).
Bugs introduced in cooklang#195 And found here cooklang#195 (comment)


Add image in recipe steps
I :
cargo fmtcargo clippycargo testnpm run test tests/e2e/recipe-display.spec.tsmake dev_serverThe
cook servercommand display steps indexed from 1, so i choose to also use steps indexed from 1 in the path :<recipe-name>.<index from 1>.jpgI didn't added an
altbecause i don't know how to fill it with an useful value for people that can't see the imageI didn't read all the contributing documentation (too long) and i didn't used AI
I don't know if i have something else to do
Closes #173