# Editing: An insert table option

(Andy Routledge) #1

The edit box could do with an “insert table” option.

#2

Oldschool…but useful for structured data and tabulation.

Is it possible as a feature?

There is nothing wrong with tables and are still as useful today as they were when invented.

The CSS guys younger than me would disagree…and I expect them to. It could potentially break their layout.

So I would say this would make for an amazingly specific plugin.

There was a discussion about adding CKEDITOR to discourse it was kind of a lighting rod subject and you can read it here.

While it is more that a, ‘can we add tables’ situation you can get a vibe on what html would do to mark up.

Hmm… I think I will let brighter minds chime in at this point.

Great topic for discussion as it is so specific.

(probus) #3

Tables are also often useful for wiki articles and other such posts.

(Mittineague) #4

Sometimes tables are good for displaying, ermm, tabular data.
Closest alternative I know is to use pre tags to retain tabs to keep things in their respective column. eg.

	name	date	count
guru	Fred	Aug	12
noob	Ted	Oct	34
pest	Ned	Jan	3

(Marcin Rataj) #5

Alternative workaround:

If you install MathJax Plugin it will be possible to “draw” tables in LaTeX

Simple:

\begin{array}{c|cc}
\hline A & B & C\\
\hline D & E & F\\
\hline
\end{array}


gives:

One can even go mad and nest them in weird configurations such as:

$$\begin{array}{c} \begin{array}{cc} \begin{array}{c|cccc} \text{min} & 0 & 1 & 2 & 3\\ \hline 0 & 0 & 0 & 0 & 0\\ 1 & 0 & 1 & 1 & 1\\ 2 & 0 & 1 & 2 & 2\\ 3 & 0 & 1 & 2 & 3 \end{array} & \begin{array}{c|cccc} \text{max}&0&1&2&3\\ \hline 0 & 0 & 1 & 2 & 3\\ 1 & 1 & 1 & 2 & 3\\ 2 & 2 & 2 & 2 & 3\\ 3 & 3 & 3 & 3 & 3 \end{array} \end{array} \\ \begin{array}{c|cccc} \Delta&0&1&2&3\\ \hline 0 & 0 & 1 & 2 & 3\\ 1 & 1 & 0 & 1 & 2\\ 2 & 2 & 1 & 0 & 1\\ 3 & 3 & 2 & 1 & 0 \end{array} \end{array}$$


(Jens Maier) #6

And then you try to put floating text into your table, expecting that it has sensible auto-sizing for rows and columns… and then you cry. You might even re-write your paper in , until you get to the point where it gets mathy… and then you cry.

#7

Lol…too funny.

I think simple tables are useful for my backend duties. But when I tangle with CSS folks cognitive dissonance on tables creates polarity.

It weird and I don’t understand why they are all consumed with the kill tables with fire mindset…

When it comes to markup then I draw a total blank. I don’t think a markup solution exists…I could be wrong.

Sometimes you just have to get things done.

Tables can get it done simply (not elegantly).

(Thoka) #8

An alternative and more general way to show tables inside a post by including external ressources, like it is allready done in a web-link preview.

(Bhuvanesh R) #9

Guys, any idiot friendly way to input tabular data? Like copy pasting from a spreadsheet. Asking because I am a non-tech noob, need a simple solution. Most of the stuff here just flew over my head.

(Eli the Bearded) #10

I believe table support was considered too difficult under the current Markdown implementation. There is planned work to replace the Markdown engine and then possibly support Markdown tables.

https://meta.discourse.org/t/markdown-table-support-in-a-discourse-topic/13546/99?u=elijah&source_topic_id=19719