Sha256: 62a0c9fbd3e32ead3c91fcb08baea7c0cc7e12c0701713e07025240218d7c012

Contents?: true

Size: 281 Bytes

Versions: 9

Compression:

Stored size: 281 Bytes

Contents

module Filters
  module PostFilter
    INTRO_HTML = '<div class="intro">'

    def format_intro!(html)
      html.gsub!(/<p>#{@front_wrap}#intro#{@end_wrap}<\/p>/,    INTRO_HTML)
      html.gsub!(/<p>#{@front_wrap}\/intro#{@end_wrap}<\/p>/,   Filters::CLOSE_DIV)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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