We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ContentFormatter strips out the text-align attributes created by the markdown:
Added config/initializer/thredded.rb: Thredded::ContentFormatter.whitelist[:elements] += %w[text-align]
But the text-align is still being ignored.
Here is an example of the markdown post. In github preview, it renders the text-align correctly. In Thredded, all the text-align is stripped.
The text was updated successfully, but these errors were encountered:
Marked as a bug, because we should have text-align whitelisted on th and td by default.
text-align
th
td
In the meantime, try this workaround:
Thredded::ContentFormatter.whitelist.tap do |w| %w[th td].each do |t| w[:attributes][t] ||= [] w[:attributes][t] += %w[style] end w[:css] ||= {} w[:css][:properties] ||= [] w[:css][:properties] += %w[text-align] end
Sorry, something went wrong.
Workaround is perfect! Thanks glebm.
a417053
No branches or pull requests
ContentFormatter strips out the text-align attributes created by the markdown:
sanitize =>Added config/initializer/thredded.rb:
Thredded::ContentFormatter.whitelist[:elements] += %w[text-align]
But the text-align is still being ignored.
Here is an example of the markdown post. In github preview, it renders the text-align correctly. In Thredded, all the text-align is stripped.
The text was updated successfully, but these errors were encountered: