\& * Home
\& * About
\& * Contact
\&
.Ve
.PP
The extra \f(CW\*(C`markdown\*(C'\fR attribute will be stripped when generating the output.
.SH OPTIONS
.IX Header "OPTIONS"
Text::Markdown supports a number of options to its processor which control
the behaviour of the output document.
.PP
These options can be supplied to the constructor, or in a hash within
individual calls to the "markdown" method. See the SYNOPSIS for examples
of both styles.
.PP
The options for the processor are:
.IP empty_element_suffix 4
.IX Item "empty_element_suffix"
This option controls the end of empty element tags:
.Sp
.Vb 2
\& \*(Aq/>\*(Aq for XHTML (default)
\& \*(Aq>\*(Aq for HTML
.Ve
.IP tab_width 4
.IX Item "tab_width"
Controls indent width in the generated markup. Defaults to 4.
.IP trust_list_start_value 4
.IX Item "trust_list_start_value"
If true, ordered lists will use the first number as the starting point for
numbering. This will let you pick up where you left off by writing:
.Sp
.Vb 2
\& 1. foo
\& 2. bar
\&
\& some paragraph
\&
\& 3. baz
\& 6. quux
.Ve
.Sp
(Note that in the above, quux will be numbered 4.)
.SH METHODS
.IX Header "METHODS"
.SS new
.IX Subsection "new"
A simple constructor, see the SYNTAX and OPTIONS sections for more information.
.SS markdown
.IX Subsection "markdown"
The main function as far as the outside world is concerned. See the SYNOPSIS
for details on use.
.SS urls
.IX Subsection "urls"
Returns a reference to a hash with the key being the markdown reference
and the value being the URL.
.PP
Useful for building scripts which preprocess a list of links before the
main content. See \fIt/05options.t\fR for an example of this hashref being
passed back into the markdown method to create links.
.SH "OTHER IMPLEMENTATIONS"
.IX Header "OTHER IMPLEMENTATIONS"
Markdown has been re-implemented in a number of languages, and with a number of additions.
.PP
Those that I have found are listed below:
.IP "C \- " 4
.IX Item "C - "
Discount \- Original Markdown, but in C. Fastest implementation available, and passes MDTest.
Adds its own set of custom features.
.IP "python \- " 4
.IX Item "python - "
Python Markdown which is mostly compatible with the original, with an interesting extension API.
.IP "ruby (maruku) \- " 4
.IX Item "ruby (maruku) - "
One of the nicest implementations out there. Builds a parse tree internally so very flexible.
.IP "php \- " 4
.IX Item "php - "
A direct port of Markdown.pl, also has a separately maintained 'extra' version,
which adds a number of features that were borrowed by MultiMarkdown.
.IP "lua \- " 4
.IX Item "lua - "
Port to lua. Simple and lightweight (as lua is).
.IP "haskell \- " 4
.IX Item "haskell - "
Pandoc is a more general library, supporting Markdown, reStructuredText, LaTeX and more.
.IP "javascript \- " 4
.IX Item "javascript - "
Direct(ish) port of Markdown.pl to JavaScript
.SH BUGS
.IX Header "BUGS"
To file bug reports or feature requests please send email to:
.PP
.Vb 1
\& bug\-Text\-Markdown@rt.cpan.org
.Ve
.PP
Please include with your report: (1) the example input; (2) the output
you expected; (3) the output Markdown actually produced.
.SH "VERSION HISTORY"
.IX Header "VERSION HISTORY"
See the Changes file for detailed release notes for this version.
.SH AUTHOR
.IX Header "AUTHOR"
.Vb 2
\& John Gruber
\& http://daringfireball.net/
\&
\& PHP port and other contributions by Michel Fortin
\& http://michelf.com/
\&
\& MultiMarkdown changes by Fletcher Penney
\& http://fletcher.freeshell.org/
\&
\& CPAN Module Text::MultiMarkdown (based on Text::Markdown by Sebastian
\& Riedel) originally by Darren Kulp (http://kulp.ch/)
\&
\& Support for markdown="1" by Dan Dascalescu (http://dandascalescu.com)
\&
\& This module is maintained by: Tomas Doran http://www.bobtfish.net/
.Ve
.SH "THIS DISTRIBUTION"
.IX Header "THIS DISTRIBUTION"
Please note that this distribution is a fork of John Gruber's original Markdown project,
and it *is not* in any way blessed by him.
.PP
Whilst this code aims to be compatible with the original Markdown.pl (and incorporates
and passes the Markdown test suite) whilst fixing a number of bugs in the original \-
there may be differences between the behaviour of this module and Markdown.pl. If you find
any differences where you believe Text::Markdown behaves contrary to the Markdown spec,
please report them as bugs.
.PP
Text::Markdown *does not* extend the markdown dialect in any way from that which is documented at
daringfireball. If you want additional features, you should look at Text::MultiMarkdown.
.SH "SOURCE CODE"
.IX Header "SOURCE CODE"
You can find the source code repository for Text::Markdown and Text::MultiMarkdown
on GitHub at .
.SH "COPYRIGHT AND LICENSE"
.IX Header "COPYRIGHT AND LICENSE"
Original Code Copyright (c) 2003\-2004 John Gruber
All rights reserved.
.PP
MultiMarkdown changes Copyright (c) 2005\-2006 Fletcher T. Penney
All rights reserved.
.PP
Text::MultiMarkdown changes Copyright (c) 2006\-2009 Darren Kulp
and Tomas Doran
.PP
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
.PP
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.PP
* 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.
.PP
* 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.
.PP
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.