Some might know, that I use pelican to build my static blog. I therefore write my blogposts in markdown. I finally got a way working to use markdown tables in my blog by getting pelican to use the builtin markdown-table plugin. To achieve this there is only a slight modification of the config file neccessary.

from markdown.extensions.tables import TableExtension
MARKDOWN = {
    "extensions": [TableExtension()]    
}

The dictionary called MARKDOWN is used by pelican to configure the markdown engine. I therefore give the engine the Table extension found in the standard python markdown library.

Now I can write wonderfull tables like this one:

Test | Foo
---- | ---
Bla  | Hello

Which ends up being like this:

Test Foo
Bla Hello