Füllen Sie das Raster aus, legen Sie für jede Spalte eine Ausrichtung fest, und dieselbe Tabelle wird als Markdown, HTML, CSV oder reiner Text ausgegeben. Vorhandene Daten lassen sich stattdessen einfügen: Das Trennzeichen wird ermittelt, indem Komma, Semikolon, Tabulator und Senkrechtstrich ausprobiert werden und dasjenige bleibt, das die gleichmäßigste Spaltenzahl ergibt — europäische Semikolon-Dateien und tabgetrennte Exporte laden also, ohne dass man es ihnen sagen muss.
Felder in Anführungszeichen werden korrekt geparst, eine Zelle mit dem Trennzeichen darin übersteht den Ladevorgang also, statt in zwei Spalten zu zerfallen. Beim Ausgeben wird ein Senkrechtstrich in einer Zelle für die Markdown-Form maskiert, denn ein unmaskierter beendet die Zelle und erzeugt eine Tabelle, die im Quelltext korrekt aussieht und kaputt dargestellt wird. Die HTML-Form kennzeichnet Kopfzellen mit einem scope, damit assistive Technik eine Zelle zusammen mit ihrem Spaltennamen vorlesen kann.
Was jedes Format tragen kann und was nicht
-
Markdown kann weder verbinden noch verschachteln:
Es gibt kein colspan, kein rowspan und keine Tabelle in einer Zelle. Braucht Ihre Struktur eines davon, ist die HTML-Ausgabe die einzige der vier, die das ausdrücken kann.
-
Ausgerichtete Auffüllung ist für Menschen, die die Rohdatei lesen:
Sie wird identisch dargestellt wie die kompakte Form. Wählen Sie kompakt, wenn das Markdown in die Versionsverwaltung geht — jede Zeile nach einer Änderung neu aufzufüllen macht aus einer kleinen Änderung einen großen Diff.
-
Eine Tabelle ist für Daten, nicht für Layout:
Screenreader kündigen Zeilen- und Spaltenüberschriften an, damit man sich in einem Raster aus Werten zurechtfindet. Eine Tabelle zur Positionierung zu nutzen kündigt eine Struktur an, die keine Bedeutung trägt, und macht die Seite schwerer verständlich.
-
Die Kopfzeile macht das HTML erst zugänglich:
Sie abzuschalten ergibt eine Tabelle aus schlichten Zellen, zu denen es nichts gibt, worauf sie sich beziehen. Behalten Sie sie überall dort, wo die erste Zeile wirklich Überschriften enthält.
What survives the round trip when data is pasted in
Pasted data does not need to say what it is. The [msm_tool slug="table-generator"] tries comma, semicolon, tab and pipe as the delimiter and keeps whichever produces the most consistent number of columns across every row, which is why a European export using semicolons or a tab-separated file loads without anyone telling it which one it is looking at.
Quoted fields are parsed properly during that process, so a cell that legitimately contains the delimiter — a comma inside an address, for instance — survives as one cell instead of splitting into two. When a row loads with the wrong number of columns, the usual cause is the opposite case: that character sitting inside a cell unquoted, which the detection has no way to tell apart from a genuine column break.
What breaks a Markdown table after the fact
A pipe character ends a cell in Markdown's table syntax unless it is escaped, so the export escapes it automatically on the way out. A table that renders broken after leaving here has almost always been hand-edited afterwards, with a pipe typed back in raw.
Two Markdown outputs, rendering identically
Aligned columns and compact columns produce the exact same table wherever Markdown is rendered — the padding is purely for a person reading the raw source file. Compact is the better choice for anything going into version control, because re-aligning every column after a single edit turns a one-line change into a diff touching the whole table.
Where Markdown stops and HTML has to take over
Markdown tables have no way to span or nest: no colspan, no rowspan, no table inside a cell. If the data genuinely needs any of those, HTML is the only one of the four exports that can express it at all, and even then the span attributes have to be added by hand afterwards — the output is the plain grid, not the merge.
Why the header row is not just a cosmetic first line
In the HTML export, header cells carry a scope attribute so a screen reader can announce a cell together with the column heading it belongs to. Turning the header row off produces a grid of plain cells with nothing tying a value to what it means, which is also why a table should hold data rather than being used to position things on a page — the structure it announces to assistive technology has to be real.
Nothing leaves the browser
The grid, the delimiter detection, the parsing and all four exports run entirely client-side, so pasting something you would not want sent anywhere does not send it anywhere.