# 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 tags.
# * :filter_html - Do not output any raw HTML tags included in
# the source text.
# * :fold_lines - RedCloth compatible line folding (not used).
# * :footnotes - PHP markdown extra-style footnotes.
# * :generate_toc - Enable Table Of Contents generation
# * :no_image - Do not output any
tags.
# * :no_links - Do not output any tags.
# * :no_tables - Do not output any tables.
# * :strict - Disable superscript and relaxed emphasis processing.
# * :autolink - Greedily urlify links.
# * :safelink - Do not make links for unknown URL types.
# * :no_pseudo_protocols - Do not process pseudo-protocols.
# * :no_superscript - Disable superscript processing.
# * :no_strikethrough - Disable strikethrough processing.
# * :latex - Keep LaTeX inside $$ intact.
# * :explicitlist - Don't merge adjacent list into a single list.
#
# @return [RDiscount] a new instance of RDiscount
#
# source://rdiscount//lib/rdiscount.rb#110
def initialize(text, *extensions); end
# Convert URL in links, even if they aren't encased in <>
#
# source://rdiscount//lib/rdiscount.rb#64
def autolink; end
# Convert URL in links, even if they aren't encased in <>
#
# source://rdiscount//lib/rdiscount.rb#64
def autolink=(_arg0); end
# Don't merge adjacent list into a single list.
#
# source://rdiscount//lib/rdiscount.rb#82
def explicitlist; end
# Don't merge adjacent list into a single list.
#
# source://rdiscount//lib/rdiscount.rb#82
def explicitlist=(_arg0); end
# Do not output any raw HTML included in the source text.
#
# source://rdiscount//lib/rdiscount.rb#39
def filter_html; end
# Do not output any raw HTML included in the source text.
#
# source://rdiscount//lib/rdiscount.rb#39
def filter_html=(_arg0); end
# Do not output tags included in the source text.
#
# source://rdiscount//lib/rdiscount.rb#36
def filter_styles; end
# Do not output tags included in the source text.
#
# source://rdiscount//lib/rdiscount.rb#36
def filter_styles=(_arg0); end
# RedCloth compatible line folding -- not used for Markdown but
# included for compatibility.
#
# source://rdiscount//lib/rdiscount.rb#43
def fold_lines; end
# RedCloth compatible line folding -- not used for Markdown but
# included for compatibility.
#
# source://rdiscount//lib/rdiscount.rb#43
def fold_lines=(_arg0); end
# Enable php markdown extra-style footnotes
#
# source://rdiscount//lib/rdiscount.rb#46
def footnotes; end
# Enable php markdown extra-style footnotes
#
# source://rdiscount//lib/rdiscount.rb#46
def footnotes=(_arg0); end
# Enable Table Of Contents generation
#
# source://rdiscount//lib/rdiscount.rb#49
def generate_toc; end
# Enable Table Of Contents generation
#
# source://rdiscount//lib/rdiscount.rb#49
def generate_toc=(_arg0); end
# Keep LaTeX inside $$ intact.
#
# source://rdiscount//lib/rdiscount.rb#79
def latex; end
# Keep LaTeX inside $$ intact.
#
# source://rdiscount//lib/rdiscount.rb#79
def latex=(_arg0); end
# Not documented: run in markdown 1 compat mode (only used for MarkdownTest1.0)
#
# source://rdiscount//lib/rdiscount.rb#85
def md1compat; end
# Not documented: run in markdown 1 compat mode (only used for MarkdownTest1.0)
#
# source://rdiscount//lib/rdiscount.rb#85
def md1compat=(_arg0); end
# Do not process ![] and remove
tags from the output.
#
# source://rdiscount//lib/rdiscount.rb#52
def no_image; end
# Do not process ![] and remove
tags from the output.
#
# source://rdiscount//lib/rdiscount.rb#52
def no_image=(_arg0); end
# Do not process [] and remove tags from the output.
#
# source://rdiscount//lib/rdiscount.rb#55
def no_links; end
# Do not process [] and remove tags from the output.
#
# source://rdiscount//lib/rdiscount.rb#55
def no_links=(_arg0); end
# Do not process pseudo-protocols like [](id:name)
#
# source://rdiscount//lib/rdiscount.rb#70
def no_pseudo_protocols; end
# Do not process pseudo-protocols like [](id:name)
#
# source://rdiscount//lib/rdiscount.rb#70
def no_pseudo_protocols=(_arg0); end
# Disable strikethrough processing.
#
# source://rdiscount//lib/rdiscount.rb#76
def no_strikethrough; end
# Disable strikethrough processing.
#
# source://rdiscount//lib/rdiscount.rb#76
def no_strikethrough=(_arg0); end
# Disable superscript processing.
#
# source://rdiscount//lib/rdiscount.rb#73
def no_superscript; end
# Disable superscript processing.
#
# source://rdiscount//lib/rdiscount.rb#73
def no_superscript=(_arg0); end
# Do not process tables
#
# source://rdiscount//lib/rdiscount.rb#58
def no_tables; end
# Do not process tables
#
# source://rdiscount//lib/rdiscount.rb#58
def no_tables=(_arg0); end
# Don't make hyperlinks from [][] links that have unknown URL types.
#
# source://rdiscount//lib/rdiscount.rb#67
def safelink; end
# Don't make hyperlinks from [][] links that have unknown URL types.
#
# source://rdiscount//lib/rdiscount.rb#67
def safelink=(_arg0); end
# Set true to have smarty-like quote translation performed.
#
# source://rdiscount//lib/rdiscount.rb#33
def smart; end
# Set true to have smarty-like quote translation performed.
#
# source://rdiscount//lib/rdiscount.rb#33
def smart=(_arg0); end
# Disable superscript and relaxed emphasis processing.
#
# source://rdiscount//lib/rdiscount.rb#61
def strict; end
# Disable superscript and relaxed emphasis processing.
#
# source://rdiscount//lib/rdiscount.rb#61
def strict=(_arg0); end
# Original Markdown formatted text.
#
# source://rdiscount//lib/rdiscount.rb#30
def text; end
def to_html(*_arg0); end
def toc_content(*_arg0); end
end
# source://rdiscount//lib/rdiscount.rb#27
RDiscount::VERSION = T.let(T.unsafe(nil), String)