CsvToMarkdown Class

Summary

Converts CSV content to Markdown tables.
Assembly
Wyam.Tables.dll
Namespace
Wyam.Tables
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["CsvToMarkdown"] class Type type-node

Syntax

public class CsvToMarkdown : IModule

Remarks

This module reads the content of each input document as CSV and outputs an Markdown table containing the CSV content. The input CSV content must use , as separator and enclose every value in ". The output table has the format
+--------------+-------------+
| Test value 1 | TestValue 2 |
+--------------+-------------+
| Test value 2 | TestValue 3 |
+--------------+-------------+

Methods

Name Value Summary
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
WithHeader() CsvToMarkdown
Treats the first line of input content as a header and generates <th> tags in the output table.
GitHub