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
allow linear-gradient in background-image html styling within Markdown cells #12093
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
The sanitizer forbids the usage of |
@fcollonval i don't believe this is the case. Sanitizer does allow jupyterlab/packages/apputils/src/sanitizer.ts Line 247 in 047fbe7
jupyterlab/packages/apputils/src/sanitizer.ts Line 117 in 047fbe7
For context: jupyterlab/packages/apputils/src/sanitizer.ts Lines 14 to 15 in 047fbe7
See additional discussion in jupyter/notebook#6270 (comment) |
Thanks for the detailed information @krassowski |
Description
Styling such as
style="background-image:linear-gradient(green,blue);"
within the styling ofdiv
or other element specified within a markdown cell is not rendered. Plain background images are rendered.Unless there is a security issue I am unaware of, I think gradient styling should be allowed.
Reproduce
Enter the following in a markdown cell and run it to render:
The first will not be shown, but the second will.
Expected behavior
The expected behavior is that the gradient will be rendered.
Context
The text was updated successfully, but these errors were encountered: