-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Default table alignment triggers common Content Security Policy #12890
Comments
This is a duplicate of #12886 which is resolved by #12889. You can also control rendering of Markdown tables by creating a render hook. This will allow you to set left/right/center classes instead of using inline styles. |
Applied wrong patch, ignore |
The render hook workaround works, thanks for the hint! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The default option for table alignments is 'left'. Would it be possible to exclude the style attribute altogether, if no
:
is used to indicate the alignment?Having inline style tags triggers a CSP which does not allow for
style-src 'unsafe-inline';
.What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: