Start with the format you actually have

Pick the table format that matches the source: a Markdown table already in a README, an HTML table from a doc or CMS preview, or a CSV export from a spreadsheet. The first conversion only exists to get the rows into a place that is comfortable to edit, so the source format matters more than the destination at this step.

  • Markdown table in a README or ticket: skip the import step and start editing directly.
  • HTML table from a doc or CMS preview: convert to Markdown first to keep edits readable.
  • CSV from a spreadsheet export: convert to a Markdown table before pasting into a doc or ticket.

Round-trip through the editor-friendly shape

Once the table is in a Markdown shape, the editing step usually does not need a Markdown editor. Convert the Markdown table back to CSV, edit the rows in a spreadsheet or text-friendly tool, and convert again to Markdown when the rows look right. The round-trip is what makes the edit safe; the Markdown source is rarely a good place to make structural changes such as reordering, splitting, or merging columns.

  • Markdown to CSV for reordering, splitting, or merging columns in a spreadsheet.
  • CSV to Markdown when the rows are ready and the destination expects a Markdown table.
  • CSV to JSON only when the next step is a script, fixture, or sample payload.

Clean the table before re-publishing

Edited tables often pick up stray whitespace, double pipes, broken delimiters, or HTML entities copied from another page. Normalize whitespace, run find and replace for the patterns that show up in your docs, and decode entities that were not meant to be visible. These small cleanups prevent the table from drifting again the next time someone edits it.

  • Normalize whitespace before checking row alignment.
  • Strip stray tags if the table was copied from a rendered HTML page.
  • Decode entities such as &, <, or > that should read as plain text in the final table.

Move the finished table to the destination format

Reaching Markdown is not always the final stop. A README expects Markdown, a CMS field may expect HTML, a status doc may want a CSV snippet, and a chat-style handoff may want plain text. Use Markdown to HTML for CMS or doc previews, Markdown to CSV for a tracker import, and the tag stripper when only the readable cells should survive.

  • Markdown to HTML for a CMS field or a doc preview that renders markup.
  • CSV for spreadsheet trackers and one-row-per-item imports.
  • Tag stripper only when the destination is plain text and the structure does not need to survive.

Sanity-check before saving or sharing

Markdown renderers, CSV importers, and CMS editors each interpret tables slightly differently. Preview the table once, count the rows and columns, and confirm that pipe characters inside cells are escaped. Saving a broken table usually means the next editor will repeat the cleanup work.

  • Count rows and columns against the source before publishing.
  • Check that pipe characters inside cells are escaped in Markdown output.
  • Confirm column count for every row when the table is going into a CSV import.