Repository URL to install this package:
|
Version:
2.6.6 ▾
|
ó ÂöWc @@ s¶ d Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l Z d d d d d d d g Z d e f d YZ d Z d e f d YZ d S( uÇ Python-Markdown Extra Extension =============================== A compilation of various Python-Markdown extensions that imitates [PHP Markdown Extra](http://michelf.com/projects/php-markdown/extra/). Note that each of the individual extensions still need to be available on your PYTHONPATH. This extension simply wraps them all up as a convenience so that only one extension needs to be listed when initiating Markdown. See the documentation for each individual extension for specifics about that extension. There may be additional extensions that are distributed with Python-Markdown that are not included here in Extra. Those extensions are not part of PHP Markdown Extra, and therefore, not part of Python-Markdown Extra. If you really would like Extra to include additional extensions, we suggest creating your own clone of Extra under a differant name. You could also edit the `extensions` global variable defined below, but be aware that such changes may be lost when you upgrade to any future version of Python-Markdown. See <https://pythonhosted.org/Markdown/extensions/extra.html> for documentation. Copyright The Python Markdown Project License: [BSD](http://www.opensource.org/licenses/bsd-license.php) i ( t absolute_import( t unicode_literalsi ( t Extensioni ( t BlockProcessor( t utilNu markdown.extensions.smart_strongu markdown.extensions.fenced_codeu markdown.extensions.footnotesu markdown.extensions.attr_listu markdown.extensions.def_listu markdown.extensions.tablesu markdown.extensions.abbrt ExtraExtensionc B@ s e Z d Z d Z d Z RS( u* Add various extensions to Markdown class.c O@ s) | j d i | _ | j j | d S( u@ config is a dumb holder which gets passed to actual ext later. u configsN( t popt configt update( t selft argst kwargs( ( s7 build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt __init__5 s c C@ s | j t | j | j s~ t | j d _ | j j j d t | j d d | j j _ t j d t j | j j _ n d S( u Register extension instances. u html_blocku markdown_blocku _beginiÿÿÿÿu* ^(p|h[1-6]|li|dd|dt|td|th|legend|address)$N( t registerExtensionst extensionsR t safeModet Truet preprocessorst markdown_in_rawt parsert blockprocessorst addt MarkdownInHtmlProcessort tag_countert ret compilet IGNORECASEt contain_span_tags( R t mdt md_globals( ( s7 build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt extendMarkdown: s ( t __name__t __module__t __doc__R R ( ( ( s7 build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyR 2 s c O@ s t | | S( N( R ( R R ( ( s7 build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt makeExtensionH s R c B@ s/ e Z d Z d Z d Z d e d Z RS( u$ Process Markdown Inside HTML Blocks.c C@ s$ | t j t | j j j d k S( Ni ( R t TAG_PLACEHOLDERt strR R R ( R t parentt block( ( s7 build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt testN s c C@ s g } | j j j d } xm t | j | k r | j | d r | j | d } | j | d } | j | d | f | d 7} q WxT t | d D]B \ } \ } } | j | | | | !| | | | d d !t q W| j | | | d d | d d !| | d d t d S( u1 Process the element's child elements in self.run.i u left_indexu right_indexiÿÿÿÿi N( R R R t lent _tag_datat appendt enumeratet runR ( R t elementR&