Sha256: 2df6cb3e6e4f2ad59cce5c3d5d02fb3acfdc40c78560f2e7203a4b0f3d741057

Contents?: true

Size: 363 Bytes

Versions: 9

Compression:

Stored size: 363 Bytes

Contents

class FormatBlockquote < ClWiki::CustomFormatter
  def FormatBlockquote.match_re
    /\[\].*\[\/\]/m
  end
  
  def FormatBlockquote.format_content(content, page)
    if content
      content.gsub!(/\[\]/, "<blockquote>")
      content.gsub!(/\[\/\]/, "</blockquote>")
      content
    end
  end
end

ClWiki::CustomFormatters.instance.register(FormatBlockquote)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
clwiki-2.4.0 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.3.2 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.3.0 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.2.0 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.1.8 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.1.7 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.1.6 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.0.1 lib/cl_wiki/format/format.blockquote.rb
clwiki-2.0.0 lib/cl_wiki/format/format.blockquote.rb