foundation / panini

A super simple flat file generator.
Other
592 stars 104 forks source link

Inconsistencies in helpers #148

Open gormus opened 6 years ago

gormus commented 6 years ago

I am using both of the code and markdown helpers in my templates.

I noticed a minor difference between them.

The code helper wraps the markup with a DIV.code-example layer:

<div class="code-example"><pre><code class="%s">%s</code></pre></div>

However, the markdown helper, doesn't use the same highlight.js treatment for any code block the markdown content may have.

Since I need this functionality, I'm looking into a workaround to it. My first impression is creating a new markdown helper implementing the same highlight.js logic, and use that instead.

Is there something obvious I am missing? Thanks