§
    Ó¼Ñb¶
  ã                   óŽ   — d Z ddlmZ ddlmZ ddlZd„ Z G d„ dej        ¦  «        Z G d	„ d
e¦  «        Z	 G d„ de¦  «        Z
dS )a‹  
Python Markdown

A Python implementation of John Gruber's Markdown.

Documentation: https://python-markdown.github.io/
GitHub: https://github.com/Python-Markdown/markdown/
PyPI: https://pypi.org/project/Markdown/

Started by Manfred Stienstra (http://www.dwerg.net/).
Maintained for a few years by Yuri Takhteyev (http://www.freewisdom.org).
Currently maintained by Waylan Limberg (https://github.com/waylan),
Dmitry Shachnev (https://github.com/mitya57) and Isaac Muse (https://github.com/facelessuser).

Copyright 2007-2018 The Python Markdown Project (v. 1.7 and later)
Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b)
Copyright 2004 Manfred Stienstra (the original version)

License: BSD (see LICENSE.md for details).

PRE-PROCESSORS
=============================================================================

Preprocessors work on source text before we start doing anything too
complicated.
é   )Úutil)ÚHTMLExtractoré    Nc                 ó¼   — t          j        ¦   «         }|                     t          | ¦  «        dd¦  «         |                     t	          | ¦  «        dd¦  «         |S )z: Build the default set of preprocessors used by Markdown. Únormalize_whitespaceé   Ú
html_blocké   )r   ÚRegistryÚregisterÚNormalizeWhitespaceÚHtmlBlockPreprocessor)ÚmdÚkwargsÚpreprocessorss      ú8/usr/lib/python3/dist-packages/markdown/preprocessors.pyÚbuild_preprocessorsr   !   sV   € å”M‘O”O€MØ×ÒÕ.¨rÑ2Ô2Ð4JÈBÑOÔOÐOØ×ÒÕ0°Ñ4Ô4°lÀBÑGÔGÐGØÐó    c                   ó   — e Zd ZdZd„ ZdS )ÚPreprocessoraF  
    Preprocessors are run after the text is broken into lines.

    Each preprocessor implements a "run" method that takes a pointer to a
    list of lines of the document, modifies it as necessary and returns
    either the same pointer or a pointer to a new list.

    Preprocessors must extend markdown.Preprocessor.

    c                 ó   — dS )zÕ
        Each subclass of Preprocessor should override the `run` method, which
        takes the document as a list of strings split by newlines and returns
        the (possibly modified) list of lines.

        N© )ÚselfÚliness     r   ÚrunzPreprocessor.run4   s	   € ð 	ˆr   N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   )   s-   € € € € € ð	ð 	ðð ð ð ð r   r   c                   ó   — e Zd ZdZd„ ZdS )r   z. Normalize whitespace for consistent parsing. c                 ó–  — d                      |¦  «        }|                     t          j        d¦  «                             t          j        d¦  «        }|                     dd¦  «                             dd¦  «        dz   }|                     | j        j        ¦  «        }t          j	        dd|¦  «        }| 
                    d¦  «        S )Nú
Ú z
úz

z(?<=\n) +\n)ÚjoinÚreplacer   ÚSTXÚETXÚ
expandtabsr   Ú
tab_lengthÚreÚsubÚsplit)r   r   Úsources      r   r   zNormalizeWhitespace.runA   sŸ   € Ø—’˜5Ñ!Ô!ˆØ—’¥¤¨"Ñ-Ô-×5Ò5µd´hÀÑCÔCˆØ—’ ¨Ñ-Ô-×5Ò5°d¸DÑAÔAÀFÑJˆØ×"Ò" 4¤7Ô#5Ñ6Ô6ˆÝ”˜¨¨fÑ5Ô5ˆØ�|Š|˜DÑ!Ô!Ð!r   Nr   r   r   r   r   r   >   s)   € € € € € Ø8Ð8ð"ð "ð "ð "ð "r   r   c                   ó   — e Zd ZdZd„ ZdS )r   zDRemove html blocks from the text and store them for later retrieval.c                 ó   — d                      |¦  «        }t          | j        ¦  «        }|                     |¦  «         |                     ¦   «          d                      |j        ¦  «                             d¦  «        S )Nr#   r$   )r&   r   r   ÚfeedÚcloseÚcleandocr.   )r   r   r/   Úparsers       r   r   zHtmlBlockPreprocessor.runM   sc   € Ø—’˜5Ñ!Ô!ˆÝ˜tœwÑ'Ô'ˆØ�Š�FÑÔÐØ�Š‰ŒˆØ�wŠw�v”Ñ'Ô'×-Ò-¨dÑ3Ô3Ð3r   Nr   r   r   r   r   r   J   s)   € € € € € ØNÐNð4ð 4ð 4ð 4ð 4r   r   )r    r$   r   Ú
htmlparserr   r,   r   Ú	Processorr   r   r   r   r   r   ú<module>r8      s×   ððð ð6 Ð Ð Ð Ð Ð Ø %Ð %Ð %Ð %Ð %Ð %Ø 	€	€	€	ðð ð ðð ð ð ð �4”>ñ ô ð ð*	"ð 	"ð 	"ð 	"ð 	"˜,ñ 	"ô 	"ð 	"ð4ð 4ð 4ð 4ð 4˜Lñ 4ô 4ð 4ð 4ð 4r   