-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
HTML sanitizer doesn't allow centering of text #10471
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
Comments
The first issue is a duplicate of #8830 The second is because of our sanitizer not allowing |
If instead of writing html you used markdown syntax for the image - it would work as expected. We don't currently munge the relative URL of a IMG elements - I guess we could and it is likely to be a very simple pr to do that. |
Ah I see. I searched for it and found nothing. I will remove the part about the relative path in this issue then.
|
see #10515 for dealing with the embedded html img tags ... |
Awesome, thank you Andrew! |
Looking at github/markup#245 it is clear that GH uses https://github.com/jch/html-pipeline to sanitize. This PR relaxes our sanitization to more closely match this. Fixes #10471 and likely others...
Thank you so much for fixing those both issues, @zeripath. Should I open a new issue for this or recycle this one? |
Open a new one |
done. Thank you again for fixing those issues so fast. |
1.12.0+dev-379-ge5944a952
Description
See the missing icon in the README of this mirror on try.gitea.io whereas the rendering on GitHub is flawless.(see #8830 for the image issue).The text centering of the headline is lost.
Screenshots
The text was updated successfully, but these errors were encountered: