Crates.io | bfom-lib |
lib.rs | bfom-lib |
version | 0.1.52 |
source | src |
created_at | 2021-08-07 18:09:19.994727 |
updated_at | 2024-08-12 01:31:46.871464 |
description | Brendan's Flavor of Markdown: I'll build my own markdown format, what could go wrong? |
homepage | |
repository | https://gitlab.com/silver_rust/bfom |
max_upload_size | |
id | 432865 |
size | 125,200 |
This is the library that powers my BFoM converter.
Since this was created in part to expand my knowledge of rust it has no external dependencies.
To use in your own project add it to the Cargo.toml:
[dependencies]
bfom-lib = "0.1"
use bfom_lib::{Config, Converter, Template};
fn main () -> Result<(), std::io::Error> {
// new uses inbuilt defaults if its passed None
let mut converter = Converter::new(None);
converter.convert()?;
}
If you want to override the defaults please have a look at BFoM.