File: README.html

package info (click to toggle)
python-markdown 1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 148 kB
  • ctags: 271
  • sloc: python: 1,353; makefile: 9
file content (91 lines) | stat: -rw-r--r-- 3,465 bytes parent folder | download
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
<h1><a href="http://freewisdom.org/projects/python-markdown">Python-Markdown</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 known issues. See <a href="http://www.freewisdom.org/projects/python-markdown/Features">Features</a> for information 
   on what exactly is supported and what is not. Additional features are 
   supported by the <a href="http://www.freewisdom.org/projects/python-markdown/Available_Extensions">Available Extensions</a>.
</p>

<h2>Installation</h2>
<p>To install Python Markdown <a href="http://sourceforge.net/project/showfiles.php?group_id=153041">download</a> the zip file and extract the 
   files.  If you want to install markdown as a module into your python 
   tree, run <code>sudo python setup.py install</code> from a directory where you 
   unzip the files.
</p>

<h2>Command Line Usage</h2>
<p>To use markdown.py from the command line, run it as 
</p>
<pre><code>python markdown.py &lt;input_file&gt;
</code></pre><p>or 
</p>
<pre><code>python markdown.py &lt;input_file&gt; &gt; &lt;output_file&gt;
</code></pre><p>For more details, use the <code>-h</code> or <code>--help</code> options from the command line 
   or read the <a href="http://www.freewisdom.org/projects/python-markdown/Command_Line">Command Line Docs</a> available online.
</p>

<h2>Using as a Python Module</h2>
<p>To use markdown as a module:
</p>
<pre><code>import markdown
html = markdown.markdown(your_text_string)
</code></pre><p>For more details see the <a href="http://www.freewisdom.org/projects/python-markdown/Using_as_a_Module">Module Docs</a>.
</p>

<h2>Support</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://sourceforge.net/tracker/?func=add&amp;group_id=153041&amp;atid=790198">bug tracker</a>.
</p>

<h2>Credits</h2>
<ul>
 <li>
     Most of the code currently in the module was written by <a href="http://www.freewisdom.org">Yuri Takhteyev</a>
  while procrastinating from his Ph.D.
 </li>

 <li>
     The original version of this script was written by <a href="http://www.dwerg.net/">Manfred Stienstra</a>,
  who is responsible for about a quarter of the code.
 </li>

 <li>
     Many recent bugs are being fixed by <a href="http://achinghead.com/">Waylan Limberg</a>.
 </li>
</ul>
<p>Other contributions:
</p>
<ul>
 <li>
     Daniel Krech provided the setup.py script.
 </li>

 <li>
     G. Clark Haynes submitted a patch for indented lists.
 </li>

 <li>
     Tiago Cogumbreiro submitted an email autolink fix.
 </li>

 <li>
     Sergej Chodarev submitted a patch for treatment of <code>&lt;hr/&gt;</code> tags.
 </li>

 <li>
     Chris Clark submitted a patch to handle <code>&lt;mailto:...&gt;</code> syntax and a reg ex 
  for &quot;smart&quot; emphasis (ignoring underscores within a word).
 </li>

 <li>
     Steward Midwinter wrote command-line parser and cleaned up comments.
 </li>

 <li>
     Many other people helped by reporting bugs.
 </li>
</ul>

<h2>License</h2>
<p>The code is dual-licensed under <a href="http://www.gnu.org/copyleft/gpl.html)">GPL</a> and <a href="http://www.opensource.org/licenses/bsd-license.php">BSD License</a>.  Other
   licensing arrangements can be discussed.
</p>