]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/scss/bootstrap-4.0.0-alpha.6/docs/_plugins/callout.rb
Drop bundled bootstrap and use submodule
[ipfire.org.git] / src / scss / bootstrap-4.0.0-alpha.6 / docs / _plugins / callout.rb
diff --git a/src/scss/bootstrap-4.0.0-alpha.6/docs/_plugins/callout.rb b/src/scss/bootstrap-4.0.0-alpha.6/docs/_plugins/callout.rb
deleted file mode 100755 (executable)
index 58453ec..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-# Source: https://stackoverflow.com/questions/19169849/how-to-get-markdown-processed-content-in-jekyll-tag-plugin
-
-module Jekyll
-  module Tags
-    class CalloutTag < Liquid::Block
-
-      def initialize(tag_name, type, tokens)
-        super
-        type.strip!
-        if %w(info danger warning).include?(type)
-          @type = type
-        else
-          puts "#{type} callout not supported. Defaulting to info"
-          @type = "info"
-        end
-      end
-
-      def render(context)
-        site = context.registers[:site]
-        converter = site.find_converter_instance(::Jekyll::Converters::Markdown)
-        output = converter.convert(super(context))
-        "<div class=\"bd-callout bd-callout-#{@type}\">#{output}</div>"
-      end
-    end
-  end
-end
-
-Liquid::Template.register_tag('callout', Jekyll::Tags::CalloutTag)