- format!("<p class=\"a\"><a href=\"{}\">{}</a></p>", url, display)
- },
- GeminiLine::Heading(level, content) => format!("<h{}>{}</h{}>", level, content, level),
- GeminiLine::ListItem(content) => format!("<li>{}</li>", content),
- GeminiLine::PreformattedToggle(true, alt_text) => { format!("<pre aria-label=\"{}\">", alt_text) }
- GeminiLine::PreformattedToggle(false, _) => { "</pre>".to_string() }
- GeminiLine::Text(content, true) | GeminiLine::Quote(content) => format!("{}", content)
+ format!("<p class=\"a\"><a href=\"{url}\">{display}</a></p>")
+ }
+ GeminiLine::Heading(level, content) => format!("<h{level}>{content}</h{level}>"),
+ GeminiLine::ListItem(content) => format!("<li>{content}</li>"),
+ GeminiLine::PreformattedToggle(true, alt_text) => {
+ format!("<pre aria-label=\"{alt_text}\">")
+ }
+ GeminiLine::PreformattedToggle(false, _) => "</pre>".to_string(),
+ GeminiLine::Text(content, true) | GeminiLine::Quote(content) => content.to_string(),