#![cfg(feature = "shortcodes")] use super::*; #[test] fn emojis() { // Test match html_opts!( [extension.shortcodes], "Hello, happy days! :smile:\n", "

Hello, happy days! 😄

\n", ); // Test match html_opts!( [extension.shortcodes], ":smile::smile::smile::smile:\n", "

😄😄😄😄

\n", ); // Test match html_opts!( [extension.shortcodes], ":smile:::smile:::smile:::smile:\n", "

😄:😄:😄:😄

\n", ); // Test no match html_opts!( [extension.shortcodes], "Hello, happy days! :diego:\n", "

Hello, happy days! :diego:

\n", ); } #[test] fn emojis_specials() { // Take a quick trip to https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json // with `jq -r .[].aliases[] | sort | grep -E '[^a-z_-]'` to see what else there is to see. html_opts!( [extension.shortcodes], ":+1: :-1: :clock12::1234: :1st_place_medal: :e-mail: :non-potable_water:", "

👍 👎 🕛🔢 🥇 📧 🚱

\n", ); }