Can't markdownify the post from site.categories['category']? #358

Closed
googollee opened this Issue Jul 9, 2011 · 3 comments

Comments

Projects
None yet
5 participants
@googollee
$ jekyll --version
Jekyll 0.10.0

I use the category generator in wiki, and the category_index.html like this:


---
layout: list

---

{% for post in site.categories[page.category] %}
  ...
  {{ post.content }}
  ...
{% endfor %}

But I find the output of post.content is raw text, not markdownified. The post in site.posts is OK.

I try to check the code in site.rb and I'm sure the posts in site.categories and site.tags should be same as posts in site.posts. But the output is different. Is here anybody can tell me where I'm wrong?

Thank you.

@angiep

This comment has been minimized.

Show comment Hide comment
@angiep

angiep Sep 8, 2011

I'm running into this same issue. I can do {{ post.content | markdownify }} but then my highlight tags and code snippets cause errors.

angiep commented Sep 8, 2011

I'm running into this same issue. I can do {{ post.content | markdownify }} but then my highlight tags and code snippets cause errors.

@mklarmann

This comment has been minimized.

Show comment Hide comment
@mklarmann

mklarmann Jan 31, 2012

I am running into into the same issue... i can't even get:

{% capture about_content %}
A First Level Header
====================

A Second Level Header
---------------------

Hello!
{% endcapture %}
{{ about_content | markdownify }}

to work...

I am running into into the same issue... i can't even get:

{% capture about_content %}
A First Level Header
====================

A Second Level Header
---------------------

Hello!
{% endcapture %}
{{ about_content | markdownify }}

to work...

@parkr

This comment has been minimized.

Show comment Hide comment
@parkr

parkr Mar 17, 2013

Owner

A post's content attribute is not processed by either liquid or markdown, as it's meant to represent the raw content.

Octopress's category generator plugin might be the solution you're looking for.

Owner

parkr commented Mar 17, 2013

A post's content attribute is not processed by either liquid or markdown, as it's meant to represent the raw content.

Octopress's category generator plugin might be the solution you're looking for.

@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.