An open API service indexing awesome lists of open source software.

https://github.com/dxrcy/markup-example

An example of a custom markup to html compiler
https://github.com/dxrcy/markup-example

Last synced: 3 months ago
JSON representation

An example of a custom markup to html compiler

Awesome Lists containing this project

README

        

# Markup Compiler Example

An example of a custom markup to html compiler.

[Syntax Highlighting VSCode Extension](https://github.com/darccyy/markup-example-syntax)

```ps1
cargo run -- index.mu

cargo run -- index.mu index.html
```

```rs
fn main() {
// Read file
let file_in = fs::read_to_string("./index.mu").unwrap();

// Compile
let file_out = compile(&file_in).unwrap();

// Write file
fs::write(out, "./index.html").unwrap();
}
```