Current File : //usr/share/doc/python2-markdown-2.4.1/extensions/smart_strong.html |
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Smart Strong Extension — 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="admonition.html" title="Admonition Extension"
accesskey="N">next</a> |</li>
<li class="right">
<a href="tables.html" title="Tables Extension"
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> »</li>
<li><a href="index.html">Extensions</a> »</li>
<li><a href="smart_strong.html">Smart Strong Extension</a> »</li>
</ul>
</div> <!-- .related -->
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<h1 id="smart_strong">Smart_Strong<a class="headerlink" href="#smart_strong" title="Permanent link">¶</a></h1>
<h2 id="summary">Summary<a class="headerlink" href="#summary" title="Permanent link">¶</a></h2>
<p>The Smart_Strong extension adds smarter handling of double underscores within
words. This does for double underscores what <a href="../reference.html#smart_emphasis">smart_emphasis</a> does for single
underscores.</p>
<p>The Smart_Strong extension is included in the standard Markdown library.</p>
<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h2>
<pre><code>>>> import markdown
>>> markdown.markdown('Text with double__underscore__words.', \
extensions=['smart_strong'])
u'<p>Text with double__underscore__words.</p>'
>>> markdown.markdown('__Strong__ still works.', \
extensions=['smart_strong'])
u'<p><strong>Strong</strong> still works.</p>'
>>> markdown.markdown('__this__works__too__.', \
extensions=['smart_strong'])
u'<p><strong>this__works__too</strong>.</p>'
</code></pre>
<h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">¶</a></h2>
<p>See <a href="index.html">Extensions</a> for general extension usage, specify <code>smart_strong</code>
as the name of the extension.</p>
<p>This extension does not accept any special configuration options.</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="#smart_strong">Smart_Strong</a><ul>
<li><a href="#summary">Summary</a></li>
<li><a href="#example">Example</a></li>
<li><a href="#usage">Usage</a></li>
</ul>
</li>
</ul>
</div>
<h4>Previous topic</h4>
<p class="topless"><a href="tables.html"
title="previous chapter">Tables Extension</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="admonition.html"
title="next chapter">Admonition Extension</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="smart_strong.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="admonition.html" title="Admonition Extension"
accesskey="N">next</a> |</li>
<li class="right">
<a href="tables.html" title="Tables Extension"
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> »</li>
<li><a href="index.html">Extensions</a> »</li>
<li><a href="smart_strong.html">Smart Strong Extension</a> »</li>
</ul>
</div> <!-- .related -->
<div class="footer">© 2010-2012 Python Markdown Project</div>
</body>
</html>