%PDF- %PDF-
Direktori : /lib/python3/dist-packages/markdown/extensions/__pycache__/ |
Current File : //lib/python3/dist-packages/markdown/extensions/__pycache__/footnotes.cpython-312.pyc |
� ���eFA � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z dd lmZ dd lm Z ddlmZ ddlZddlZddlmc mZ e j* d z e j, z Ze j* dz e j, z Z ej2 d� Z G d� de� Z G d� de� Z G d� de� Z G d� de � Z G d� de � Z G d� de� Z d� Z!y)z� Adds footnote handling to Python-Markdown. See the [documentation](https://Python-Markdown.github.io/extensions/footnotes) for details. � )�annotations� )� Extension� )�BlockProcessor)�InlineProcessor)� Treeprocessor)� Postprocessor)�util)�OrderedDictN�zz1337820767766393qq�qq3936677670287331zzz(fnref)(\d+)c �t � � e Zd ZdZ� fd�Zd� Zdd�Zd dd�Z dd�Zdd�Z dd�Z dd �Zd dd �Zdd�Z � xZS )�FootnoteExtensionz Footnote Extension. c � �� ddgddgddgddgd d gddgd �| _ t �| � di |�� d| _ i | _ t � | _ | j � y)z Setup configs. z///Footnotes Go Here///z1The text string that marks where the footnotes goFz9Avoid name collisions across multiple calls to `reset()`.z↩zCThe text string that links from the footnote to the reader's place.�{}zCThe text string that links from the reader's place to the footnote.z$Jump back to footnote %d in the textznThe text string used for the title HTML attribute of the backlink. %d will be replaced by the footnote number.�:zFootnote separator.)�PLACE_MARKER� UNIQUE_IDS� BACKLINK_TEXT�SUPERSCRIPT_TEXT�BACKLINK_TITLE� SEPARATORr N� )�config�super�__init__� unique_prefix� found_refs�set� used_refs�reset)�self�kwargs� __class__s ��?/usr/lib/python3/dist-packages/markdown/extensions/footnotes.pyr zFootnoteExtension.__init__) s� �� � *�+^�� �R�� �`�� �[�!� 7�>�� �*��% ���, /� ���"�6�"� ���*,���#&�5���� � �� c �� � |j | � |j | _ || _ |j j j t | � dd� d}|j j t || � dd� |j j t | � dd� |j j t | � dd� |j j t | � dd� y ) z Add pieces to Markdown. �footnote� z\[\^([^\]]*)\]� �2 zfootnote-duplicate� � N) �registerExtension�parser�md�blockprocessors�register�FootnoteBlockProcessor�inlinePatterns�FootnoteInlineProcessor�treeprocessors�FootnoteTreeprocessor�FootnotePostTreeprocessor�postprocessors�FootnotePostprocessor)r# r1 �FOOTNOTE_REs r&