]>
Commit | Line | Data |
---|---|---|
1 | mod gemini_parser; | |
2 | mod file_finder; | |
3 | mod file_handler; | |
4 | ||
5 | use std::env::current_dir; | |
6 | ||
7 | use crate::gemini_parser::parse; | |
8 | use crate::file_finder::find_files; | |
9 | ||
10 | fn main() { | |
11 | let gemini_source = "# Test\n## 2nd H\na line\n another line\n```\npreformat\n=> preformat\n```\n=> http://lol.com\n=> http://lol.com lol\n* lol\nbla\n* lol\n* lmao\n> blabla\n> blabla"; | |
12 | let html = parse(gemini_source); | |
13 | println!("{}", html); | |
14 | ||
15 | let files = find_files(current_dir().unwrap()); | |
16 | println!("Found {} files", files.len()); | |
17 | } |