Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 475047415fcf83c129d0834cea9418c4 > files > 166

python3-markdown-2.4.1-4.mga5.noarch.rpm

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Release Notes for v2.3 &#8212; 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="release-2.2.1.html" title="Release Notes for v2.2.1"
         accesskey="N">next</a> |</li>
    <li class="right">
      <a href="release-2.4.html" title="Release Notes for v2.4"
         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.4.1 documentation</a> &raquo;</li>
    <li><a href="release-2.3.html">Release Notes for v2.3</a> &raquo;</li>
  </ul>
</div> <!-- .related -->

<div class="document">
  <div class="documentwrapper">
    <div class="bodywrapper">
      <div class="body">
<h1 id="python-markdown-23-release-notes">Python-Markdown 2.3 Release Notes<a class="headerlink" href="#python-markdown-23-release-notes" title="Permanent link">&para;</a></h1>
<p>We are pleased to release Python-Markdown 2.3 which adds one new extension,
removes a few old (obsolete) extensions, and now runs on both Python 2 and 
Python 3 without running the 2to3 conversion tool. See the list of changes 
below for details.</p>
<p>Python-Markdown supports Python versions 2.6, 2.7, 3.1, 3.2, and 3.3.</p>
<h2 id="backwards-incompatible-changes">Backwards-incompatible Changes<a class="headerlink" href="#backwards-incompatible-changes" title="Permanent link">&para;</a></h2>
<ul>
<li>
<p>Support has been dropped for Python 2.5. No guarantees are made that the
library will work in any version of Python lower than 2.6. As all supported
Python versions include the ElementTree library, Python-Markdown will no 
longer try to import a third-party installation of ElementTree.</p>
</li>
<li>
<p>All classes are now &ldquo;new-style&rdquo; classes. In other words, all classes
subclass from &lsquo;object&rsquo;. While this is not likely to affect most users, 
extension authors may need to make a few minor adjustments to their code.</p>
</li>
<li>
<p>&ldquo;safe_mode&rdquo; has been further restricted. Markdown formated links must be
of a known whitelisted scheme when in &ldquo;safe_mode&rdquo; or the url is discarded.
The whitelisted schemes are: &lsquo;http&rsquo;, &lsquo;https&rsquo;, &lsquo;ftp&rsquo;, &lsquo;ftps&rsquo;, &lsquo;mailto&rsquo;, and
&lsquo;news&rsquo;. Schemeless urls are also permitted, but are checked in other ways - 
as they have been for some time.</p>
</li>
<li>
<p>The ids assigned to footnotes now contain a dash (<code>-</code>) rather than a colon
(<code>:</code>) when <code>output_format</code> it set to &ldquo;html5&rdquo; or &ldquo;xhtml5&rdquo;. If you are making
reference to those ids in your JavaScript or CSS and using the HTML5 output,
you will need to update your code accordingly. No changes are necessary if
you are outputing XHTML (the default) or HTML4.</p>
</li>
<li>
<p>The &ldquo;force_linenos&rdquo; config setting of the CodeHilite extension has been
marked as <strong>Pending Deprecation</strong> and a new setting &ldquo;linenums&rdquo; has been added to
replace it. See documentation for the <a href="extensions/codehilite.html">CodeHilite Extension</a> for an explanation
of the new &ldquo;linenums&rdquo; setting. The new setting will honor the old 
&ldquo;force_linenos&rdquo; if it is set, but it will raise a PendingDeprecationWarning 
and will likely be removed in a future version of Python-Markdown.</p>
</li>
<li>
<p>The &ldquo;RSS&rdquo; extension has been removed and no longer ships with Python-Markdown.
If you would like to continue using the extension (not recomended), it is 
archived on <a href="https://gist.github.com/waylan/4773365">Github</a>.</p>
</li>
<li>
<p>The &ldquo;HTML Tidy&rdquo; Extension has been removed and no longer ships with Python-Markdown.
If you would like to continue using the extension (not recomended), it is 
archived on <a href="https://gist.github.com/waylan/5152650">Github</a>. Note that the 
underlying library, uTidylib, is not Python 3 compatable. Instead, it is 
recommended that the newer <a href="http://countergram.com/open-source/pytidylib">PyTidyLib</a> (version 0.2.2+ for Python 3 
compatability - install from github not PyPI) be used. As the API for that 
library is rather simple, it is recommended that the output of Markdown be 
wrapped in a call to PyTidyLib rather than using an extension (for example: 
<code>tidylib.tidy_fragment(markdown.markdown(source), options={...})</code>).</p>
</li>
</ul>
<h2 id="whats-new-in-python-markdown-23">What&rsquo;s New in Python-Markdown 2.3<a class="headerlink" href="#whats-new-in-python-markdown-23" title="Permanent link">&para;</a></h2>
<ul>
<li>
<p>The entire code base now universally runs in Python 2 and Python 3 without
any need for running the 2to3 conversion tool. This not only simplifies testing,
but by using unicode_literals, results in more consistent behavior across
Python versions. Additionally, the relative imports (made possible in Python 2
via absolute_import) allows the entire library to more easily be embedded in a 
subdirectory of another project. The various files within the library will 
still import each other properly even though &lsquo;markdown&rsquo; may not be in Python&rsquo;s
root namespace.</p>
</li>
<li>
<p>The <a href="extensions/admonition.html">Admonition Extension</a> has been added, which implements <a href="http://docutils.sourceforge.net/docs/ref/rst/directives.html#specific-admonitions">rST-style</a> 
admonitions in the Markdown syntax. However, be warned that this extension 
is experimental and the syntax and behavior is still subject to change. Please 
try it out and report bugs and/or improvements.</p>
</li>
<li>
<p>Various bug fixes have been made.  See the
<a href="https://github.com/waylan/Python-Markdown/commits/master">commit log</a>
for a complete history of the changes.</p>
</li>
</ul>
      </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-23-release-notes">Python-Markdown 2.3 Release Notes</a><ul>
<li><a href="#backwards-incompatible-changes">Backwards-incompatible Changes</a></li>
<li><a href="#whats-new-in-python-markdown-23">What&rsquo;s New in Python-Markdown 2.3</a></li>
</ul>
</li>
</ul>
</div>


    <h4>Previous topic</h4>
      <p class="topless"><a href="release-2.4.html"
         title="previous chapter">Release Notes for v2.4</a></p>
    <h4>Next topic</h4>
      <p class="topless"><a href="release-2.2.1.html"
         title="next chapter">Release Notes for v2.2.1</a></p>
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="https://github.com/waylan/Python-Markdown/issues"
             >Report a Bug</a></li>
      <li><a href="release-2.3.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="release-2.2.1.html" title="Release Notes for v2.2.1"
         accesskey="N">next</a> |</li>
    <li class="right">
      <a href="release-2.4.html" title="Release Notes for v2.4"
         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.4.1 documentation</a> &raquo;</li>
    <li><a href="release-2.3.html">Release Notes for v2.3</a> &raquo;</li>
  </ul>
</div> <!-- .related -->

<div class="footer">&copy; 2010-2012 Python Markdown Project</div>
</body>
</html>