Hi there – I’m trying to include an erb partial within a markdown file. When the markdown file gets processed, the HTML that’s contained within the partial is rendered as preformatted. I believe I’ve named my file properly, page.html.md.erb. I’ve tried changing the extension order to no avail. I’m using the default, Kramdown, but also tried Redcarpet just to see.
source/page.html.md.erb
<%= partial(:sidebar, :locals => { :active => 1 }) %>
Markdown here
source/_sidebar.erb
<!-- Menu toggle 1 -->
<a href="#menu" id="menuLink" class="menu-link">
...
page.html
<pre><code><!-- Menu toggle 1 -->
<a href="#menu" id="menuLink" class="menu-link">
...
What am I missing?! Any help would be appreciated.
Thanks for your help in advance!
Best,
Ashley