Search code examples
markdownpelican

MarkDown tables not rendering in Pelican


I'm using Python3 and Pelican to make static sites, but the MarkDown Tables feature is not working.

Input:

Test Columns | Header 2
------------ | --------
Test Value   | Test 2

Output:

Rows of data:

Test Columns | Header 2 ------------ | -------- Test Value | Test 2

Help?


Solution

  • OK, apparently Python Markdown just doesn't support MarkDown tables and it's a known issue. Using HTML table instead worked:

    <table>
    <tr><th>Test Columns</th><th>Header 2</th></tr>
    <tr><td>Test Value</td><td>Test 2</td></tr>
    </table>
    

    Makes the table render properly.