lyt 0.1.1

A static site generator written in Rust
Documentation
use lyt::markdown::parse_markdown;

fn main() {
    let markdown_input = create_input();
    let (attrs, html_output) = parse_markdown(markdown_input, "Solarized (dark)".to_string());

    println!("author: {}", attrs.author);
    println!("title: {}", attrs.title);
    println!("output:\n---\n{}", html_output)
}

fn create_input() -> &'static str {
    "\
```toml
title = \"This is a fancy title\"\n\
author = \"pjw\"
```\n\n\
## Sub-title
\n\
Hello world, this is a ~~complicated~~ *very simple* example.\n\n\
```rust\n\
use std::whatever;\n\
\n\
fn main() {\n\
\tprintln!(\"Hello, world!\");\n\
}\n\
```\n\n\
This is a [link](https://example.com).\n\n\
This is a [link](https://example.com \"with a title\").\n\n\
This is a [link](https://example.com \"with a title\" and some `code`).\n\n\
This is an ![image](https://example.com/image.png).\n\n\
```ruby\n\
puts \"Hello, world!\"\n\
```\n\n\
"
}