Skip to content

Xithrius/markdown-table-rs

Repository files navigation

markdown-table-rs

Creating markdown tables with Rust!

Example

Code:

use markdown_table::MarkdownTable;

let table = MarkdownTable::new(
    vec![
        vec!["test".to_string()],
        vec!["1".to_string()],
        vec!["2".to_string()]
    ]
);

println!("{}", table);

String output:

<table><tr><td>Testing<tr><td>1<tr><td>2</table>

Rendered:

Testing
1
2