o
    
j                     @  s   U d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	m
Z
mZmZmZmZ ddlmZ eegdf Zd	efd
efde	fde
fdefdefdefgZded< G dd dZdS )zp
* class Core
*
* Top-level rules executor. Glues block/inline parsers and does intermediate
* transformations.
    )annotations)Callable   )Ruler)blockinlinelinkify	normalizereplacesmartquotes	text_join)	StateCoreNr	   r   r   r   replacementsr   r   z"list[tuple[str, RuleFuncCoreType]]_rulesc                   @  s    e Zd Zd
ddZdddZd	S )
ParserCorereturnNonec                 C  s,   t t  | _tD ]\}}| j|| qd S )N)r   RuleFuncCoreTyperulerr   push)selfnamerule r   J/home/kuhnn/.local/lib/python3.10/site-packages/markdown_it/parser_core.py__init__&   s   zParserCore.__init__stater   c                 C  s   | j dD ]}|| qdS )zExecutes core chain rules. N)r   getRules)r   r   r   r   r   r   process+   s   
zParserCore.processN)r   r   )r   r   r   r   )__name__
__module____qualname__r   r   r   r   r   r   r   %   s    
r   )__doc__
__future__r   collections.abcr   r   r   
rules_corer   r   r   r	   r
   r   r   rules_core.state_corer   r   r   __annotations__r   r   r   r   r   <module>   s     $	