Sha256: eb9f5756268371098d4c680a627011352c7139c464566a0159eb33a9ef779517
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module ClWiki class FormatBlockquote < ClWiki::CustomFormatter def self.match_re %r{\[\].*\[/\]}m end def self.format_content(content, page) if content content.gsub!(/\[\]/, '<blockquote>') content.gsub!(%r{\[/\]}, '</blockquote>') content end end end end ClWiki::CustomFormatters.instance.register(ClWiki::FormatBlockquote)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clwiki-3.3.0 | lib/cl_wiki/format_blockquote.rb |
clwiki-3.2.6 | lib/cl_wiki/format_blockquote.rb |