I'm creating a blog in rails and I decided to use Redcarpet to generate blog content in markdown. The problem is I can't get my images to render.
I've tried the following markdown syntax:

I've also tried using html image tags:
<img src="/image.png">
and I've even tried embeded Ruby image tags:
<%= image_tag "image.png"%>
My image is properly located in the app/assets/images folder. Does it have something to do with the options in Redcarpet or my path name? Using examples I found online I used the following helper method
def markdown(text)
options = {
fenced_code_blocks: true,
no_intra_emphasis:true,
lax_html_blocks: true
}
extensions = {
autolink: true,
superscript: true,
disable_indented_code_blocks: true
}
renderer = Redcarpet::Render::HTML.new(options)
markdown = Redcarpet::Markdown.new(renderer, extensions)
markdown.render(text).html_safe
end
My show.html.erb file looks like this:
<div class="container-fluid">
<h3><%= @post.title %></h3>
<%=@post.created_at.to_date%>
<p>
<%= markdown(@post.text)%>
<p>
<br>
<%= link_to 'Back to all posts.', posts_path%>
</div>