Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
ruby-kramdown /
rdoc /
Kramdown /
[ HOME SHELL ]
Name
Size
Permission
Action
Converter
[ DIR ]
drwxr-xr-x
Options
[ DIR ]
drwxr-xr-x
Parser
[ DIR ]
drwxr-xr-x
Utils
[ DIR ]
drwxr-xr-x
Converter.html
3.31
KB
-rw-r--r--
Document.html
13.8
KB
-rw-r--r--
Element.html
34.86
KB
-rw-r--r--
Error.html
2.52
KB
-rw-r--r--
Options.html
27.26
KB
-rw-r--r--
Parser.html
2.55
KB
-rw-r--r--
Utils.html
7.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Element.html
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>class Kramdown::Element - RDoc Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "../"; var index_rel_prefix = "../"; </script> <script src="../js/jquery.js"></script> <script src="../js/darkfish.js"></script> <link href="../css/fonts.css" rel="stylesheet"> <link href="../css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="class"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="../index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="../table_of_contents.html#pages">Pages</a> <a href="../table_of_contents.html#classes">Classes</a> <a href="../table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="search-field-wrapper"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div class="nav-section"> <h3>Table of Contents</h3> <ul class="link-list" role="directory"> <li><a href="#class-Kramdown::Element-label-Structural+Elements">Structural Elements</a> <li><a href="#class-Kramdown::Element-label-3Aroot">:root</a> <li><a href="#class-Kramdown::Element-label-3Ablank">:blank</a> <li><a href="#class-Kramdown::Element-label-3Ap">:p</a> <li><a href="#class-Kramdown::Element-label-3Aheader">:header</a> <li><a href="#class-Kramdown::Element-label-3Ablockquote">:blockquote</a> <li><a href="#class-Kramdown::Element-label-3Acodeblock">:codeblock</a> <li><a href="#class-Kramdown::Element-label-3Aul">:ul</a> <li><a href="#class-Kramdown::Element-label-3Aol">:ol</a> <li><a href="#class-Kramdown::Element-label-3Ali">:li</a> <li><a href="#class-Kramdown::Element-label-3Adl">:dl</a> <li><a href="#class-Kramdown::Element-label-3Adt">:dt</a> <li><a href="#class-Kramdown::Element-label-3Add">:dd</a> <li><a href="#class-Kramdown::Element-label-3Ahr">:hr</a> <li><a href="#class-Kramdown::Element-label-3Atable">:table</a> <li><a href="#class-Kramdown::Element-label-3Athead">:thead</a> <li><a href="#class-Kramdown::Element-label-3Atbody">:tbody</a> <li><a href="#class-Kramdown::Element-label-3Atfoot">:tfoot</a> <li><a href="#class-Kramdown::Element-label-3Atr">:tr</a> <li><a href="#class-Kramdown::Element-label-3Atd">:td</a> <li><a href="#class-Kramdown::Element-label-3Amath">:math</a> <li><a href="#class-Kramdown::Element-label-Text+Markup+Elements">Text Markup Elements</a> <li><a href="#class-Kramdown::Element-label-3Atext">:text</a> <li><a href="#class-Kramdown::Element-label-3Abr">:br</a> <li><a href="#class-Kramdown::Element-label-3Aa">:a</a> <li><a href="#class-Kramdown::Element-label-3Aimg">:img</a> <li><a href="#class-Kramdown::Element-label-3Acodespan">:codespan</a> <li><a href="#class-Kramdown::Element-label-3Afootnote">:footnote</a> <li><a href="#class-Kramdown::Element-label-3Aem">:em</a> <li><a href="#class-Kramdown::Element-label-3Astrong">:strong</a> <li><a href="#class-Kramdown::Element-label-3Aentity">:entity</a> <li><a href="#class-Kramdown::Element-label-3Atypographic_sym">:typographic_sym</a> <li><a href="#class-Kramdown::Element-label-3Asmart_quote">:smart_quote</a> <li><a href="#class-Kramdown::Element-label-3Aabbreviation">:abbreviation</a> <li><a href="#class-Kramdown::Element-label-Other+Elements">Other Elements</a> <li><a href="#class-Kramdown::Element-label-3Ahtml_element">:html_element</a> <li><a href="#class-Kramdown::Element-label-3Axml_comment">:xml_comment</a> <li><a href="#class-Kramdown::Element-label-3Axml_pi">:xml_pi</a> <li><a href="#class-Kramdown::Element-label-3Acomment">:comment</a> <li><a href="#class-Kramdown::Element-label-3Araw">:raw</a> </ul> </div> <div id="class-metadata"> <div id="parent-class-section" class="nav-section"> <h3>Parent</h3> <p class="link">Object </div> <!-- Method Quickref --> <div id="method-list-section" class="nav-section"> <h3>Methods</h3> <ul class="link-list" role="directory"> <li ><a href="#method-c-category">::category</a> <li ><a href="#method-c-new">::new</a> <li ><a href="#method-i-attr">#attr</a> <li ><a href="#method-i-options">#options</a> </ul> </div> </div> </nav> <main role="main" aria-labelledby="class-Kramdown::Element"> <h1 id="class-Kramdown::Element" class="class"> class Kramdown::Element </h1> <section class="description"> <p>Represents all elements in the element tree.</p> <p>kramdown only uses this one class for representing all available elements in an element tree (paragraphs, headers, emphasis, …). The type of element can be set via the <a href="Element.html#attribute-i-type">type</a> accessor.</p> <p>Following is a description of all supported element types.</p> <p>Note that the option :location may contain the start line number of an element in the source document.</p> <h2 id="class-Kramdown::Element-label-Structural+Elements">Structural Elements<span><a href="#class-Kramdown::Element-label-Structural+Elements">¶</a> <a href="#top">↑</a></span></h2> <h3 id="class-Kramdown::Element-label-3Aroot">:root<span><a href="#class-Kramdown::Element-label-3Aroot">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>None</p> </dd><dt>Usage context <dd> <p>As the root element of a document</p> </dd><dt>Content model <dd> <p>Block-level elements</p> </dd></dl> <p>Represents the root of a kramdown document.</p> <p>The root element contains the following option keys:</p> <dl class="rdoc-list note-list"><dt>:encoding <dd> <p>When running on Ruby 1.9 this key has to be set to the encoding used for the text parts of the kramdown document.</p> </dd><dt>:abbrev_defs <dd> <p>This key may be used to store the mapping of abbreviation to abbreviation definition.</p> </dd><dt>:abbrev_attr <dd> <p>This key may be used to store the mapping of abbreviation to abbreviation attributes.</p> </dd><dt>:options <dd> <p>This key may be used to store options that were set during parsing of the document.</p> </dd></dl> <h3 id="class-Kramdown::Element-label-3Ablank">:blank<span><a href="#class-Kramdown::Element-label-3Ablank">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>Empty</p> </dd></dl> <p>Represents one or more blank lines. It is not allowed to have two or more consecutive blank elements.</p> <p>The <code>value</code> field may contain the original content of the blank lines.</p> <h3 id="class-Kramdown::Element-label-3Ap">:p<span><a href="#class-Kramdown::Element-label-3Ap">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>Span-level elements</p> </dd></dl> <p>Represents a paragraph.</p> <p>If the option :transparent is <code>true</code>, this element just represents a block of text. I.e. this element just functions as a container for span-level elements.</p> <h3 id="class-Kramdown::Element-label-3Aheader">:header<span><a href="#class-Kramdown::Element-label-3Aheader">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>Span-level elements</p> </dd></dl> <p>Represents a header.</p> <p>The option :level specifies the header level and has to contain a number between 1 and 6. The option :raw_text has to contain the raw header text.</p> <h3 id="class-Kramdown::Element-label-3Ablockquote">:blockquote<span><a href="#class-Kramdown::Element-label-3Ablockquote">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>Block-level elements</p> </dd></dl> <p>Represents a blockquote.</p> <h3 id="class-Kramdown::Element-label-3Acodeblock">:codeblock<span><a href="#class-Kramdown::Element-label-3Acodeblock">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>Empty</p> </dd></dl> <p>Represents a code block, i.e. a block of text that should be used as-is.</p> <p>The <code>value</code> field has to contain the content of the code block.</p> <p>The option :lang specifies a highlighting language with possible HTML style options (e.g. php?start_inline=1) and should be used instead of a possibly also available language embedded in a class name of the form 'language-LANG'.</p> <h3 id="class-Kramdown::Element-label-3Aul">:ul<span><a href="#class-Kramdown::Element-label-3Aul">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>One or more :li elements</p> </dd></dl> <p>Represents an unordered list.</p> <h3 id="class-Kramdown::Element-label-3Aol">:ol<span><a href="#class-Kramdown::Element-label-3Aol">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>One or more :li elements</p> </dd></dl> <p>Represents an ordered list.</p> <h3 id="class-Kramdown::Element-label-3Ali">:li<span><a href="#class-Kramdown::Element-label-3Ali">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Inside :ol and :ul elements</p> </dd><dt>Content model <dd> <p>Block-level elements</p> </dd></dl> <p>Represents a list item of an ordered or unordered list.</p> <p>Note that the first child of a list item must not be a :blank element!</p> <h3 id="class-Kramdown::Element-label-3Adl">:dl<span><a href="#class-Kramdown::Element-label-3Adl">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>One or more groups each consisting of one or more :dt elements followed by one or more :dd elements.</p> </dd></dl> <p>Represents a definition list which contains groups consisting of terms and definitions for them.</p> <h3 id="class-Kramdown::Element-label-3Adt">:dt<span><a href="#class-Kramdown::Element-label-3Adt">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Before :dt or :dd elements inside a :dl elment</p> </dd><dt>Content model <dd> <p>Span-level elements</p> </dd></dl> <p>Represents the term part of a term-definition group in a definition list.</p> <h3 id="class-Kramdown::Element-label-3Add">:dd<span><a href="#class-Kramdown::Element-label-3Add">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>After :dt or :dd elements inside a :dl elment</p> </dd><dt>Content model <dd> <p>Block-level elements</p> </dd></dl> <p>Represents the definition part of a term-definition group in a definition list.</p> <h3 id="class-Kramdown::Element-label-3Ahr">:hr<span><a href="#class-Kramdown::Element-label-3Ahr">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a horizontal line.</p> <h3 id="class-Kramdown::Element-label-3Atable">:table<span><a href="#class-Kramdown::Element-label-3Atable">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Where block-level elements are expected</p> </dd><dt>Content model <dd> <p>Zero or one :thead elements, one or more :tbody elements, zero or one :tfoot elements</p> </dd></dl> <p>Represents a table. Each table row (i.e. :tr element) of the table has to contain the same number of :td elements.</p> <p>The option :alignment has to be an array containing the alignment values, exactly one for each column of the table. The possible alignment values are :left, :center, :right and :default.</p> <h3 id="class-Kramdown::Element-label-3Athead">:thead<span><a href="#class-Kramdown::Element-label-3Athead">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>None</p> </dd><dt>Usage context <dd> <p>As first element inside a :table element</p> </dd><dt>Content model <dd> <p>One or more :tr elements</p> </dd></dl> <p>Represents the table header.</p> <h3 id="class-Kramdown::Element-label-3Atbody">:tbody<span><a href="#class-Kramdown::Element-label-3Atbody">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>None</p> </dd><dt>Usage context <dd> <p>After a :thead element but before a :tfoot element inside a :table element</p> </dd><dt>Content model <dd> <p>One or more :tr elements</p> </dd></dl> <p>Represents a table body.</p> <h3 id="class-Kramdown::Element-label-3Atfoot">:tfoot<span><a href="#class-Kramdown::Element-label-3Atfoot">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>None</p> </dd><dt>Usage context <dd> <p>As last element inside a :table element</p> </dd><dt>Content model <dd> <p>One or more :tr elements</p> </dd></dl> <p>Represents the table footer.</p> <h3 id="class-Kramdown::Element-label-3Atr">:tr<span><a href="#class-Kramdown::Element-label-3Atr">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>None</p> </dd><dt>Usage context <dd> <p>Inside :thead, :tbody and :tfoot elements</p> </dd><dt>Content model <dd> <p>One or more :td elements</p> </dd></dl> <p>Represents a table row.</p> <h3 id="class-Kramdown::Element-label-3Atd">:td<span><a href="#class-Kramdown::Element-label-3Atd">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block-level element</p> </dd><dt>Usage context <dd> <p>Inside :tr elements</p> </dd><dt>Content model <dd> <p>As child of :thead/:tr span-level elements, as child of :tbody/:tr and :tfoot/:tr block-level elements</p> </dd></dl> <p>Represents a table cell.</p> <h3 id="class-Kramdown::Element-label-3Amath">:math<span><a href="#class-Kramdown::Element-label-3Amath">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block/span-level element</p> </dd><dt>Usage context <dd> <p>Where block/span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents mathematical text that is written in LaTeX.</p> <p>The <code>value</code> field has to contain the actual mathematical text.</p> <p>The option :category has to be set to either :span or :block depending on the context where the element is used.</p> <h2 id="class-Kramdown::Element-label-Text+Markup+Elements">Text Markup Elements<span><a href="#class-Kramdown::Element-label-Text+Markup+Elements">¶</a> <a href="#top">↑</a></span></h2> <h3 id="class-Kramdown::Element-label-3Atext">:text<span><a href="#class-Kramdown::Element-label-3Atext">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents text.</p> <p>The <code>value</code> field has to contain the text itself.</p> <h3 id="class-Kramdown::Element-label-3Abr">:br<span><a href="#class-Kramdown::Element-label-3Abr">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a hard line break.</p> <h3 id="class-Kramdown::Element-label-3Aa">:a<span><a href="#class-Kramdown::Element-label-3Aa">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>Span-level elements</p> </dd></dl> <p>Represents a link to an URL.</p> <p>The attribute <code>href</code> has to be set to the URL to which the link points. The attribute <code>title</code> optionally contains the title of the link.</p> <h3 id="class-Kramdown::Element-label-3Aimg">:img<span><a href="#class-Kramdown::Element-label-3Aimg">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents an image.</p> <p>The attribute <code>src</code> has to be set to the URL of the image. The attribute <code>alt</code> has to contain a text description of the image. The attribute <code>title</code> optionally contains the title of the image.</p> <h3 id="class-Kramdown::Element-label-3Acodespan">:codespan<span><a href="#class-Kramdown::Element-label-3Acodespan">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents verbatim text.</p> <p>The <code>value</code> field has to contain the content of the code span.</p> <h3 id="class-Kramdown::Element-label-3Afootnote">:footnote<span><a href="#class-Kramdown::Element-label-3Afootnote">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a footnote marker.</p> <p>The <code>value</code> field has to contain an element whose children are the content of the footnote. The option :name has to contain a valid and unique footnote name. A valid footnote name consists of a word character or a digit and then optionally followed by other word characters, digits or dashes.</p> <h3 id="class-Kramdown::Element-label-3Aem">:em<span><a href="#class-Kramdown::Element-label-3Aem">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>Span-level elements</p> </dd></dl> <p>Represents emphasis of its contents.</p> <h3 id="class-Kramdown::Element-label-3Astrong">:strong<span><a href="#class-Kramdown::Element-label-3Astrong">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>Span-level elements</p> </dd></dl> <p>Represents strong importance for its contents.</p> <h3 id="class-Kramdown::Element-label-3Aentity">:entity<span><a href="#class-Kramdown::Element-label-3Aentity">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents an HTML entity.</p> <p>The <code>value</code> field has to contain an instance of <a href="Utils/Entities/Entity.html">Kramdown::Utils::Entities::Entity</a>. The option :original can be used to store the original representation of the entity.</p> <h3 id="class-Kramdown::Element-label-3Atypographic_sym">:typographic_sym<span><a href="#class-Kramdown::Element-label-3Atypographic_sym">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a typographic symbol.</p> <p>The <code>value</code> field needs to contain a Symbol representing the specific typographic symbol from the following list:</p> <dl class="rdoc-list note-list"><dt>:mdash <dd> <p>An mdash character (—)</p> </dd><dt>:ndash <dd> <p>An ndash character (–)</p> </dd><dt>:hellip <dd> <p>An ellipsis (…)</p> </dd><dt>:laquo <dd> <p>A left guillemet (<<)</p> </dd><dt>:raquo <dd> <p>A right guillemet (>>)</p> </dd><dt>:laquo_space <dd> <p>A left guillemet with a space (<< )</p> </dd><dt>:raquo_space <dd> <p>A right guillemet with a space ( >>)</p> </dd></dl> <h3 id="class-Kramdown::Element-label-3Asmart_quote">:smart_quote<span><a href="#class-Kramdown::Element-label-3Asmart_quote">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a quotation character.</p> <p>The <code>value</code> field needs to contain a Symbol representing the specific quotation character:</p> <dl class="rdoc-list note-list"><dt>:lsquo <dd> <p>Left single quote</p> </dd><dt>:rsquo <dd> <p>Right single quote</p> </dd><dt>:ldquo <dd> <p>Left double quote</p> </dd><dt>:rdquo <dd> <p>Right double quote</p> </dd></dl> <h3 id="class-Kramdown::Element-label-3Aabbreviation">:abbreviation<span><a href="#class-Kramdown::Element-label-3Aabbreviation">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Span-level element</p> </dd><dt>Usage context <dd> <p>Where span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a text part that is an abbreviation.</p> <p>The <code>value</code> field has to contain the text part that is the abbreviation. The definition of the abbreviation is stored in the :root element of the document.</p> <h2 id="class-Kramdown::Element-label-Other+Elements">Other Elements<span><a href="#class-Kramdown::Element-label-Other+Elements">¶</a> <a href="#top">↑</a></span></h2> <h3 id="class-Kramdown::Element-label-3Ahtml_element">:html_element<span><a href="#class-Kramdown::Element-label-3Ahtml_element">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block/span-level element</p> </dd><dt>Usage context <dd> <p>Where block/span-level elements or raw HTML elements are expected</p> </dd><dt>Content model <dd> <p>Depends on the element</p> </dd></dl> <p>Represents an HTML element.</p> <p>The <code>value</code> field has to contain the name of the HTML element the element is representing.</p> <p>The option :category has to be set to either :span or :block depending on the whether the element is a block-level or a span-level element. The option :content_model has to be set to the content model for the element (either :block if it contains block-level elements, :span if it contains span-level elements or :raw if it contains raw content).</p> <h3 id="class-Kramdown::Element-label-3Axml_comment">:xml_comment<span><a href="#class-Kramdown::Element-label-3Axml_comment">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block/span-level element</p> </dd><dt>Usage context <dd> <p>Where block/span-level elements are expected or in raw HTML elements</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents an XML/HTML comment.</p> <p>The <code>value</code> field has to contain the whole XML/HTML comment including the delimiters.</p> <p>The option :category has to be set to either :span or :block depending on the context where the element is used.</p> <h3 id="class-Kramdown::Element-label-3Axml_pi">:xml_pi<span><a href="#class-Kramdown::Element-label-3Axml_pi">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block/span-level element</p> </dd><dt>Usage context <dd> <p>Where block/span-level elements are expected or in raw HTML elements</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents an XML/HTML processing instruction.</p> <p>The <code>value</code> field has to contain the whole XML/HTML processing instruction including the delimiters.</p> <p>The option :category has to be set to either :span or :block depending on the context where the element is used.</p> <h3 id="class-Kramdown::Element-label-3Acomment">:comment<span><a href="#class-Kramdown::Element-label-3Acomment">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block/span-level element</p> </dd><dt>Usage context <dd> <p>Where block/span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a comment.</p> <p>The <code>value</code> field has to contain the comment.</p> <p>The option :category has to be set to either :span or :block depending on the context where the element is used. If it is set to :span, then no blank lines are allowed in the comment.</p> <h3 id="class-Kramdown::Element-label-3Araw">:raw<span><a href="#class-Kramdown::Element-label-3Araw">¶</a> <a href="#top">↑</a></span></h3> <dl class="rdoc-list label-list"><dt>Category <dd> <p>Block/span-level element</p> </dd><dt>Usage context <dd> <p>Where block/span-level elements are expected</p> </dd><dt>Content model <dd> <p>None</p> </dd></dl> <p>Represents a raw string that should not be modified. For example, the element could contain some HTML code that should be output as-is without modification and escaping.</p> <p>The <code>value</code> field has to contain the actual raw text.</p> <p>The option :category has to be set to either :span or :block depending on the context where the element is used. If it is set to :span, then no blank lines are allowed in the raw text.</p> <p>The option :type can be set to an array of strings to define for which converters the raw string is valid.</p> </section> <section id="5Buntitled-5D" class="documentation-section"> <section class="attribute-method-details" class="method-section"> <header> <h3>Attributes</h3> </header> <div id="attribute-i-children" class="method-detail"> <div class="method-heading attribute-method-heading"> <span class="method-name">children</span><span class="attribute-access-type">[RW]</span> </div> <div class="method-description"> <p>The child elements of this element.</p> </div> </div> <div id="attribute-i-type" class="method-detail"> <div class="method-heading attribute-method-heading"> <span class="method-name">type</span><span class="attribute-access-type">[RW]</span> </div> <div class="method-description"> <p>A symbol representing the element type. For example, :p or :blockquote.</p> </div> </div> <div id="attribute-i-value" class="method-detail"> <div class="method-heading attribute-method-heading"> <span class="method-name">value</span><span class="attribute-access-type">[RW]</span> </div> <div class="method-description"> <p>The value of the element. The interpretation of this field depends on the type of the element. Many elements don't use this field.</p> </div> </div> </section> <section id="public-class-5Buntitled-5D-method-details" class="method-section"> <header> <h3>Public Class Methods</h3> </header> <div id="method-c-category" class="method-detail "> <div class="method-heading"> <span class="method-name">category</span><span class="method-args">(el)</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Return the category of <code>el</code> which can be :block, :span or <code>nil</code>.</p> <p>Most elements have a fixed category, however, some elements can either appear in a block-level or a span-level context. These elements need to have the option :category correctly set.</p> <div class="method-source-code" id="category-source"> <pre><span class="ruby-comment"># File lib/kramdown/element.rb, line 515</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">category</span>(<span class="ruby-identifier">el</span>) <span class="ruby-constant">CATEGORY</span>[<span class="ruby-identifier">el</span>.<span class="ruby-identifier">type</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">el</span>.<span class="ruby-identifier">options</span>[<span class="ruby-value">:category</span>] <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div id="method-c-new" class="method-detail "> <div class="method-heading"> <span class="method-name">new</span><span class="method-args">(type, value = nil, attr = nil, options = nil)</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Create a new <a href="Element.html">Element</a> object of type <code>type</code>. The optional parameters <code>value</code>, <code>attr</code> and <code>options</code> can also be set in this constructor for convenience.</p> <div class="method-source-code" id="new-source"> <pre><span class="ruby-comment"># File lib/kramdown/element.rb, line 487</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">attr</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = <span class="ruby-keyword">nil</span>) <span class="ruby-ivar">@type</span>, <span class="ruby-ivar">@value</span>, <span class="ruby-ivar">@attr</span>, <span class="ruby-ivar">@options</span> = <span class="ruby-identifier">type</span>, <span class="ruby-identifier">value</span>, (<span class="ruby-constant">Utils</span><span class="ruby-operator">::</span><span class="ruby-constant">OrderedHash</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">merge!</span>(<span class="ruby-identifier">attr</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">attr</span>), <span class="ruby-identifier">options</span> <span class="ruby-ivar">@children</span> = [] <span class="ruby-keyword">end</span></pre> </div> </div> </div> </section> <section id="public-instance-5Buntitled-5D-method-details" class="method-section"> <header> <h3>Public Instance Methods</h3> </header> <div id="method-i-attr" class="method-detail "> <div class="method-heading"> <span class="method-name">attr</span><span class="method-args">()</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>The attributes of the element. Uses an Utils::OrderedHash to retain the insertion order.</p> <div class="method-source-code" id="attr-source"> <pre><span class="ruby-comment"># File lib/kramdown/element.rb, line 493</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">attr</span> <span class="ruby-ivar">@attr</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Utils</span><span class="ruby-operator">::</span><span class="ruby-constant">OrderedHash</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div id="method-i-options" class="method-detail "> <div class="method-heading"> <span class="method-name">options</span><span class="method-args">()</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>The options hash for the element. It is used for storing arbitray options.</p> <div class="method-source-code" id="options-source"> <pre><span class="ruby-comment"># File lib/kramdown/element.rb, line 498</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">options</span> <span class="ruby-ivar">@options</span> <span class="ruby-operator">||=</span> {} <span class="ruby-keyword">end</span></pre> </div> </div> </div> </section> </section> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="https://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>
Close