} else {
processed_url = url.to_string();
}
- let display = if text.is_empty() { &processed_url } else { text };
+ let display = if text.is_empty() {
+ &processed_url
+ } else {
+ text
+ };
format!("<p class=\"a\"><a href=\"{processed_url}\">{display}</a></p>")
}
GeminiLine::Heading(level, content) => format!("<h{level}>{content}</h{level}>"),