Skip to content

Clean up README rendering code. #1751

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

Merged
merged 2 commits into from
Jun 14, 2019
Merged

Conversation

smarnach
Copy link
Contributor

When browsing the code, I noticed that the HTML sanitzation code looked a bit messy, so I attempted to clean it up. This patch should not change the functionality in any way, but the new code may be easier to read and understand – not sure whether that's enough for you to spend time reviewing this.

I also wonder whether there is an explicit list of allowed tags in the code. The defaults in the ammonia crate look quite reasonable to me (we'd only need to add input for check boxes).

@smarnach smarnach changed the title Clean up render Clean up README rendering code. May 21, 2019
@sgrif
Copy link
Contributor

sgrif commented Jun 14, 2019

@bors: r+

@bors
Copy link
Contributor

bors commented Jun 14, 2019

📌 Commit 41af3e1 has been approved by sgrif

bors added a commit that referenced this pull request Jun 14, 2019
Clean up README rendering code.

When browsing the code, I noticed that the HTML sanitzation code looked a bit messy, so I attempted to clean it up. This patch should not change the functionality in any way, but the new code may be easier to read and understand – not sure whether that's enough for you to spend time reviewing this.

I also wonder whether there is an explicit list of allowed tags in the code. The [defaults in the `ammonia` crate](https://docs.rs/ammonia/2.1.1/src/ammonia/lib.rs.html#260-269) look quite reasonable to me (we'd only need to add `input` for check boxes).
@bors
Copy link
Contributor

bors commented Jun 14, 2019

⌛ Testing commit 41af3e1 with merge 922a7c9...

@bors
Copy link
Contributor

bors commented Jun 14, 2019

☀️ Test successful - checks-travis
Approved by: sgrif
Pushing 922a7c9 to master...

@bors bors merged commit 41af3e1 into rust-lang:master Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants