-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can aliased ingredients display their original name in the ingredient list? #18
Comments
The way it's implemented now this is what it's supposed to happen. When you give a component an alias you change how it's displayed while keeping the original name to use for references. I think it would be (more) confusing if now the alias only works in the steps but not in the list. In the ingredients list only the ingredient definitions appear. To do what you want you can use the modes and references extensions to put the definition of the tortillas out of the steps. Here is a full example:
I think this is consistent with how the aliases work, but I'm open to ideas on how it can be improved. |
I've started to do this using component notes.
The note seems to take a lot of room in the rendered output (it breaks up the ingredient list and can look messy when many ingredients have these notes), but it's close enough to what I am looking for for me to start using it regularly. Published recipes also frequently seem to merge basic preparation details into the ingredient definition list, and I've been using component notes to match that notation style as well.
I've started to like putting more detail into the initial ingredient list since it seems to make the directions easier to skim and digest. I think either adding a toggle to aliases or adding a feature for compactly cramming details in the ingredient list could be very useful. |
+1 on this. I also expected aliases to work like this. I can see how it might be confusing static text output, but the rendered web pages highlight ingredients in the list on hover, so I think it's fine. Not sure how much weight this carries, but this is the recipe I was transcribing when I ran into this problem: https://www.thekitchn.com/recipe-spicy-peanut-tempeh-bowl-240233 Also, thanks for sharing the workaround! |
I expected the first use of
@whole wheat tortillas|tortillas{}
to display as "tortillas" in the instructions and "whole wheat tortillas" in the ingredients list, but it displays as "tortillas" for both.The text was updated successfully, but these errors were encountered: