How to use the table in markdown?

3 views
Skip to first unread message

Roky

unread,
Oct 14, 2009, 9:08:59 PM10/14/09
to snapboard-discuss
Hi,

Thank you for your effort about snapboard maintainance.

I'd like to use the table in markdown.

Could you tell me how to edit in the source code.

The markdown language is used as below.

First Header|Second Header
------------|-------------
1 |3
2 |4

BR

Bo Shi

unread,
Oct 15, 2009, 8:13:17 AM10/15/09
to snapboar...@googlegroups.com
Hi Roky,

Did you modify your project settings per the instructions in the following URL?

http://snapboard.deadpuck.net/docs/howto.html#tune-your-project-s-settings

You'll need to set the following:

SNAP_POST_FILTER = 'markdown'


Regards,
Bo

Roky

unread,
Oct 15, 2009, 9:56:30 PM10/15/09
to snapboard-discuss
Hi Bo,

Thank you for your answer.

I had edit that, SNAP_POST_FILTER = 'markdown' , already, but I have
not used the table in markdown.

I think markdown ban the table defaultly.

So, if I want to use the table, I should edit some part of the source
code.

Plz tell me where I edit.

BR,
Roky

On 10월15일, 오후9시13분, Bo Shi <bs1...@gmail.com> wrote:
> Hi Roky,
>
> Did you modify your project settings per the instructions in the following URL?
>
> http://snapboard.deadpuck.net/docs/howto.html#tune-your-project-s-set...
>
> You'll need to set the following:
>
> SNAP_POST_FILTER = 'markdown'
>
> Regards,
> Bo
>

Bo Shi

unread,
Oct 19, 2009, 4:36:24 PM10/19/09
to snapboar...@googlegroups.com
Hrm, not too familiar with the innards of the markup support but a
quick glance at the code suggests that markdown tables are an
extension to the python-markdown package [1] and that you might need
to explicitly specify the extensions you want to support [2] via the
templatetag syntax, e.g:

{{ yourtext|markdown:"tables" }}


[1] http://www.freewisdom.org/projects/python-markdown/Tables
[2] http://code.djangoproject.com/browser/django/trunk/django/contrib/markup/templatetags/markup.py


2009/10/15 Roky <kr99...@samsung.com>:

Reply all
Reply to author
Forward
0 new messages