Sha256: 973db9e75f0274254d40722de70763bd1d401d5f055931651d29781e0d4525a5
Contents?: true
Size: 330 Bytes
Versions: 31
Compression:
Stored size: 330 Bytes
Contents
module Gollum class Macro class Octicon < Gollum::Macro def render(symbol, height = nil, width = nil) parameters = {} parameters[:height] = height if height parameters[:width] = width if width "<div>#{Octicons::Octicon.new(symbol, parameters).to_svg}</div>" end end end end
Version data entries
31 entries across 31 versions & 1 rubygems