Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencies in helpers #148

Open
gormus opened this issue Jan 23, 2018 · 0 comments
Open

Inconsistencies in helpers #148

gormus opened this issue Jan 23, 2018 · 0 comments

Comments

@gormus
Copy link
Contributor

gormus commented Jan 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant