�
K�g�D � �� � d Z ddlmZ ddlZddlmc mZ ddlmZm Z ddl
mZ ddl
mZ erddl
mZ dd�Zdd�Z G d� dej � � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )z�
Tree processors manipulate the tree created by block processors. They can even create an entirely
new `ElementTree` object. This is an excellent place for creating summaries, adding collected
references, or last minute adjustments.
� )�annotationsN)�
TYPE_CHECKING�Any� )�util)�inlinepatterns)�Markdown�mdr �kwargsr �return�util.Registry[Treeprocessor]c � � t j � � }|� t | � � dd� � |� t | � � dd� � |� t | � � dd� � |S )z3 Build the default `treeprocessors` for Markdown. �inline� �prettify�
�unescaper )r �Registry�register�InlineProcessor�PrettifyTreeprocessor�UnescapeTreeprocessor)r
r �treeprocessorss �g/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/markdown/treeprocessors.py�build_treeprocessorsr '