Class: ClWiki::FormatBlockquote
- Inherits:
-
CustomFormatter
- Object
- CustomFormatter
- ClWiki::FormatBlockquote
- Defined in:
- lib/cl_wiki/format_blockquote.rb
Class Method Summary collapse
Class Method Details
.format_content(content, page) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/cl_wiki/format_blockquote.rb', line 9 def self.format_content(content, page) if content content.gsub!(/\[\]/, '<blockquote>') content.gsub!(%r{\[/\]}, '</blockquote>') content end end |
.match_re ⇒ Object
5 6 7 |
# File 'lib/cl_wiki/format_blockquote.rb', line 5 def self.match_re %r{\[\].*\[/\]}m end |