~exprez135/castor

0e04540df122624846f9a747ec26d1c792c027dc — Julien Blanchard 1 year, 4 months ago 1da4c74
[gemini] change code fence matching to allow ```art for example
1 files changed, 1 insertions(+), 1 deletions(-)

M src/gemini/parser.rs
M src/gemini/parser.rs => src/gemini/parser.rs +1 -1
@@ 54,7 54,7 @@ impl FromStr for TextElement {
            Ok(TextElement::ListItem(String::from(header)))
        } else if link_item_regexp.is_match(&line) {
            Ok(TextElement::LinkItem(String::from(line)))
        } else if line == "```" {
        } else if line.starts_with("```") {
            Ok(TextElement::MonoText(String::from(line)))
        } else {
            Ok(TextElement::Text(colors::colorize(line)))