Class: FormatBlockquote

Inherits:
ClWiki::CustomFormatter show all
Defined in:
lib/cl_wiki/format/format.blockquote.rb

Class Method Summary collapse

Class Method Details

.format_content(content, page) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/cl_wiki/format/format.blockquote.rb', line 8

def self.format_content(content, page)
  if content
    content.gsub!(/\[\]/, '<blockquote>')
    content.gsub!(%r{\[/\]}, '</blockquote>')
    content
  end
end

.match_reObject



4
5
6
# File 'lib/cl_wiki/format/format.blockquote.rb', line 4

def self.match_re
  %r{\[\].*\[/\]}m
end