Class: FormatPreBlockquote

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

Class Method Summary collapse

Class Method Details

.format_content(content, page) ⇒ Object



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

def self.format_content(content, page)
  content = CGI.escapeHTML(content)
  content.gsub!(/\[p\]/i, '<blockquote><pre>')
  content.gsub!(%r{\[/p\]}i, '</pre></blockquote>')
end

.match_reObject



6
7
8
# File 'lib/cl_wiki/format/format.pre.blockquote.rb', line 6

def self.match_re
  %r{\[p\].*?\[/p\]}mi
end