use new multi thingy
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 7s
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 7s
This commit is contained in:
@ -7,7 +7,7 @@ fn print_content(content: Content) -> String {
|
||||
|
||||
match content {
|
||||
Content::Text(t) => ret.push_str(&format!("<span class='content'>{t}</span>")),
|
||||
Content::Item(l) | Content::List(l) => {
|
||||
Content::List(l) => {
|
||||
ret.push_str("<ul class='content list'>");
|
||||
for item in l {
|
||||
ret.push_str("<li>");
|
||||
@ -16,6 +16,11 @@ fn print_content(content: Content) -> String {
|
||||
}
|
||||
ret.push_str("</ul>");
|
||||
}
|
||||
Content::Multi(l) => {
|
||||
for item in l {
|
||||
ret.push_str(&print_content(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ret
|
||||
|
Reference in New Issue
Block a user