/usr/lib/python2.6/site-packages/markdown/extensions
NameSizeModeActions
abbr.py28990644editdlrm
abbr.pyc42940644editdlrm
abbr.pyo42940644editdlrm
codehilite.py76730644editdlrm
codehilite.pyc81290644editdlrm
codehilite.pyo81290644editdlrm
def_list.py31700644editdlrm
def_list.pyc40470644editdlrm
def_list.pyo40470644editdlrm
extra.py17390644editdlrm
extra.pyc23230644editdlrm
extra.pyo23230644editdlrm
fenced_code.py34230644editdlrm
fenced_code.pyc43710644editdlrm
fenced_code.pyo43710644editdlrm
footnotes.py100550644editdlrm
footnotes.pyc114330644editdlrm
footnotes.pyo114330644editdlrm
headerid.py63260644editdlrm
headerid.pyc74700644editdlrm
headerid.pyo74700644editdlrm
html_tidy.py20710644editdlrm
html_tidy.pyc27560644editdlrm
html_tidy.pyo27560644editdlrm
imagelinks.py34910644editdlrm
imagelinks.pyc33110644editdlrm
imagelinks.pyo33110644editdlrm
meta.py25900644editdlrm
meta.pyc32750644editdlrm
meta.pyo32750644editdlrm
rss.py36930644editdlrm
rss.pyc43370644editdlrm
rss.pyo43370644editdlrm
tables.py30790644editdlrm
tables.pyc38770644editdlrm
tables.pyo38770644editdlrm
toc.py50980644editdlrm
toc.pyc44660644editdlrm
toc.pyo44660644editdlrm
wikilinks.py52920644editdlrm
wikilinks.pyc62810644editdlrm
wikilinks.pyo62810644editdlrm
__init__.py00644editdlrm
__init__.pyc1510644editdlrm
__init__.pyo1510644editdlrm
Edit: /usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyc (11433B)
Ñò «QsXc@sñdZddkZddkZddklZdZdZeidƒZeidƒZdei fd „ƒYZ d ei i fd „ƒYZ d eiifd „ƒYZdeiifd„ƒYZdeiifd„ƒYZgd„ZdS(s† ========================= FOOTNOTES ================================= This section adds footnote handling to markdown. It can be used as an example for extending python-markdown with relatively complex functionality. While in this case the extension is included inside the module itself, it could just as easily be added from outside the module. Not that all markdown classes above are ignorant about footnotes. All footnote functionality is provided separately and then added to the markdown instance at the run time. Footnote functionality is attached by calling extendMarkdown() method of FootnoteExtension. The method also registers the extension to allow it's state to be reset by a call to reset() method. Example: Footnotes[^1] have a label[^label] and a definition[^!DEF]. [^1]: This is a footnote [^label]: A footnote on "label" [^!DEF]: The footnote for definition iÿÿÿÿN(tetreetzz1337820767766393qqtqq3936677670287331zzs!(\ ?\ ?\ ?)\[\^([^\]]*)\]:\s*(.*)s((\t)|( ))(.*)tFootnoteExtensioncBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( s Footnote Extension. cCsLhddgd6|_x%|D]\}}||i|damp_substituteN( tregisterExtensiontparsert preprocessorstaddtFootnotePreprocessortinlinePatternstFootnotePatternttreeprocessorstFootnoteTreeprocessortpostprocessorstFootnotePostprocessor(Rtmdt md_globalst FOOTNOTE_RE((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pytextendMarkdown0s  cCstiiƒ|_dS(s Clear the footnotes on reset. N(tmarkdowntodictt OrderedDictt footnotes(R((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRDscs"‡‡fd†‰ˆ|ƒ}|S(s@ Return ElementTree Element that contains Footnote placeholder. cs›x”|D]Œ}|io1|iiˆidƒƒdjo |tfSn|io7|iiˆidƒƒdjo||ftfSnˆ|ƒqWdS(NRiÿÿÿÿ(ttexttfindt getConfigtTruettailtFalsetNone(telementtchild(Rtfinder(sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyR)Js " "((Rtroottres((RR)sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pytfindFootnotesPlaceholderHs cCs||i|t|t|ƒƒD]&}||iƒo||}Pq˜q˜WP||ƒo|idƒq"q"Pq"W|d7}|||fS(só Find indented text and remove indent before further proccesing. Keyword arguments: * lines: an array of strings Returns: a list of post processed items and the unused remainder of the original list iÿÿÿÿicSs(ti|ƒ}|o|idƒSdS(Ni(t TABBED_RER[R\(R^R[((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pytdetabÌsiRR(tstripRFtrangetlen( RRPtitemstitemRURaR^tjt next_line((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRT½s4           (RJRKRLR RQRMRSRT(((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyR…s     RcBs eZdZd„Zd„ZRS(s? InlinePattern for footnote markers in a document's body text. cCs#tiii||ƒ||_dS(N(RtinlinepatternstPatternR R(RtpatternR((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyR ôscCs¢tidƒ}ti|dƒ}|idƒ}|id|ii|ƒƒ|idd|ii|ƒƒ|iddƒt|iii |ƒd ƒ|_ |S( NtsupR6iR-R7R8trelR i( RR=R?R\R>RR0R/tstrRAR (RR_RlR6R-((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyt handleMatchøs "(RJRKRLR Ro(((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRñs RcBs eZdZd„Zd„ZRS(s3 Build and append footnote div to end of document. cCs ||_dS(N(R(RR((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyR sc CsØ|ii|ƒ}|o»|ii|ƒ}|o‘|\}}|o#d|_|iƒid|ƒnE|\}}|iƒi|ƒ}|iƒi|d|ƒd|_t i i t |ƒqÔ|i |ƒndS(Nii( RRIR,R&R RCtinsertR!R$t fnPlaceholdertparentt replaceChildRF( RR*t footnotesDivtresultRHtisTextR(R'tind((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRQ s    (RJRKRLR RQ(((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRs RcBseZdZd„ZRS(s* Replace placeholders with html entities. cCs"|itdƒ}|itdƒS(Ns↩s (treplaceRBRE(RR ((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRQs(RJRKRLRQ(((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyRscCs td|ƒS(s- Return an instance of the FootnoteExtension R(R(R((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pyt makeExtension"s(RLtreRRRBREtcompileRZR`t ExtensionRRt PreprocessorRRiRjRRt TreeprocessorRRt PostprocessorRRy(((sA/usr/lib/python2.6/site-packages/markdown/extensions/footnotes.pytscl