Commit 58c208ec authored by Thomas McDonald's avatar Thomas McDonald

re-work callout tag conditional

Output a warning if the type is not supported and default to info
parent 4c3c402b
......@@ -6,12 +6,11 @@ module Jekyll
def initialize(tag_name, type, tokens)
super
type.strip!
if %w(info danger warning).include?(type)
@type = type
if type == "danger"
@type = "danger"
elsif type == "warning"
@type = "warning"
elsif type == "info"
else
puts "#{type} callout not supported. Defaulting to info"
@type = "info"
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment