# typed: true # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rdiscount` gem. # Please instead update this file by running `bin/tapioca gem rdiscount`. # source://rdiscount//lib/rdiscount.rb#117 Markdown = RDiscount # Discount is an implementation of John Gruber's Markdown markup # language in C. It implements all of the language as described in # {Markdown Syntax}[http://daringfireball.net/projects/markdown/syntax] # and passes the Markdown 1.0 test suite. The RDiscount extension makes # the Discount processor available via a Ruby C Extension library. # # == Usage # # RDiscount implements the basic protocol popularized by RedCloth and adopted # by BlueCloth: # require 'rdiscount' # markdown = RDiscount.new("Hello World!") # puts markdown.to_html # # == Replacing BlueCloth # # Inject RDiscount into your BlueCloth-using code by replacing your bluecloth # require statements with the following: # begin # require 'rdiscount' # BlueCloth = RDiscount # rescue LoadError # require 'bluecloth' # end # # source://rdiscount//lib/rdiscount.rb#26 class RDiscount # Create a RDiscount Markdown processor. The +text+ argument # should be a string containing Markdown text. Additional arguments may be # supplied to set various processing options: # # * :smart - Enable SmartyPants processing. # * :filter_styles - Do not output