]> git.r.bdr.sh - rbdr/page/commitdiff
Fix incorrect h 1.3.0
authorRuben Beltran del Rio <redacted>
Sun, 4 Feb 2024 16:59:44 +0000 (17:59 +0100)
committerRuben Beltran del Rio <redacted>
Sun, 4 Feb 2024 16:59:44 +0000 (17:59 +0100)
src/gemini_parser.rs

index 14d74c62b251b203a53ac111bcff65aadbda1748..af1a5e0ec37e672c67b53f4855b3917a3b66b86f 100644 (file)
@@ -146,7 +146,7 @@ fn get_line_opener(line_type: &LineType, block_label: Option<&String>) -> String
         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();
             }