Adding a table to your post using markdown

Hi, creating tables in Discourse composer is easy. Just create a table in Typora or in another amazing markdown editor, and then copy and paste the whole table into your post. Don’t forget to use <br> as line breaker in your awesome table :slight_smile: .

Typora is free until is in beta status.

3 Likes

If you find creating tables to be a common task on your Discourse instance, you might be interested in this Theme Component, which provides a simple GUI:

(I’d add this to the top post in the topic, but it’s not a wiki…)

6 Likes

i don’t know if it was mentioned but it’s super easy to do this by copying and pasting from Excel or Google Sheets. it does the markup for you when you paste into the text box. i work with sports stats a lot and i work between Discourse and spreadsheet apps often and have made large data tables in posts. i’ve also copied PDF tables into my posts this way (using a spreadsheet app in-between).

6 Likes

What do I do with that snippet?
EDIT: Found it. Make CSS changes on Your Site

3 Likes

How do I make it with only 2 options

1 Like

You can click on the table and delete rows and columns if you have more than you want.

1 Like

I’m attempting to paste a spreadsheet (from Google sheets) that contains links, but the links are lost, and I am left with plain text in the resulting table. Is there a way to preserve/convert the links?

In this screenshot, the link is shown and is clickable, but the cell value is simply text which is likely the source of the issue.

Any workarounds to preserve the links when copy/pasting from Sheets? Thanks.

Edit: Copying and pasting it into a Gmail draft and then to Discourse works, though I don’t love that workaround.

1 Like