mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init text/markdown parser (based on text/gemini)
This commit is contained in:
parent
6fb7e70213
commit
fc6cce8072
23 changed files with 1452 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue