eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 314 forks source link

Fenced code blocks don't work #91

Open chriseidhof opened 10 years ago

chriseidhof commented 10 years ago

I always use fenced code blocks for my source code, just like on github. It'd be awesome if Cactus could support this. I can help add it, if you have any pointers on where to look.

chriseidhof commented 10 years ago

I think it should work like this:

{% filter markdown:"extra" %}

However, it doesn't seem to work. I'm using the Mac app, by the way.

chriseidhof commented 10 years ago

@koenbok any update on this?

ogrodnek commented 9 years ago

+1 would love support for fenced code blocks.

stefanooldeman commented 9 years ago

In that case I suggest we implement the complete set of github's markdown syntax.

client side: https://github.com/isaacs/github-flavored-markdown or server side: https://github.com/chjj/marked

hugorodrigues commented 9 years ago

+1

krallin commented 9 years ago

Hi there,

How do you guys envision this working? Would the following make sense:

{% markdown %}
# Markdown goes here
{% endmarkdown %}

If so, this could probably be implemented as a plugin (see: https://github.com/koenbok/Cactus/issues/31).

Let me know your thoughts. I might give this a go myself and see where this gets us.

Cheers,

deldreth commented 7 years ago

This issue is fairly old now. However, this works for me on Cactus 3.3.3:

{% filter markdown:"fenced-code-blocks" %}
{% verbatim %}
{% endverbatim %}
{% endfilter %}

Along with other extensions supported by Markdown2.