Class: FormatPreBlockquote
- Inherits:
-
ClWiki::CustomFormatter
- Object
- ClWiki::CustomFormatter
- FormatPreBlockquote
- Defined in:
- lib/cl_wiki/format/format.pre.blockquote.rb
Class Method Summary collapse
Class Method Details
.format_content(content, page) ⇒ Object
8 9 10 11 12 |
# File 'lib/cl_wiki/format/format.pre.blockquote.rb', line 8 def FormatPreBlockquote.format_content(content, page) content = CGI.escapeHTML(content) content.gsub!(/\[p\]/i, "<blockquote><pre>") content.gsub!(/\[\/p\]/i, "</pre></blockquote>") end |
.match_re ⇒ Object
4 5 6 |
# File 'lib/cl_wiki/format/format.pre.blockquote.rb', line 4 def FormatPreBlockquote.match_re /\[p\].*?\[\/p\]/mi end |