-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Code block vanishes in latest with commonmarker-rouge #85
Comments
Sorry about that! In #81, we began to disallow "custom" HTML by default. Previously, With the newest release of this gem, you can work around the problem with puts CommonMarker::Rouge.render_html(source, [:UNSAFE]) However, I would highly recommend @sandfoxme to swap the |
Thank you for the update. But I can not obtain the expected result. I changed gem 'commonmarker', '0.18.1' to gem 'commonmarker', '0.18.2' in Gemfile, and changed puts CommonMarker::Rouge.render_html(source) to puts CommonMarker::Rouge.render_html(source, [:UNSAFE]) and do:
The result of the script is still:
|
Ah, yeah, then this is definitely something to be fixed in the upstream library, sorry. commonmarker-rouge defines def render_html(text, cmark_options = :DEFAULT, **cmr_options)
render_doc(text, cmark_options, **cmr_options).to_html
end But |
Thank you. |
Reproduction:
Result:
Why???
But if we change commonmarker version to 0.17.13, the result is okay:
Also, if we omit the language specifier, namely change
to
the result is okay:
The text was updated successfully, but these errors were encountered: