Sha256: 394ede0dedbbacc19e71fcbcef791af8ffb4b5615c515196cda956dd5b90493d

Contents?: true

Size: 252 Bytes

Versions: 9

Compression:

Stored size: 252 Bytes

Contents

module Filters
  module PostFilter
    def format_octicons!(html)
      html.gsub!(/#{@front_wrap}\s*octicon-(\S+)\s*([^\\#{@wrap_symbol}]+)\s*#{@end_wrap}/, %|<span class="octicon octicon-\\1" aria-label="\\2" title="\\2"></span>|)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
extended-markdown-filter-0.4.10 lib/filters/post/octicon.rb
extended-markdown-filter-0.6.0 lib/filters/post/octicon.rb
extended-markdown-filter-0.5.1 lib/filters/post/octicon.rb
extended-markdown-filter-0.5.0 lib/filters/post/octicon.rb
extended-markdown-filter-0.4.9 lib/filters/post/octicon.rb
extended-markdown-filter-0.4.8 lib/filters/post/octicon.rb
extended-markdown-filter-0.4.7 lib/filters/post/octicon.rb
extended-markdown-filter-0.4.6 lib/filters/post/octicon.rb
extended-markdown-filter-0.4.5 lib/filters/post/octicon.rb