Browse Source

[gemini] change code fence matching to allow ```art for example

tags/0.8.7
Julien Blanchard 1 year ago
parent
commit
0e04540df1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gemini/parser.rs

+ 1
- 1
src/gemini/parser.rs View File

@@ -54,7 +54,7 @@ impl FromStr for TextElement {
54 54
             Ok(TextElement::ListItem(String::from(header)))
55 55
         } else if link_item_regexp.is_match(&line) {
56 56
             Ok(TextElement::LinkItem(String::from(line)))
57
-        } else if line == "```" {
57
+        } else if line.starts_with("```") {
58 58
             Ok(TextElement::MonoText(String::from(line)))
59 59
         } else {
60 60
             Ok(TextElement::Text(colors::colorize(line)))

Loading…
Cancel
Save