-
Notifications
You must be signed in to change notification settings - Fork 524
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
Inline base64 image doesn’t render in v3.3.2 #504
Comments
It looks like autolink code validates the value of the source against a whitelist of protocols: https://github.com/vmg/redcarpet/blob/master/ext/redcarpet/autolink.c#L34. One potential solution would be to add |
True. Also, the current allowing |
This works for me on 3.3.4...
That does render a 1 x 1 pixel. |
Hi there ! Yep, this doesn't work anymore if you've enabled class CustomRender < Redcarpet::Render::HTML
# To by-pass the `safe_links_only` option
def image(link, title, alt_text)
return %(<img src="#{link}" title="#{title}" alt="#{alt_text}">)
end
end
# And then
parser = Redcarpet::Markdown.new(CustomRender.new(safe_links_only: true)) Thanks for reporting and sorry for the late answer ! 😊 |
While upgrading from v3.2.3 to v3.3.2, I noticed that inline images such as
will no longer display the image. Is this intentional?
I haven’t yet confirmed this, but I suspect that #416 could be the cause of this changed behavior.
The text was updated successfully, but these errors were encountered: