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
- Host: GitHub
- URL: https://github.com/dxrcy/markup-example
- Owner: dxrcy
- Created: 2023-01-19T07:35:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T00:26:06.000Z (over 2 years ago)
- Last Synced: 2025-03-15T08:37:16.967Z (3 months ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.mucargo 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();
}
```