use pulldown_cmark::BlockQuoteKind; // This icon is from GitHub, MIT License, see https://github.com/primer/octicons const ICON_NOTE: &str = r#""#; // This icon is from GitHub, MIT License, see https://github.com/primer/octicons const ICON_TIP: &str = r#""#; // This icon is from GitHub, MIT License, see https://github.com/primer/octicons const ICON_IMPORTANT: &str = r#""#; // This icon is from GitHub, MIT License, see https://github.com/primer/octicons const ICON_WARNING: &str = r#""#; // This icon is from GitHub, MIT License, see https://github.com/primer/octicons const ICON_CAUTION: &str = r#""#; pub(crate) fn select_tag(kind: BlockQuoteKind) -> (&'static str, &'static str, &'static str) { match kind { BlockQuoteKind::Note => ("note", ICON_NOTE, "Note"), BlockQuoteKind::Tip => ("tip", ICON_TIP, "Tip"), BlockQuoteKind::Important => ("important", ICON_IMPORTANT, "Important"), BlockQuoteKind::Warning => ("warning", ICON_WARNING, "Warning"), BlockQuoteKind::Caution => ("caution", ICON_CAUTION, "Caution"), } }