Sha256: 2f520054175fb34239aa47612dfa4a1d9dbee20f0140f22822f5a9af8c15e4d0

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

require 'discount.so'

class Discount

  # Original Markdown formatted text.
  attr_reader :text

  # Set true to have smarty-like quote translation performed.
  attr_accessor :smart

  # BlueCloth compatible output filtering.
  attr_accessor :filter_styles, :filter_html

  # RedCloth compatible line folding -- not used for Markdown but
  # included for compatibility.
  attr_accessor :fold_lines

  def initialize(text, *extensions)
    @text  = text
    @smart = nil
    @filter_styles = nil
    @filter_html = nil
    @fold_lines = nil
    extensions.each { |e| send("#{e}=", true) }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discount-1.2.6 lib/discount.rb
discount-1.2.6.1 lib/discount.rb