o
    ú•;hò  ã                   @  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 )zt
 * 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   Z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/var/www/html/venv/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   Z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   Útypingr   r   r   Z
rules_corer   r   r   r	   r
   r   r   Zrules_core.state_corer   r   r   Ú__annotations__r   r   r   r   r   Ú<module>   s     $	ù