-
Notifications
You must be signed in to change notification settings - Fork 601
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
render: add HTML image tests with align support #3862
Conversation
The current align test was only used for text, but we want to be sure that images can be aligned too. This is why a new test is added to verify that the align attribute is also kept for images. Since the align attribute requires RAW HTML for the <img> tag, the relative_links test has also been updated to check for this usage.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jtgeibel (or someone else) soon. Please see the contribution instructions for more information. |
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.
LGTM thanks :)
@bors r+ |
📌 Commit 6eea612 has been approved by |
☀️ Test successful - checks-actions |
render: fix center image test The image test is actually not representative and will not center the image. This fix helps users discover how to center images and proves that they will be centered on crates.io. Note: I am the original author of this testcase from PR #3862
I was not sure that the
align
properly was supported for images, so I extended therender.rs
tests to convince me that it indeed worked as intended.Below is the commit message: