Sha256: 7bab401936ed1e53c01f9eefff15c258a9f03dd42fb2cf7dd0d90d655a9aa636

Contents?: true

Size: 742 Bytes

Versions: 17

Compression:

Stored size: 742 Bytes

Contents

module HTML
  class Pipeline
    # HTML Filter that converts Textile text into HTML and converts into a
    # DocumentFragment. This is different from most filters in that it can take a
    # non-HTML as input. It must be used as the first filter in a pipeline.
    #
    # Context options:
    #   :autolink => false    Disable autolinking URLs
    #
    # This filter does not write any additional information to the context hash.
    #
    # NOTE This filter is provided for really old comments only. It probably
    # shouldn't be used for anything new.
    class TextileFilter < TextFilter
      # Convert Textile to HTML and convert into a DocumentFragment.
      def call
        RedCloth.new(@text).to_html
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
html-pipeline-0.3.1 lib/html/pipeline/textile_filter.rb
html-pipeline-0.3.0 lib/html/pipeline/textile_filter.rb
html-pipeline-0.2.1 lib/html/pipeline/textile_filter.rb
html-pipeline-0.2.0 lib/html/pipeline/textile_filter.rb
html-pipeline-0.1.0 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.14 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.13 lib/html/pipeline/textile_filter.rb
geothird-html-pipeline-0.0.12 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.12 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.11 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.10 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.8 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.7 lib/html/pipeline/textile_filter.rb
html-pipeline-no-charlock-0.0.6 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.6 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.5 lib/html/pipeline/textile_filter.rb
html-pipeline-0.0.4 lib/html/pipeline/textile_filter.rb