KSP-SpaceDock / SpaceDock

Current Codebase (Python /Flask)
https://spacedock.info
Other
72 stars 33 forks source link

Support tables in markdown #498

Closed HebaruSan closed 1 year ago

HebaruSan commented 1 year ago

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:

Column 1 | Column 2 | Column 3
:-- | :-- | :--
Cell 4 | Cell 5 | Cell 6

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 the tables extension.

Changes

Now if you use Markdown table syntax, it'll render as expected:

image