Converts CSV content to Markdown tables.
- Namespace
- Statiq
.Tables - Interfaces
- Base Types
-
- object
- Module
- ParallelSyncModule
Syntax
public class RenderCsvAsMarkdown : ParallelSyncModule, IModule, IParallelModule
Remarks
This module reads the content of each input document as CSV and outputs an Markdown table
containing the CSV content. The output table has the format
+--------------+-------------+
| Test value 1 | TestValue 2 |
+--------------+-------------+
| Test value 2 | TestValue 3 |
+--------------+-------------+
The input CSV content must use
, as separator and enclose
every value in ".
Properties
| Name | Property Type | Summary |
|---|---|---|
| Parallel | bool |
Indicates whether documents will be
processed by this module in parallel.
Inherited from ParallelSyncModule
|
Methods
| Name | Return Value | Summary |
|---|---|---|
| AfterExecution |
void |
Called after each module execution.
Inherited from Module
|
| AfterExecutionAsync |
Task |
Called after each module execution.
Inherited from Module
|
| BeforeExecution |
void |
Called before each module execution.
Inherited from Module
|
| BeforeExecutionAsync |
Task |
Called before each module execution.
Inherited from Module
|
| ExecuteAsync |
Task |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
|
| ExecuteContextAsync |
Task |
Executes the module once for all input documents.
Inherited from ParallelSyncModule
|
| ExecuteInput |
IEnumerable |
|
| ExecuteInputAsync |
Task |
Executes the module.
Inherited from ParallelSyncModule
|
| Finally |
void |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|
| FinallyAsync |
Task |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|
| WithHeader |
RenderCsvAsMarkdown |
Treats the first line of input content as a header and generates
<th> tags in the output table.
|