include tag does not apply converter to file #186

Closed
mikexstudios opened this Issue Jun 29, 2010 · 5 comments

Projects

None yet

6 participants

@mikexstudios

From the 'Liquid Extensions' page in the wiki (http://wiki.github.com/mojombo/jekyll/liquid-extensions), we see the example:
{% include sig.textile %}
which gives the impression that the include tag will convert the syntax in the include file, as detected by the file extension.

However, the conversion does not take place. Diving into the source of jekyll/tags/include.rb reveals that Convertable is never used so no conversion happens.

Is this a bug? Or was the feature never intended to exist?

takeo commented Nov 5, 2010

I just ran into this as well. I'd love to use includes to split apart some of the copy for a site so it's easier for the copywriter to edit and iterate on, and having it able to be written in markdown would be even better.

clippit commented Mar 5, 2012

I noticed this too. include just read the content and to Liquid::Template.parse(source) without any convertion. The YAML header don't work as well.

i just ran into this too. @mojombo is this a bug or by design?

here's a workaround i did to include markdown in my include:

{% capture markdown_content %}

*write markdown here*

{{ content }}

*more markdown here*

{% endcapture %}

{{ markdown_content | markdownify }}
Owner
parkr commented Mar 17, 2013

Can't replicate:

./index.html:

---
title: Home
---

{% include test1.html %}

Overview
========

test test test

{% include test2.markdown %}

./_includes/test2.markdown:

Hey hey
=======

So you _you_ doin'?

Produces:

<div class='test'><p>Hi hi hi</p></div>
<h1 id='overview'>Overview</h1>

<p>test test test</p>

<h1 id='hey_hey'>Hey hey</h1>

<p>So you <em>you</em> doin&#8217;?</p>
@parkr parkr closed this Mar 17, 2013
@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.