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



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

def FormatBlockquote.format_content(content, page)
  if content
    content.gsub!(/\[\]/, "<blockquote>")
    content.gsub!(/\[\/\]/, "</blockquote>")
    content
  end
end

.match_reObject



2
3
4
# File 'lib/cl_wiki/format/format.blockquote.rb', line 2

def FormatBlockquote.match_re
  /\[\].*\[\/\]/m
end