Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Markdown / extensions / extra.pyc
Size: Mime:
ó
Âö™Wc@@s¶dZddlmZddlmZddlmZddlmZddlmZdd	l	Z	d
ddd
dddgZ
defd„ƒYZd„Zdefd„ƒ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(tabsolute_import(tunicode_literalsi(t	Extensioni(tBlockProcessor(tutilNu markdown.extensions.smart_strongumarkdown.extensions.fenced_codeumarkdown.extensions.footnotesumarkdown.extensions.attr_listumarkdown.extensions.def_listumarkdown.extensions.tablesumarkdown.extensions.abbrtExtraExtensioncB@s eZdZd„Zd„ZRS(u* Add various extensions to Markdown class.cO@s)|jdiƒ|_|jj|ƒdS(u@ config is a dumb holder which gets passed to actual ext later. uconfigsN(tpoptconfigtupdate(tselftargstkwargs((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt__init__5scC@s‚|jt|jƒ|js~t|jd_|jjj	dt
|jƒdƒd|jj_tj
dtjƒ|jj_ndS(u Register extension instances. u
html_blockumarkdown_blocku_beginiÿÿÿÿu*^(p|h[1-6]|li|dd|dt|td|th|legend|address)$N(tregisterExtensionst
extensionsRtsafeModetTruet
preprocessorstmarkdown_in_rawtparsertblockprocessorstaddtMarkdownInHtmlProcessorttag_countertretcompilet
IGNORECASEtcontain_span_tags(R	tmdt
md_globals((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pytextendMarkdown:s	(t__name__t
__module__t__doc__RR(((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyR2s	cO@s
t||ŽS(N(R(R
R((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt
makeExtensionHsRcB@s/eZdZd„Zd„Zded„ZRS(u$Process Markdown Inside HTML Blocks.cC@s$|tjt|jjjdƒkS(Ni(RtTAG_PLACEHOLDERtstrRRR(R	tparenttblock((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyttestNs	c	
C@sg}|jjjd}xmt|jƒ|krˆ|j|drˆ|j|d}|j|d}|j|d|fƒ|d7}qWxTt|d ƒD]B\}\}}|j||||!||||dd!tƒqšW|j|||dd|dd!||ddtƒdS(u1Process the element's child elements in self.run.iu
left_indexuright_indexiÿÿÿÿiN(	RRRtlent	_tag_datatappendt	enumeratetrunR(	R	telementR&t
nest_indextitleft_child_indextright_child_indext
left_indextright_index((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt_process_nestsRs)#!#cC@s |jjjj|_|jjjd7_|j|jjj}|djdƒ}tj	j
||d|dƒ}|r™|jj||ƒ|d}n$||dd|d!}||d4|jjjj
|dƒrå|dksñ|dkrd	j|ƒ|_n–|jjjd}	t|jƒ|	kr‰|j|	dr‰|j|	dd}
|jj|||
 ƒ|sœ|j||ƒ}qœn|jj||ƒdS(
Niuattrsumarkdownutagu
left_indexuright_indexublockuspanu
(Rtmarkdownt	htmlStashttag_dataR)RRRRtetreet
SubElementtparseBlocksRtmatchtjointtextR(R4(R	R%tblocksttailtnestttagtmarkdown_valueR-R&R/tfirst_subelement_index((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyR,ds, 
&	N(RR R!R'R4tNonetFalseR,(((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyRLs		(R!t
__future__RRtRRRRRRRR"R(((s7build/lib.linux-x86_64-2.7/markdown/extensions/extra.pyt<module>s