Skip to content
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

Rendered output needs to be marked as html_safe #5

Open
ndbroadbent opened this issue Sep 9, 2018 · 2 comments
Open

Rendered output needs to be marked as html_safe #5

ndbroadbent opened this issue Sep 9, 2018 · 2 comments

Comments

@ndbroadbent
Copy link

ndbroadbent commented Sep 9, 2018

I think this gem might need a few updates for Rails 5. The output is escaped, so it might need to be marked as html_safe.

Also, I'm including the styles in my CSS, but it still seems to output some inline CSS in my HTML and I don't know how to disable that.

@ryangrush
Copy link

it's not formatting anything for me in Rails 5 either

@jschulenklopper
Copy link

https://github.com/jacobsimeon/rouge-rails/blob/master/lib/rouge/rails/template_handler.rb#L17 makes the output html_safe isn't it, @ndbroadbent?

BTW, sanitize is to be preferred over html_safe in Rails 5. Perhaps that one should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants