Fixed bug with script tags

This commit is contained in:
Logan 2024-09-06 01:04:55 -05:00
parent 0593c034c9
commit 445341451c
2 changed files with 5 additions and 1 deletions

View file

@ -1 +1,4 @@
Simple build script that converts markdown files to HTML.
<script>
test
</script>

View file

@ -22,9 +22,10 @@ fn convert_file(
}
fn main() {
let mut opts = Options::gfm();
let mut opts = Options::default();
opts.compile.allow_dangerous_html = true;
opts.compile.allow_dangerous_protocol = true;
opts.compile.gfm_tagfilter = false;
let head = std::fs::read_to_string("./head").unwrap_or("".to_owned());
for entry in walkdir::WalkDir::new("./") {