X-Git-Url: https://git.r.bdr.sh/rbdr/page/blobdiff_plain/fb0da1eec8c545c3010bc3e838a402ce6ebd31d5..45fbf824248215a737d5d0b52920b43b68941ad3:/src/gemini_parser.rs?ds=sidebyside diff --git a/src/gemini_parser.rs b/src/gemini_parser.rs index a7c752e..496dc0d 100644 --- a/src/gemini_parser.rs +++ b/src/gemini_parser.rs @@ -89,9 +89,9 @@ fn get_full_line_content(line_type: &LineType, line: &str) -> String { LineType::Link => { let url = get_link_address(line); if url.starts_with("gemini:") { - format!("
\n", url, get_link_content(line)) + format!("\n", url, get_link_content(line)) } else { - format!("\n", url.replace(".gmi", ".html"), get_link_content(line)) + format!("\n", url.replace(".gmi", ".html"), get_link_content(line)) } }, LineType::Heading1 => format!("