let encoded_line = line.replace("<", "<").replace(">", ">");
match line_type {
LineType::Text => format!("<p>{}</p>\n", encoded_line.trim()),
- LineType::Blank => "<br/>\n".to_string(),
+ LineType::Blank => "<br>\n".to_string(),
LineType::Link => {
let url = get_link_address(line);
if url.starts_with("gemini:") {
LineType::Quote => "<blockquote>".to_string(),
LineType::PreformattedText => {
if let Some(label) = &block_label {
- return format!("<pre role=\"img\" aria-label=\"h{}\">", label);
+ return format!("<pre role=\"img\" aria-label=\"{}\">", label);
} else {
return "<pre>".to_string();
}