Skip to content
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

Merged
merged 1 commit into from
Aug 24, 2021
Merged

render: add HTML image tests with align support #3862

merged 1 commit into from
Aug 24, 2021

Conversation

gagath
Copy link
Contributor

@gagath gagath commented Aug 24, 2021

I was not sure that the align properly was supported for images, so I extended the render.rs tests to convince me that it indeed worked as intended.

Below is the commit message:

render: add HTML image tests with align support

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.

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.
@rust-highfive
Copy link

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.

Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks :)

@Turbo87 Turbo87 added A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear labels Aug 24, 2021
@Turbo87
Copy link
Member

Turbo87 commented Aug 24, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Aug 24, 2021

📌 Commit 6eea612 has been approved by Turbo87

@bors
Copy link
Contributor

bors commented Aug 24, 2021

⌛ Testing commit 6eea612 with merge 20e1fe7...

@bors
Copy link
Contributor

bors commented Aug 24, 2021

☀️ Test successful - checks-actions
Approved by: Turbo87
Pushing 20e1fe7 to master...

@bors bors merged commit 20e1fe7 into rust-lang:master Aug 24, 2021
bors added a commit that referenced this pull request Sep 7, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants