o
    Zhz                     @   s>   d Z ddlmZ ddlmZ dededefdd	Zh d
ZdS )z&
Process escaped chars and hardbreaks
   )
isStrSpace   )StateInlinestatesilentreturnc                 C   s>  | j }| j}| j| dkrdS |d7 }||krdS | j| }t|}|dkrN|s/| ddd |d7 }||k rI| j| }t|sAn|d7 }||k s7|| _ dS | j| }|d	kr||d
kr||d |k r|| j|d  }t|}	|	dkr||	dkr|||7 }|d7 }d| }
|s| ddd}|tv r|n|
|_|
|_d|_	|d | _ dS )z%Process escaped chars and hardbreaks.\Fr   
Z	hardbreakbr    Ti   i  i   i  Ztext_special escape)
posZposMaxsrcordpushr   _ESCAPEDcontentmarkupinfo)r   r   r   maximumZch1Zch1_ordchZ
escapedStrZch2Zch2_ordZorigStrtoken r   V/var/www/html/lang_env/lib/python3.10/site-packages/markdown_it/rules_inline/escape.pyr      sH   



r   >    :/=!?"+'*<(`).|}&$;]^-@[_#>,{~r   %N)__doc__Zcommon.utilsr   Zstate_inliner   boolr   r   r   r   r   r   <module>   s
    3