Skip to content

refcell/morc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morc

Build Status License Docs Latest Version rustc 1.31+

Dead simple, minimal markdown generator library written in Rust. Morc is in alpha

Install | User Docs | Crate Docs | Reference | Contributing | License | Attribution

What is morc?

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.

Usage

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());
}

Contributing

All contributions are welcome! Experimentation is highly encouraged and new issues are welcome.

Troubleshooting & Bug Reports

Please check existing issues for similar bugs or open an issue if no relevant issue already exists.

Attribution

Morc is built from first principles, designed from scratch with minimal external references. It is a sandboxed experiment in design.

License

This project is licensed under the MIT License. Free and open-source, forever. All our rust are belong to you.

About

Dead simple, minimal markdown generator library written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages