| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/markdown/__pycache__/ |
Upload File : |
�
Ӽ�b� � �� � d Z ddlmZ ddlmZ ddlZd� Z G d� dej � � Z G d � d
e� � Z G d� de� � Z
ej d
� � G d� de� � � � ZdS )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).
POST-PROCESSORS
=============================================================================
Markdown also allows post-processors, which are similar to preprocessors in
that they need to implement a "run" method. However, they are run after core
processing.
� )�OrderedDict� )�utilNc � � t j � � }|� t | � � dd� � |� t � � dd� � |S )z0 Build the default postprocessors for Markdown. �raw_html� �amp_substitute� )r �Registry�register�RawHtmlPostprocessor�AndSubstitutePostprocessor)�md�kwargs�postprocessorss �9/usr/lib/python3/dist-packages/markdown/postprocessors.py�build_postprocessorsr # sT � ��]�_�_�N����0��4�4�j�"�E�E�E����6�8�8�:J�B�O�O�O��� c � � e Zd ZdZd� ZdS )�
Postprocessora
Postprocessors are run after the ElementTree it converted back into text.
Each Postprocessor implements a "run" method that takes a pointer to a
text string, modifies it as necessary and returns a text string.
Postprocessors must extend markdown.Postprocessor.
c � � dS )z�
Subclasses of Postprocessor should implement a `run` method, which
takes the html document as a single text string and returns a
(possibly modified) string.
N� ��self�texts r �runzPostprocessor.run6 s � �
�r N��__name__�
__module__�__qualname__�__doc__r r r r r r + s- � � � � � �� �
�
�
�
�
r r c �D � e Zd ZdZ ej d� � Zd� Zd� Zd� Z dS )r
z# Restore raw html to the document. z^\<\/?([^ >]+)c �Z �� t � � �t | j j j � � D ]�}| � | j j j | � � }| � |� � r5|�d� | j j � |� � � � <