This commit is contained in:
Rakarake 2026-03-05 19:45:00 +01:00
parent 0fef98efaf
commit d1b04c13d1
5 changed files with 31 additions and 1 deletions

View file

@ -1,3 +1,12 @@
use std::fs::read;
fn main() {
println!("Hello, world!");
// arg 1: src, arg 2: dest
let args: Vec<String> = std::env::args().collect();
let input: String = std::fs::read_to_string(&args[1]).unwrap();
let mut output = input;
// headings: replace # - newline to <h1> - </h1>
println!("{}", output);
}