<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">=head1 NAME

Text::MarkMoreDown - Convert MarkMoreDown syntax to HTML

=head1 SYNOPSIS

    use Text::MarkMoreDown 'markmod';
    my $html = markmod($text);

    use Text::MarkMoreDown 'markmod';
    my $html = markmod( $text, {
        empty_element_suffix =&gt; '&gt;',
        tab_width =&gt; 2,
    } );

    use Text::MarkMoreDown;
    my $m = Text::MarkMoreDown-&gt;new;
    my $html = $m-&gt;markdown($text);

    use Text::MarkMoreDown;
    my $m = Text::MarkMoreDown-&gt;new(
        empty_element_suffix =&gt; '&gt;',
        tab_width =&gt; 2,
    );
    my $html = $m-&gt;markdown( $text );

=head1 DESCRIPTION

MarkMoreDown is a free MIT-licensed Ruby library for parsing and converting
a superset of Markdown. It is supports standard Markdown (with some minor
modifications) and various extensions that have inspired by PHP Markdown Extra,
MultiMarkdown, kramdown and etc.

=head1 SYNTAX

=head2 Headings

Headings from h1 through h6 are constructed with a # for each level:

    # h1 Heading
    ## h2 Heading
    ### h3 Heading
    #### h4 Heading
    ##### h5 Heading
    ###### h6 Heading

    &lt;h1&gt;h1 Heading&lt;/h1&gt;
    &lt;h2&gt;h2 Heading&lt;/h2&gt;
    &lt;h3&gt;h3 Heading&lt;/h3&gt;
    &lt;h4&gt;h4 Heading&lt;/h4&gt;
    &lt;h5&gt;h5 Heading&lt;/h5&gt;
    &lt;h6&gt;h6 Heading&lt;/h6&gt;

Alternatively, for H1 and H2, an underline-ish style:

    Alt-H1
    ======

    Alt-H2
    ------

    &lt;h1&gt;Alt-H1&lt;/h1&gt;
    &lt;h2&gt;Alt-H2&lt;/h2&gt;

B&lt;difference to standard markdown&gt;

optional labels

    ## h2 #:head-label
    #### h4 ######## :my-label

    &lt;h2 id="head-label"&gt;h2&lt;/h2&gt;
    &lt;h4 id="my-label"&gt;h4&lt;/h4&gt;

    Alt-h1
    ====== :my-label

    &lt;h1 id="my-label"&gt;Alt-H1&lt;/h1&gt;

=head2 Horizontal Rules

A horizontal rule for visually separating content is created by using three or
more asterisks, dashes or underscores (these may not be mixed on a line),
optionally separated by spaces, on an otherwise blank line. The first
asterisk, dash or underscore may optionally be indented up to three spaces.

    ***
    ---
    ___
    * * * * * * * * *
    --------
    ______________


    &lt;hr&gt;

=head2 Paragraphs and Line Breaks

paragraph is simply one or more consecutive lines of text, separated by one or
more blank lines. (A blank line is any line that looks like a blank line
â€” a line containing nothing but spaces or tabs is considered blank.) Normal
paragraphs should not be indented with spaces or tabs.

The implication of the â€œone or more consecutive lines of textâ€ rule is that
Markdown supports â€œhard-wrappedâ€ text paragraphs. This differs significantly
from most other text-to-HTML formatters (including Movable Typeâ€™s â€œConvert Line
Breaksâ€ option) which translate every line break character in a paragraph into
a &lt;br&gt; tag.

When you do want to insert a &lt;br&gt; break tag using Markdown, you end a line with
two or more spaces, then type return.

    Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus.
    Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum
    inermis inimicus efficiendi.â‹…â‹…
    Labore officiis his ex, soluta officiis
    concludaturque ei qui, vide sensibus vim ad.

    &lt;p&gt;
    Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi.
    &lt;br&gt;
    Labore officiis his ex, soluta officiisconcludaturque ei qui, vide sensibus vim ad.
    &lt;/p&gt;

B&lt;difference to standard markdown&gt;

=head3 &gt;&gt; Attribute List Definitions

