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
Preview doesn't work when editing HTML file #2384
Comments
Actually, this is not a bug. Preview rendering is available for Markdown and other formats supported by installed plugins. It doesn't work for HTML. I think HTML preview shouldn't be supported without restriction because it can cause cross-site scripting if HTML contains JavaScript. |
The pages-plugin plug-in is allowed to render HTML. Without the HTML preview, the users will do allot of small commits, and changes, since they can't see what they're really doing.
IMHO just like in the case of the 'pages-plugin', a subdomain (+ iframe) and the section https://github.com/gitbucket/gitbucket-pages-plugin#security-panic-mode would simply do it. |
Yes. Though GitBucket itself doesn't support HTML rendering due to prevent cross-site scripting, users can use pages-plugin if they need to host HTML on GitBucket. It's can be disabled, so users can use it at their own risk. |
I close this issue since this is designed behaviour. |
Hi,
I think there is a bug with the preview when editing HTML files. Because when you click on the preview it shows nothing.
Thank you.
The text was updated successfully, but these errors were encountered: