21

Currently trying to format a table using github markdown. Would like to have something like:

       | col1 | col2
    -- | ---- | ----
    r1 |  r2  |  r3 

However markdown is forcing me to place text in the first column for the table to render. Any thoughts on how I could maintain an empty first column header?

2
  • 14
    You could just use  . That would add a non-breaking space (which is not strictly empty, but is at least invisible). Or you can start your heading row with a | (not sure it's supposed to work, but it does). Commented Nov 5, 2017 at 15:21
  • sorry not sure why i didn't respond to this earlier, but this works!! much thanks. feel free to provide as answer and i can accept Commented Nov 17, 2017 at 21:12

1 Answer 1

21

So as this question can be marked as solved, I'll put JB Nizet comment below:

You could just use  . That would add a non-breaking space (which is not strictly empty, but is at least invisible). Or you can start your heading row with a | (not sure it's supposed to work, but it does).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.