ConvertersLesson 40Free preview
CSV to Markdown
This lesson is part of Web Developer Tools · All levels
Summary
The CSV to Markdown converter converts the table data into a Markdown table format that uses the pipe mark as a column separator. The first row of CSV is considered a header, followed by a separator row containing a hyphen. Each row of data becomes a row of tables, and the pipeline mark inside the cell needs to be escaped. The Markdown format is suitable for documentation because it is easy to read as text and appears as a table.
Key points
- The first row of CSV becomes the Markdown table header
- Pipe markings separate the columns and are needed at the beginning and end of the line
- Separator lines using three or more hyphens
- The pipe mark inside the cell must be escaped with a backslash
- The Markdown table does not support colspan or complex rowspan
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.