Reputation: 4492
I am attempting to include a markdown file in my HTML.
currently i have
Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(
File.read(File.join(Dir.pwd, 'README.md'))
)
Which brings in the contents just fine, aside from properly rendering the html.
my source shows:
<h1>Header</h1>
whcih shows the html markup in the browser:
<h1>Header</h1>
I have been playing with this awhile. Looking for answers always ends me up with rails html_safe helper, but i am not using rails. I have tried CGI.unescapeHTML and HTMLEntities. What am i missing here?
Upvotes: 0
Views: 150