init text/markdown parser (based on text/gemini)

This commit is contained in:
yggverse 2026-03-08 02:53:33 +02:00
parent 6fb7e70213
commit fc6cce8072
23 changed files with 1452 additions and 0 deletions

View file

@ -94,6 +94,18 @@ impl File {
}
}
});
} else if url.ends_with(".md") || url.ends_with(".markdown")
{
load_contents_async(file, cancellable, move |result| {
match result {
Ok(data) => {
Text::Markdown(uri, data).handle(&page)
}
Err(message) => {
Status::Failure(message).handle(&page)
}
}
})
} else {
load_contents_async(file, cancellable, move |result| {
match result {