Ñò éíÑXc @ sñ d Z d d k Z d d k Z d d k l Z d Z d Z e i d ƒ Z e i d ƒ Z d e i f d „ ƒ YZ d e i i f d „ ƒ YZ d e i i f d „ ƒ YZ d e i i f d „ ƒ YZ d e i i f d „ ƒ YZ g d „ Z d S( 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( t etreet zz1337820767766393qqt qq3936677670287331zzs! (\ ?\ ?\ ?)\[\^([^\]]*)\]:\s*(.*)s ((\t)|( ))(.*)t FootnoteExtensionc B sV e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s Footnote Extension. c C sL h d d g d 6| _ x% | D] \ } } | | i | d