5 upvotes, 1 direct replies (showing 1)
View submission: [reddit change] New markdown interpreter!
Your number of columns should match up. If you have four columns you should use :---|:---|:---|:--- ..if you have five use :---|:---|:---|:---|:--- etc, etc
edit: I debugged using a different tables source. If this does not fix your problem and your tables are using the correct syntax, please let me know.
Comment by EvilHom3r at 17/11/2011 at 21:02 UTC
4 upvotes, 2 direct replies
I was actually referring to the header labels (which TIL about). It seems it becomes messed up when you leave them blank.
i.e.
`||`
`:---|:--:|---:`
`Left-justified|center-justified|right-justified`
`a|b|c`
`d|e|f`
(EDIT: reddit didn't want to make this code with four spaces for some reason. Had to use `)
becomes:
┌────────────────┬──────────────────┬─────────────────┐ │ │ │ │ ╞════════════════╪══════════════════╪═════════════════╡ │ Left-justified │ center-justified │ right-justified │ ├────────────────┼──────────────────┼─────────────────┤ │ a │ b │ c │ ├────────────────┼──────────────────┼─────────────────┤ │ d │ e │ f │ └────────────────┴──────────────────┴─────────────────┘
While:
|||| :---|:--:|---: Left-justified|center-justified|right-justified a|b|c d|e|f
Becomes:
┌──┬──┬──┬──┬──┐ │ │ │ │ │ │ ╞══╪══╪══╪══╪══╡ └──┴──┴──┴──┴──┘