update risp version, ability to show images; add stvo
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 28m17s

This commit is contained in:
2024-09-12 23:31:38 +02:00
parent 45acafccf7
commit ec9a88c708
3 changed files with 82 additions and 29 deletions

View File

@@ -24,6 +24,9 @@ fn print_content(content: Content) -> String {
let mut ret = String::new();
match content {
Content::Image(url) => {
ret.push_str(&format!("<img src='https://www.ris.bka.gv.at/{url}' />"))
}
Content::Text(t) => ret.push_str(&format!("<span class='content'>{t}</span>")),
Content::List(l) => {
ret.push_str("<ul class='content list'>");