Apparently tables are considered part of Markdown's "extended syntax", even though most users probably take for granted that they will always be supported. So the Python markdown module doesn't enable them by default; you have to use the tables extension.
Changes
Now if you use Markdown table syntax, it'll render as expected:
Our Bleach config is updated to allow table-related elements and style attributes on table cells (for alignment)
We use the tables extension, but not as shown in the examples, because by default it just creates a plain <table> element, which looks awful:
Instead, we subclass the table block processor so we can add class="table-condensed table-bordered" afterwards to make them look nicer.
Problem
@TedThompson stopped by the SpaceDock Discord to complain about #426 and also point out that SpaceDock's markdown doesn't support tables, as in:
Cause
Apparently tables are considered part of Markdown's "extended syntax", even though most users probably take for granted that they will always be supported. So the Python
markdown
module doesn't enable them by default; you have to use thetables
extension.Changes
Now if you use Markdown table syntax, it'll render as expected:
style
attributes on table cells (for alignment)tables
extension, but not as shown in the examples, because by default it just creates a plain<table>
element, which looks awful:class="table-condensed table-bordered"
afterwards to make them look nicer.