{= .class #id style="..." dir="..." align="..." .... }

    Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus.
    Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum
    inermis inimicus efficiendi.â‹…â‹…
    Labore officiis his ex, soluta officiis
    concludaturque ei qui, vide sensibus vim ad.
    {= .class #entry .more align="center" #body width="200px" }

    &lt;p class="class more" id="entry body" align="left" width="200px"&gt;
    Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi.
    &lt;br&gt;
    Labore officiis his ex, soluta officiisconcludaturque ei qui, vide sensibus vim ad.
    &lt;/p&gt;

=head2 Emphasis

B&lt;Bold&gt;

For emphasizing a snippet of text with a heavier font-weight.

The following snippet of text is rendered as bold text.

    **rendered as bold text**

    &lt;strong&gt;rendered as bold text&lt;/strong&gt;

&lt;strong&gt;rendered as bold text&lt;/strong&gt;

B&lt;Italics&gt;

For emphasizing a snippet of text with italics.

    _rendered as italicized text_

    &lt;em&gt;rendered as italicized text&lt;/em&gt;

&lt;em&gt;rendered as italicized text&lt;/em&gt;

B&lt;Mark&gt;

    mark element defines ==marked== or ==highlighted== text

    mark element defines &lt;mar&gt;marked&lt;/mark&gt; or &lt;mark&gt;highlighted&lt;/mark&gt; text

mark element defines &lt;mar&gt;marked&lt;/mark&gt; or &lt;mark&gt;highlighted&lt;/mark&gt; text

B&lt;Inserted text&gt;

    ins element defines ++inserted++ (added) text.

    ins element defines &lt;ins&gt;inserted&lt;/ins&gt; (added) text.

ins element defines &lt;ins&gt;inserted&lt;/ins&gt; (added) text.

B&lt;Small&gt;

    small element defines --smaller-- text

    small element defines &lt;small&gt;smaller&lt;/small&gt; text

small element defines &lt;small&gt;smaller&lt;/small&gt; text

B&lt;strikethrough, deleted text&gt;

    ~~Strike through this text.~~

    &lt;del&gt;Strike through this text.&lt;/del&gt;

&lt;del&gt;Strike through this text.&lt;/del&gt;

B&lt;Deleted/Inserted Text&gt;

    ~~this is incorrect ~&gt; this is correct~~

    &lt;del&gt;this is incorrect&lt;/del&gt; &lt;ins&gt;this is correct&lt;/ins&gt;

&lt;del&gt;this is incorrect&lt;/del&gt; &lt;ins&gt;this is correct&lt;/ins&gt;

one space before and after ~&gt; is optional

B&lt;Superscript text&gt;

    x^y + z^

    x&lt;sup&gt;y + z&lt;/sup&gt;

x&lt;sup&gt;y + z&lt;/sup&gt;

B&lt;Subscript text&gt;

    text~index~

    text&lt;sub&gt;index&lt;/sub&gt;

    C~6~H~12~O~6~

    C&lt;sub&gt;6&lt;/sub&gt;H&lt;sub&gt;12&lt;/sub&gt;O&lt;sub&gt;6&lt;/sub&gt;

=begin html
C&lt;sub&gt;6&lt;/sub&gt;H&lt;sub&gt;12&lt;/sub&gt;O&lt;sub&gt;6&lt;/sub&gt;
=end html

=head2 Lists

Markdown supports ordered (numbered) and unordered (bulleted) lists.

=head3 Unordered Lists

Unordered lists use asterisks, pluses, and hyphens â€” interchangably â€” as list
markers.

+ Lorem ipsum dolor sit amet
+ Consectetur adipiscing elit
+ Integer molestie lorem at massa
+ Facilisis in pretium nisl aliquet
+ Nulla volutpat aliquam velit
  - Phasellus iaculis neque
    * Purus sodales ultricies
    * Vestibulum laoreet porttitor sem
  - Ac tristique libero volutpat at
+ Faucibus porta lacus fringilla vel
+ Aenean sit amet erat nunc
+ Eget porttitor lorem

&lt;ul&gt;
  &lt;li&gt;Lorem ipsum dolor sit amet&lt;/li&gt;
  &lt;li&gt;Consectetur adipiscing elit&lt;/li&gt;
  &lt;li&gt;Integer molestie lorem at massa&lt;/li&gt;
  &lt;li&gt;Facilisis in pretium nisl aliquet&lt;/li&gt;
  &lt;li&gt;Nulla volutpat aliquam velit
    &lt;ul&gt;
      &lt;li&gt;Phasellus iaculis neque&lt;/li&gt;
        &lt;ul&gt;
            &lt;li&gt;Purus sodales ultricies&lt;/li&gt;
            &lt;li&gt;Vestibulum laoreet porttitor sem&lt;/li&gt;
        &lt;/ul&gt;
      &lt;li&gt;Ac tristique libero volutpat at&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Faucibus porta lacus fringilla vel&lt;/li&gt;
  &lt;li&gt;Aenean sit amet erat nunc&lt;/li&gt;
  &lt;li&gt;Eget porttitor lorem&lt;/li&gt;
&lt;/ul&gt;

+ item
- item
* item

=head3 Ordered Lists

A list of items in which the order of items does explicitly matter.

    1. Lorem ipsum dolor sit amet
    2. Consectetur adipiscing elit
        1. item
            - unordered item
            - unordered item
        2. item
        3. item
    3. Integer molestie lorem at massa
    4. Facilisis in pretium nisl aliquet
    5. Nulla volutpat aliquam velit
    6. Faucibus porta lacus fringilla vel
    7. Aenean sit amet erat nunc
    8. Eget porttitor lorem

=head3  Definition Lists

MarkMoreDown has support for definition lists using the same syntax used in
PHP Markdown Extra. Specifically:

    Apple
    :   Pomaceous fruit of plants of the genus Malus in
        the family Rosaceae.
    :   An american computer company.

    Orange
    :   The fruit of an evergreen tree of the genus Citrus.

becomes:

    &lt;dl&gt;
    &lt;dt&gt;Apple&lt;/dt&gt;
    &lt;dd&gt;Pomaceous fruit of plants of the genus Malus in
    the family Rosaceae.&lt;/dd&gt;

    &lt;dt&gt;Orange&lt;/dt&gt;
    &lt;dd&gt;The fruit of an evergreen tree of the genus Citrus.&lt;/dd&gt;
    &lt;/dl&gt;

=head3 separator

If you want to have one list directly after another one (both with the same
list type, i.e. ordered or unordered), you need to use an EOB marker to
separate the two:

    * List one

    ^

    * List two

=head2 BlockQuotes

Markdown uses email-style &gt; characters for blockquoting. If youâ€™re familiar
with quoting passages of text in an email message, then you know how to create
a blockquote in Markdown. It looks best if you hard wrap the text and put a &gt;
before every line, Blockquotes can contain other Markdown elements, including
headers, lists, and code blocks

    &gt; This is a blockquote . Lorem ipsum dolor sit amet,
    &gt; consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
    &gt; Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
    &gt;
    &gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
    consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
    Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
    &gt; &gt; This is nested blockquote.
    &gt; ## This is a header.

    &gt; 1.   This is the first list item.
    &gt; 2.   This is the second list item.
    &gt;
    &gt; Here's some example code:
    &gt;

B&lt;separator&gt;

    If you want to have one list directly after another one (both with the same
    list type, i.e. ordered or unordered), you need to use an EOB marker to
    separate the two:

=head2 Links

Markdown supports two style of links: inline and reference.

In both styles, the link text is delimited by [square brackets].

=head3 inline-style links

To create an inline link, use a set of regular parentheses immediately after
the link textâ€™s closing square bracket. Inside the parentheses, put the URL
where you want the link to point, along with an optional title for the link,
surrounded in quotes. For example:

    This is [an example](http://kiavash.one/ "Title") inline link.

    [This link](http://kiavash.one/) has no title attribute.

If youâ€™re referring to a local resource on the same server, you can use
relative paths:

    See my [About](/about/) page for details.

=head3 reference-style links

Reference-style links use a second set of square brackets, inside which you
place a label of your choosing to identify the link:

    This is [an example][id] reference-style link.

You can optionally use a space to separate the sets of brackets:

    This is [an example] [id] reference-style link.

Then, anywhere in the document, you define your link label like this, on a line by itself:

    [id]: http://kiavash.one/  "Optional Title Here"

The implicit link name shortcut allows you to omit the name of the link, in
which case the link text itself is used as the name. Just use an empty set of
square brackets

    this is a link [kiavash][]

    [kiavash]: http://kiavash.one

=head3 Link Attributes

you can set the attributes on certain elements using an attribute block. put
the special attribute block {} immediately after the parenthesis or brackets
containing the address.

    This is [an example][id]{.class1 .class2 #id1 style="..." #id3 other-attributes}

    [This link](http://kiavash.one/){.class1 .class2 #id1 style="..." #id3 other-attributes}

B&lt;dont use spaces in attributes.&gt;

wrong

    style="border: 1px; width: 150px"

correct

    style="border:1px;width:150px"

=head2 Images

Admittedly, itâ€™s fairly difficult to devise a â€œnaturalâ€ syntax for placing
images into a plain text document format.

Markdown uses an image syntax that is intended to resemble the syntax for links,
allowing for two styles: inline and reference.

=head3 Inline Images

Inline image syntax looks like this:

    ![Alt text](/path/to/img.jpg)

    ![Alt text](/path/to/img.jpg "Optional title")

=head3 Reference-style Image

Reference-style image syntax looks like this:

    ![Alt text][id]

Where â€œidâ€ is the name of a defined image reference. Image references are
defined using syntax identical to link references:

    [id]: url/to/image  "Optional title attribute"

=head3 Image Attributes

you can set the attributes on certain elements using an attribute block. put
the special attribute block {} immediately after the parenthesis or brackets
containing the address.

    ![Alt text](/path/to/img.jpg){.class1 .class2 #id1 style="..." #id3 width="100px" height="100px"}

    ![Alt text][id]{.class1 .class2 #id1 style="border:2px;max-width:100%" #id3 other-attributes}

B&lt;dont use spaces in attributes.&gt;

wrong

    style="border: 1px; width: 150px"

correct

    style="border:1px;width:150px"

=head2 Codes

=head3 Inline code

To indicate a span of code, wrap it with backtick quotes (`). Unlike a
pre-formatted code block, a code span indicates code within a normal paragraph.
For example:

    Use the `printf()` function.

will produce:

    Use the &lt;code&gt;printf()&lt;/code&gt; function.


=head3 Code Blocks

Pre-formatted code blocks are used for writing about programming or markup
source code. Rather than forming normal paragraphs, the lines of a code block
are interpreted literally. Markdown wraps a code block in both &lt;pre&gt; and &lt;code&gt;
tags.

To produce a code block in Markdown, simply indent every line of the block by
at least 4 spaces or 1 tab. For example, given this input:

    This is a normal paragraph:

        This is a code block.

Markdown will generate:

    &lt;p&gt;This is a normal paragraph:&lt;/p&gt;

    &lt;pre&gt;&lt;code&gt;This is a code block.
    &lt;/code&gt;&lt;/pre&gt;

One level of indentation â€” 4 spaces or 1 tab â€” is removed from each line of the
code block. For example, this:

    Here is an example of AppleScript:

        tell application "Foo"
            beep
        end tell

will turn into:

    &lt;p&gt;Here is an example of AppleScript:&lt;/p&gt;

    &lt;pre&gt;&lt;code&gt;tell application "Foo"
        beep
        end tell
    &lt;/code&gt;&lt;/pre&gt;

=head3 separator

you can separate code blocks with ^

        code block1
        code block1

    ^

        code block2
        code block2

=head3 Block code "fences"

Use "fences" ``` to block in multiple lines of code.

    ```
    codes...
    ```

or

    ``` perl
    code...
    code...
    code...
    ```

    &lt;pre&gt;&lt;code class="language-perl"&gt;
        code...
        code...
        code...
    &lt;/code&gt;&lt;/pre&gt;

and

    ``` :class-name
    some codes...
    ```

    &lt;pre&gt;&lt;code class="class-name"&gt;
    some codes...
    &lt;/code&gt;&lt;/pre&gt;

=head2 Tables

    |              | Grouping                    ||
    | First Header | Second Header | Third Header |
    | ------------ | :-----------: | -----------: |
    | Content      | *Long Cell*                 ||
    | Content      | **Cell**      | Cell         |
    | New section  | More          | Data         |

=head1 OPTIONS

MarkMoreDown supports a number of options to it's processor which control the behaviour of the output document.

These options can be supplied to the constructor, on in a hash with the individual calls to the markdown method.
See the synopsis for examples of both of the above styles.

The options for the processor are:

=over

=item empty element suffix

This option can be used to generate normal HTML output. By default, it is '&gt;',
which is HTML, change to ' /&gt;' for xHTML.

=item img_ids

Controls if &lt;img&gt; tags generated have an id attribute. Defaults to true.
Turn off for compatibility with the original markdown.

=item heading_ids

Controls if &lt;hX&gt; tags generated have an id attribute. Defaults to true.
Turn off for compatibility with the original markdown.

=item tab_width

Controls indent width in the generated markup, defaults to 4

=item disable_tables

If true, this disables the MarkMoreDown table handling.

=item disable_footnotes

If true, this disables the MarkMoreDown footnotes handling.

=item disable_bibliography

If true, this disables the MarkMoreDown bibliography/citation handling.

=item disable_definition_lists

If true, this disables the MarkMoreDown definition list handling.

=back

=head1 METHODS

=head2 new

A simple constructor, see the SYNTAX and OPTIONS sections for more information.

=head2 markmod

The main function as far as the outside world is concerned. See the SYNOPSIS
for details on use.

=head1 AUTHOR

    John Gruber
    http://daringfireball.net/

    PHP port and other contributions by Michel Fortin
    http://michelf.com/

    MultiMarkdown by Fletcher Penney
    http://fletcher.freeshell.org/

    kramdown by Thomas Leitner
    http://kramdown.gettalong.org/

    CPAN Module Text::MultiMarkdown by Tomas Doran
    http://www.bobtfish.net/

    MarkMoreDown by Kiavash Mazi
    http://kiavash.one

=head1 THIS DISTRIBUTION

Please note that this distribution is a fork of Fletcher Penny's MarkMoreDown project,
and it *is not* in any way blessed by him.

Whilst this code aims to be compatible with the original MarkMoreDown (and incorporates
and passes the MarkMoreDown test suite) whilst fixing a number of bugs in the original -
there may be differences between the behaviour of this module and MarkMoreDown. If you find
any differences where you believe Text::MarkMoreDown behaves contrary to the MarkMoreDown spec,
please report them as bugs.

=head1 SOURCE CODE

You can find the source code repository for L&lt;Text::Markmdown&gt; and L&lt;Text::Markdoredown&gt;
on GitHub at &lt;http://github.com/bobtfish/text-markdown&gt;.

=head1 COPYRIGHT AND LICENSE

Original Code Copyright (c) 2003-2004 John Gruber
&lt;http://daringfireball.net/&gt;
All rights reserved.

MultiMarkdown changes Copyright (c) 2005-2006 Fletcher T. Penney
&lt;http://fletcher.freeshell.org/&gt;
All rights reserved.

Text::MarkMoreDown changes Copyright (c) 2018 Kiavash Mazi
&lt;http://kiavash.one&gt;

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.

* Neither the name "Markdown" nor the names of its contributors may
  be used to endorse or promote products derived from this software
  without specific prior written permission.

This software is provided by the copyright holders and contributors "as
is" and any express or implied warranties, including, but not limited
to, the implied warranties of merchantability and fitness for a
particular purpose are disclaimed. In no event shall the copyright owner
or contributors be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement of substitute goods or services; loss of use, data, or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.

=cut
</pre></body></html>