diff --git a/docs/_plugins/callout.rb b/docs/_plugins/callout.rb index 29ecbc99d779..536ca588ef3b 100644 --- a/docs/_plugins/callout.rb +++ b/docs/_plugins/callout.rb @@ -6,12 +6,11 @@ class CalloutTag < Liquid::Block def initialize(tag_name, type, tokens) super - @type = type - if type == "danger" - @type = "danger" - elsif type == "warning" - @type = "warning" - elsif type == "info" + type.strip! + if %w(info danger warning).include?(type) + @type = type + else + puts "#{type} callout not supported. Defaulting to info" @type = "info" end end