| Crates.io | morc |
| lib.rs | morc |
| version | 0.0.2 |
| created_at | 2023-10-22 13:34:58.484259+00 |
| updated_at | 2023-10-22 22:47:31.28175+00 |
| description | Dead simple, minimal markdown generator library written in Rust. |
| homepage | https://github.com/refcell/morc |
| repository | https://github.com/refcell/morc |
| max_upload_size | |
| id | 1010592 |
| size | 224,229 |
Dead simple, minimal markdown generator library written in Rust. Morc is in https://github.com/refcell/morc/labels/beta.

Install | User Docs | Crate Docs | Reference | Contributing | License | Attribution
morc is a dead simple, minimal library for generating
valid markdown files. It was primarily built for amble
but ripped out into it's own crate to provide an extensible
library, published on crates.io.
Add morc as a dependency with cargo.
cargo add morc
A short example to generate markdown with morc is shown below.
use morc::core::{Document, Header, Section, Validate};
fn main() {
let doc = Document {
sections: vec![Box::new(Section {
header: Some(Header::new(1, "Hello".to_string())),
body: None,
subsections: vec![],
})],
};
assert!(doc.validate());
}
All contributions are welcome! Experimentation is highly encouraged and new issues are welcome.
Please check existing issues for similar bugs or open an issue if no relevant issue already exists.
Morc is built from first principles, designed from scratch with minimal external references. It is a sandboxed experiment in design.
This project is licensed under the MIT License. Free and open-source, forever. All our rust are belong to you.