-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
alt option for image() #559
Conversation
Thanks, I didn't know I had access to something like that without adding a package. Added that, and remobed the ternary operator I was using, which felt too cluttered here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I tested it and it works well.
There is one more thing that should probably be done here. That is add this to the usage above in the PHbasicmacros.pl file so this gets into the POD documentation. |
So I looked at that just now.
|
Yes, the align attribute has been deprecated for a long time. Change that. |
It seems to me that there are legacy subroutines I propose removing the last three example lines from the POD. Do you see any reason to handle it differently? |
I noticed that the header on the part for the The POD in the PGbasicmacros.pl file really needs some help. It seems that not a lot of time was spent in creating what is there, as well as things have changed and the documentation was not updated. The quick usage and example statements could be greatly improved with a little explanation. See https://webwork.maa.org/pod/pg/macros/PGbasicmacros.html#Macros-for-displaying-static-images for what this looks like with the WeBWorK 2.15 code. I am not suggesting that you do this here. Just pointing this out. If POD documentation were improved, that would make the other "documentation" efforts easier. |
Unless I forgot something, this is ready for another look. Summary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good.
Note: Don't use comments in POD. POD is not Perl code.
@Alex-Jordan: I added a pull request to this pull request with some suggested changes to the POD documentation. There is no change to the wording, just the formatting of the generated POD output. |
Improve the generated POD output from PGbasicmacros.pl.
I think this is good to go. I will go ahead and merge it so you can continue work on your related pull request. |
Currently to get alt text in an HTML image, you must awkwardly use
extra_html_tags
. This addsalt
as an option, which is not only less awkward, but also allows PreTeXt to do its natural thing with an alt text description.