rushdown-emoji
rushdown-emoji is an extension for the rushdown that parses :joy: style emojis.
Installation
Add dependency to your Cargo.toml:
[]
= "x.y.z"
rushdown-emoji can also be used in no_std environments. To enable this feature, add the following line to your Cargo.toml:
= { = "x.y.z", = false, = ["no-std"] }
Syntax
I am :joy: emoji.
Usage
Example
use Write;
use ;
use ;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
I am :joy: emoji.
"#;
match markdown_to_html
Options
Parser options
| Option | Type | Default | Description |
|---|---|---|---|
blacklist |
Option<Rc<AsciiWordSet>> |
None |
A set of emoji shortcodes that should not be parsed as emojis. |
HTML renderer options
| Option | Type | Default | Description |
|---|---|---|---|
template |
Option<String> |
None |
A template string for rendering emojis. The template can include {emoji}, {shortcode} and {name} which will be replaced with the actual data. If None, the default template is used, which simply outputs the emoji character. |
Donation
BTC: 1NEDSyUmo4SMTDP83JJQSWi1MvQUGGNMZB
Github sponsors also welcome.
License
MIT
Author
Yusuke Inuzuka