Sha256: 7c044b987b98a884c73be60e8195306bac5b380b2a4f87e69b08c0526856bfbd

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

module Gollum
  class Macro
    class Warn < Gollum::Macro
      def render(warning)
        icon = Octicons::Octicon.new('alert', {width: 24, height: 24})
        icon.options[:class] << ' mr-2'
        "<div class='flash flash-warn'>#{icon.to_svg}#{CGI::escapeHTML(warning)}</div>"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gollum-lib-5.1.2-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.1.2 lib/gollum-lib/macro/warn.rb