Sha256: f018dba34d993c7efeb7dfedfe8064275d6ddc6680c728ff5df29a24fb45bc0b
Contents?: true
Size: 306 Bytes
Versions: 43
Compression:
Stored size: 306 Bytes
Contents
# ~*~ encoding: utf-8 ~*~ # Plain Text # # Render plain text documents in a <pre> block without any special markup. class Gollum::Filter::PlainText < Gollum::Filter def extract(data) @markup.format == :txt ? "<pre>#{CGI.escapeHTML(data)}</pre>" : data end def process(data) data end end
Version data entries
43 entries across 43 versions & 2 rubygems