You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2id="whats-new-in-python-markdown-21">What’s New in Python-Markdown 2.1<aclass="headerlink" href="#whats-new-in-python-markdown-21" title="Permanent link">¶</a></h2>
131
-
<p>Three new extensions were added. Attribute Lists,
132
-
which was inspired by Maruku’s feature of the same name,
133
-
Newline to Break, which was inspired by GitHub
134
-
Flavored Markdown, and Smart Strong, which
131
+
<p>Three new extensions were added. <ahref="../../extensions/attr_list/">Attribute Lists</a>,
132
+
which was inspired by Maruku’s feature of the same name,
133
+
<ahref="../../extensions/nl2br/">Newline to Break</a>, which was inspired by GitHub
134
+
Flavored Markdown, and <ahref="../../extensions/smart_strong/">Smart Strong</a>, which
135
135
fills a hole in the Extra extension.</p>
136
-
<p>HTML5 is now supported. All this really means is that new block level elements
136
+
<p>HTML5 is now supported. All this really means is that new block level elements
137
137
introduced in the HTML5 spec are now properly recognized as raw HTML. As
138
138
valid HTML5 can consist of either HTML4 or XHTML1, there is no need to add a
139
-
new HTML5 serializers. That said, <code>html5</code> and <code>xhtml5</code> have been added as
139
+
new HTML5 serializers. That said, <code>html5</code> and <code>xhtml5</code> have been added as
140
140
aliases of the <code>html4</code> and <code>xhtml1</code> serializers respectively.</p>
141
-
<p>An XHTML serializer has been added. Previously, ElementTree’s XML serializer
141
+
<p>An XHTML serializer has been added. Previously, ElementTree’s XML serializer
142
142
was being used for XHTML output. With the new serializer we are able to avoid
143
-
more invalid output like empty elements (i.e., <code><p /></code>) which can choke
143
+
more invalid output like empty elements (i.e., <code><p /></code>) which can choke
144
144
browsers.</p>
145
-
<p>Improved support for Python 3.x. Now when running <code>setupy.py install</code> in
146
-
Python 3.1 or greater the 2to3 tool is run automatically. Note that Python 3.0
145
+
<p>Improved support for Python 3.x. Now when running <code>setupy.py install</code> in
146
+
Python 3.1 or greater the 2to3 tool is run automatically. Note that Python 3.0
147
147
is not supported due to a bug in its 2to3 tool. If you must use Python-Markdown
148
148
with Python 3.0, it is suggested you manually use Python 3.1’s 2to3 tool to
149
149
do a conversion.</p>
150
150
<p>Methods on instances of the Markdown class that do not return results can now
151
151
be changed allowing one to do <code>md.reset().convert(moretext)</code>.</p>
152
-
<p>The Markdown class was refactored so that a subclass could define it’s own <code>build_parser</code> method which would build a completely different parser. In
153
-
other words, one could use the basic machinery in the markdown library to
152
+
<p>The Markdown class was refactored so that a subclass could define it’s own
153
+
<code>build_parser</code> method which would build a completely different parser. In
154
+
other words, one could use the basic machinery in the markdown library to
154
155
build a parser of a different markup language without the overhead of building
155
156
the markdown parser and throwing it away.</p>
156
-
<p>Import statements within markdown have been improved so that third party
157
+
<p>Import statements within markdown have been improved so that third party
157
158
libraries can embed the markdown library if they desire (licensing permitting).</p>
158
-
<p>Added support for Python’s <code>-m</code> command line option. You can run the markdown
159
-
package as a command line script. Do <code>python -m markdown [options] [args]</code>.
160
-
Note that this is only fully supported in Python 2.7+. Python 2.5 & 2.6
159
+
<p>Added support for Python’s <code>-m</code> command line option. You can run the markdown
160
+
package as a command line script. Do <code>python -m markdown [options] [args]</code>.
161
+
Note that this is only fully supported in Python 2.7+. Python 2.5 & 2.6
161
162
require you to call the module directly (<code>markdown.__main__</code>) rather than
162
163
the package (<code>markdown</code>). This does not work in Python 2.4.</p>
163
-
<p>The command line script has been renamed to <code>markdown_py</code> which avoids all the
164
-
various problems we had with previous names. Also improved the command line
164
+
<p>The command line script has been renamed to <code>markdown_py</code> which avoids all the
165
+
various problems we had with previous names. Also improved the command line
165
166
script to accept input on <code>stdin</code>.</p>
166
-
<p>The testing framework has been completely rebuilt using the Nose testing
167
+
<p>The testing framework has been completely rebuilt using the Nose testing
167
168
framework. This provides a number of benefits including the ability to better
168
-
test the built-in extensions and other options available to change the parsing
169
+
test the built-in extensions and other options available to change the parsing
169
170
behavior. See the <ahref="../../test_suite/">Test Suite</a> documentation for details.</p>
170
-
<p>Various bug fixes have been made, which are too numerous to list here. See the
171
-
<ahref="https://github.com/Python-Markdown/markdown/commits/master">commit log</a> for a
171
+
<p>Various bug fixes have been made, which are too numerous to list here. See the
172
+
<ahref="https://github.com/Python-Markdown/markdown/commits/master">commit log</a> for a
<p>The behavior of the <code>enable_attributes</code> keyword has been slightly altered.
96
-
If authors have been using attributes in documents with <code>safe_mode</code> on, those
96
+
If authors have been using attributes in documents with <code>safe_mode</code> on, those
97
97
attributes will no longer be parsed unless <code>enable_attributes</code> is explicitly
98
98
set to <code>True</code>. This change was made to prevent untrusted authors from injecting
99
-
potentially harmful JavaScript in documents. This change had no effect when
99
+
potentially harmful JavaScript in documents. This change had no effect when
100
100
not in <code>safe_mode</code>.</p>
101
101
</li>
102
102
</ul>
103
103
<h2id="whats-new-in-python-markdown-22">What’s New in Python-Markdown 2.2<aclass="headerlink" href="#whats-new-in-python-markdown-22" title="Permanent link">¶</a></h2>
104
-
<p>The docs were refactored and can now be found at
104
+
<p>The docs were refactored and can now be found at
105
105
<ahref="http://packages.python.org/Markdown/">http://packages.python.org/Markdown/</a>. The docs are now maintained in the
106
106
Repository and are generated by the <code>setup.py build_docs</code> command.</p>
107
-
<p>The Sane_Lists
108
-
extension was added. The Sane Lists Extension alters the behavior of the
0 commit comments