Skip to content

Instantly share code, notes, and snippets.

@tassoevan
Created October 16, 2014 15:59
Show Gist options
  • Save tassoevan/f86f311e60c8f4871ebe to your computer and use it in GitHub Desktop.
Save tassoevan/f86f311e60c8f4871ebe to your computer and use it in GitHub Desktop.
Sculpin and inline markdown
<!-- I have this -->
<hgroup class="page-header">
<h1><a href="{{ site.url }}{{ page.url }}">{{ 'Using `DateTime` class' }}</a></h1>
</hgroup>
<!-- Rendering as -->
<hgroup class="page-header">
<h1><a href="/posts/using-datetime-class">Using `DateTime` class</a></h1>
</hgroup>
<!-- I want this -->
<hgroup class="page-header">
<h1><a href="{{ site.url }}{{ page.url }}">{{ 'Using `DateTime` class' | inline_markdown }}</a></h1>
</hgroup>
<!-- Rendering as -->
<hgroup class="page-header">
<h1><a href="/posts/using-datetime-class">Using <code>DateTime</code> class</a></h1>
</hgroup>
@tassoevan
Copy link
Author

Rendering normal markdown will give me a <p> inside <h1>, what is undesired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment