class RDiscount
def initialize(text, *extensions)
* :no_pseudo_protocols - Do not process pseudo-protocols.
* :safelink - Do not make links for unknown URL types.
* :autolink - Greedily urlify links.
* :strict - Disable superscript and relaxed emphasis processing.
* :no_tables - Do not output any tables.
* :no_links - Do not output any tags.
* :no_image - Do not output any
* :generate_toc - Enable Table Of Contents generation
* :fold_lines - RedCloth compatible line folding (not used).
the source text.
* :filter_html - Do not output any raw HTML tags included in
* :filter_styles - Do not output tags.
* :smart - Enable SmartyPants processing.
supplied to set various processing options:
should be a string containing Markdown text. Additional arguments may be
Create a RDiscount Markdown processor. The +text+ argument
def initialize(text, *extensions) @text = text extensions.each { |e| send("#{e}=", true) } end