brew/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.7.3.rbi

258 lines
7.5 KiB
Plaintext
Raw Normal View History

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