marcus 0.1.2

An experimental Markdown parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::helpers::{emoji, re};
use regex::Captures;

// Parse: MD Emojis
pub fn default(html: &mut String) {
  re::parse(html, re::from(re::EMOJI), | capture: Captures | {
    for [text, name] in emoji::LIST {
      if name == &capture[1] {
        return text.to_string();
      }
    }
    String::new()
  });
}