+ SupportedContent::UnorderedList(list) => {
+ vec![xilem_html_element(
+ "ul",
+ vec![syn::Expr::Tuple(syn::ExprTuple {
+ attrs: Vec::new(),
+ paren_token: syn::token::Paren::default(),
+ elems: syn::punctuated::Punctuated::from_iter(
+ list.children()
+ .into_iter()
+ .map(|content| SupportedContent::downcast(content.body()))
+ .map(|supported| supported.to_xilem())
+ .flatten(),
+ ),
+ })],
+ )]
+ }
+ SupportedContent::OrderedList(list) => {
+ vec![xilem_html_element(
+ "ol",
+ vec![syn::Expr::Tuple(syn::ExprTuple {
+ attrs: Vec::new(),
+ paren_token: syn::token::Paren::default(),
+ elems: syn::punctuated::Punctuated::from_iter(
+ list.children()
+ .into_iter()
+ .map(|content| SupportedContent::downcast(content.body()))
+ .map(|supported| supported.to_xilem())
+ .flatten(),
+ ),
+ })],
+ )]
+ }
+ SupportedContent::UnorderedListItem(item) => {
+ vec![xilem_html_element(
+ "ul",
+ vec![xilem_html_element(
+ "li",
+ vec![syn::Expr::Tuple(syn::ExprTuple {
+ attrs: Vec::new(),
+ paren_token: syn::token::Paren::default(),
+ elems: syn::punctuated::Punctuated::from_iter(
+ SupportedContent::downcast(item.body()).to_xilem(),
+ ),
+ })],
+ )],
+ )]
+ }
+ SupportedContent::OrderedListItem(item) => {
+ vec![xilem_html_element(
+ "ol",
+ vec![xilem_html_element(
+ "li",
+ vec![syn::Expr::Tuple(syn::ExprTuple {
+ attrs: Vec::new(),
+ paren_token: syn::token::Paren::default(),
+ elems: syn::punctuated::Punctuated::from_iter(
+ SupportedContent::downcast(item.body()).to_xilem(),
+ ),
+ })],
+ )],
+ )]
+ }
+ SupportedContent::ParagraphBreak(_parahraph_break) => {
+ vec![xilem_html_element(
+ "br",
+ vec![syn::Expr::Tuple(syn::ExprTuple {
+ attrs: Vec::new(),
+ paren_token: syn::token::Paren::default(),
+ elems: syn::punctuated::Punctuated::new(),
+ })],
+ )]
+ }