Parse part of dynamic page as markdown?

Hi there, I’m trying to figure out a way of parsing a small part of a page as markdown. Either via templating or programmatically. Can anyone point me in the right direction? I’m going over the Rubydoc but its not obvious to me how to manually pass a string through the markdown renderer. I could simply name the file foo.html.md I suppose, but depending onthe markdown engine that could mangle the HTML.

Hello @Naatan

parsing a small part of a page as markdown.

I don’t know what you are trying to do but maybe this can help you

  • parse markdown data with = Kramdown::Document.new(item.description).to_html