Skip to content

Commit

Permalink
Merge pull request #532 from fiji-flo/public-alert-types
Browse files Browse the repository at this point in the history
make `AlertType` methods public
  • Loading branch information
digitalmoksha authored Feb 8, 2025
2 parents 62e30f2 + f82c57c commit 28d9fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/alert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub enum AlertType {

impl AlertType {
/// Returns the default title for an alert type
pub(crate) fn default_title(&self) -> String {
pub fn default_title(&self) -> String {
match *self {
AlertType::Note => String::from("Note"),
AlertType::Tip => String::from("Tip"),
Expand All @@ -50,7 +50,7 @@ impl AlertType {
}

/// Returns the CSS class to use for an alert type
pub(crate) fn css_class(&self) -> String {
pub fn css_class(&self) -> String {
match *self {
AlertType::Note => String::from("markdown-alert-note"),
AlertType::Tip => String::from("markdown-alert-tip"),
Expand Down

0 comments on commit 28d9fac

Please sign in to comment.