/usr/share/doc/python-markdown-doc/docs/index.html is in python-markdown-doc 2.6.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | <!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Python Markdown</title>
<link rel="stylesheet" href="default.css" type="text/css">
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="siteindex.html" title="General Index">index</a></li>
<li class="right">
<a href="install.html" title="Installation"
accesskey="N">next</a> |</li>
<li class="right">
<a href="siteindex.html" title="Table of Contents"
accesskey="P">previous</a> |</li>
<li><img src="py.png" alt=""
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="index.html">Python Markdown v2.6.9 documentation</a> »</li>
</ul>
</div> <!-- .related -->
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<h1 id="python-markdown">Python-Markdown<a class="headerlink" href="#python-markdown" title="Permanent link">¶</a></h1>
<p>This is a Python implementation of John Gruber’s
<a href="http://daringfireball.net/projects/markdown/">Markdown</a>.
It is almost completely compliant with the reference implementation,
though there are a few very minor <a href="#differences">differences</a>. See John’s
<a href="http://daringfireball.net/projects/markdown/syntax">Syntax Documentation</a>
for the syntax rules.</p>
<p>See the <a href="install.html">installation instructions</a> to get started.</p>
<h2 id="goals">Goals<a class="headerlink" href="#goals" title="Permanent link">¶</a></h2>
<p>The Python-Markdown project is developed with the following goals in mind:</p>
<ul>
<li>
<p>Maintain a Python 2 <em>and</em> Python 3 library (with an optional CLI wrapper)
suited to use in web server environments (never raise an exception, never
write to stdout, etc.) as an implementation of the markdown parser that
follows the <a href="http://daringfireball.net/projects/markdown/syntax">syntax rules</a>
and the behavior of the original (markdown.pl) implementation as reasonably
as possible (see <a href="#differences">differences</a> for a few exceptions).</p>
</li>
<li>
<p>Provide an <a href="extensions/api.html">Extension API</a> which makes it possible
to change and/or extend the behavior of the parser.</p>
</li>
</ul>
<h2 id="features">Features<a class="headerlink" href="#features" title="Permanent link">¶</a></h2>
<p>In addition to the basic markdown syntax, Python-Markdown supports the following
features:</p>
<ul>
<li>
<p><strong>International Input</strong></p>
<p>Python-Markdown will accept <a href="reference.html#text">input</a> in any language
supported by Unicode including bi-directional text. In fact the test suite
includes documents written in Russian and Arabic.</p>
</li>
<li>
<p><strong>Extensions</strong></p>
<p>Various <a href="extensions/index.html">extensions</a> are provided (including
<a href="extensions/extra.html">extra</a>) to change and/or extend the base syntax.
Additionally, a public <a href="extensions/api.html">Extension API</a> is available
to write your own extensions.</p>
</li>
<li>
<p><strong>Output Formats</strong></p>
<p>Python-Markdown can output documents in HTML4, XHTML and HTML5. See the
<a href="reference.html#output_format">Library Reference</a> for details.</p>
</li>
<li>
<p><strong>Command Line Interface</strong></p>
<p>In addition to being a Python Library, a
<a href="cli.html">command line script</a> is available for your convenience.</p>
</li>
</ul>
<h2 id="differences">Differences<a class="headerlink" href="#differences" title="Permanent link">¶</a></h2>
<p>While Python-Markdown strives to fully implement markdown as described in the
<a href="http://daringfireball.net/projects/markdown/syntax">syntax rules</a>, the rules
can be interpreted in different ways and different implementations
occasionally vary in their behavior (see the
<a href="http://johnmacfarlane.net/babelmark2/faq.html#what-are-some-examples-of-interesting-divergences-between-implementations">Babelmark FAQ</a>
for some examples). Known and intentional differences found in Python-Markdown
are summarized below:</p>
<ul>
<li>
<p><strong>Middle-Word Emphasis</strong></p>
<p>Python-Markdown defaults to ignoring middle-word emphasis. In other words,
<code>some_long_filename.txt</code> will not become <code>some<em>long</em>filename.txt</code>.
This can be switched off if desired. See the
<a href="reference.html#smart_emphasis">Library Reference</a> for details.</p>
</li>
<li>
<p><strong>Indentation/Tab Length</strong></p>
<p>The <a href="http://daringfireball.net/projects/markdown/syntax#list">syntax rules</a>
clearly state that when a list item consists of multiple paragraphs, “each
subsequent paragraph in a list item <strong>must</strong> be indented by either 4 spaces
or one tab” (emphasis added). However, many implementations do not enforce
this rule and allow less than 4 spaces of indentation. The implementers of
Python-Markdown consider it a bug to not enforce this rule. </p>
<p>This applies to any block level elements nested in a list, including
paragraphs, sub-lists, blockquotes, code blocks, etc. They <strong>must</strong> always
be indented by at least four spaces (or one tab) for each level of nesting.</p>
<p>In the event that one would prefer different behavior,
<a href="reference.html#tab_length">tab_length</a> can be set to whatever length is
desired. Be warned however, as this will affect indentation for all aspects
of the syntax (including root level code blocks).</p>
</li>
<li>
<p><strong>Consecutive Lists</strong></p>
<p>While the syntax rules are not clear on this, many implementations (including
the original) do not end one list and start a second list when the list marker
(asterisks, pluses, hyphens, and numbers) changes. For consistency,
Python-Markdown maintains the same behavior with no plans to change in the
foreseeable future. That said, the <a href="extensions/sane_lists.html">Sane List Extension</a>
is available to provide a less surprising behavior.</p>
</li>
</ul>
<h2 id="support">Support<a class="headerlink" href="#support" title="Permanent link">¶</a></h2>
<p>You may ask for help and discuss various other issues on the <a href="http://lists.sourceforge.net/lists/listinfo/python-markdown-discuss">mailing list</a>
and report bugs on the <a href="http://github.com/Python-Markdown/markdown/issues">bug tracker</a>.</p>
</div> <!-- .body -->
</div> <!-- .bodywrapper -->
</div> <!-- .documentwrapper -->
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3>Table Of Contents</h3>
<div class="toc">
<ul>
<li><a href="#python-markdown">Python-Markdown</a><ul>
<li><a href="#goals">Goals</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#differences">Differences</a></li>
<li><a href="#support">Support</a></li>
</ul>
</li>
</ul>
</div>
<h4>Previous topic</h4>
<p class="topless"><a href="siteindex.html"
title="previous chapter">Table of Contents</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="install.html"
title="next chapter">Installation</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="https://github.com/Python-Markdown/markdown/issues"
>Report a Bug</a></li>
<li><a href="index.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div> <!-- .sphinxsidebarwrapper -->
</div> <!-- .sphinxsidebar -->
<div class="clearer"></div>
</div> <!-- .document -->
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="siteindex.html" title="General Index">index</a></li>
<li class="right">
<a href="install.html" title="Installation"
accesskey="N">next</a> |</li>
<li class="right">
<a href="siteindex.html" title="Table of Contents"
accesskey="P">previous</a> |</li>
<li><img src="py.png" alt=""
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="index.html">Python Markdown v2.6.9 documentation</a> »</li>
</ul>
</div> <!-- .related -->
<div class="footer">© 2010-2012 Python Markdown Project</div>
</body>
</html>
|