HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/markdown_it/__pycache__/utils.cpython-37.pyc
B

��f��@sZddlmZddlmZddlmZGdd�de�Zddd�d	d
�Zdddd�d
d�Z	dS)�)�annotations)�Callable)�Pathc@sfeZdZdZedd�dd��Zejdd�dd��Zedd�d	d
��Zejdd�dd
��Zedd�dd
��Zejdd�dd
��Zedd�dd��Z	e	jdd�dd��Z	edd�dd��Z
e
jdd�dd��Z
edd�dd��Zejdd�dd��Zedd�dd��Zejdd�dd��Zedd�dd��Z
e
jdd�dd��Z
edd�d d!��Zejdd�d"d!��Zd#S)$�OptionsDictzMA dictionary, with attribute access to core markdownit configuration options.�int)�returncCs|dS)z%Internal protection, recursion limit.�
maxNesting�)�selfr	r	�B/opt/alt/python37/lib/python3.7/site-packages/markdown_it/utils.pyr
szOptionsDict.maxNesting)�valuecCs||d<dS)Nrr	)r
rr	r	rrs�boolcCs|dS)zEnable HTML tags in source.�htmlr	)r
r	r	rrszOptionsDict.htmlcCs||d<dS)Nrr	)r
rr	r	rrscCs|dS)z1Enable autoconversion of URL-like texts to links.�linkifyr	)r
r	r	rrszOptionsDict.linkifycCs||d<dS)Nrr	)r
rr	r	rr!scCs|dS)z$Enable smartquotes and replacements.�typographerr	)r
r	r	rr%szOptionsDict.typographercCs||d<dS)Nrr	)r
rr	r	rr*s�strcCs|dS)zQuote characters.�quotesr	)r
r	r	rr.szOptionsDict.quotescCs||d<dS)Nrr	)r
rr	r	rr3scCs|dS)z&Use '/' to close single tags (<br />).�xhtmlOutr	)r
r	r	rr7szOptionsDict.xhtmlOutcCs||d<dS)Nrr	)r
rr	r	rr<scCs|dS)z)Convert newlines in paragraphs into <br>.�breaksr	)r
r	r	rr@szOptionsDict.breakscCs||d<dS)Nrr	)r
rr	r	rrEscCs|dS)z&CSS language prefix for fenced blocks.�
langPrefixr	)r
r	r	rrIszOptionsDict.langPrefixcCs||d<dS)Nrr	)r
rr	r	rrNsz%Callable[[str, str, str], str] | NonecCs|dS)zEHighlighter function: (content, langName, langAttrs) -> escaped HTML.�	highlightr	)r
r	r	rrRszOptionsDict.highlightcCs||d<dS)Nrr	)r
rr	r	rrWsN)�__name__�
__module__�__qualname__�__doc__�propertyr�setterrrrrrrrrr	r	r	rrs&rz
str | Pathz
list[list])�pathrcCs�t|�jdd�}g}d}d}|jdd�}x�tt|��D]�}||��dkr6|dkrr|�|||d��g�d}nZ|dkr�|d�d	�||d|���d
}n,|d
kr�|d�d	�||d|���d}|}q6W|S)Nzutf-8)�encodingrT)�keepends�.������)	r�	read_text�
splitlines�range�len�rstrip�append�strip�join)r�text�tests�sectionZlast_pos�lines�ir	r	r�read_fixture_file\s$  r2r)�string�suffixrcCs$|r |�|�r |dt|��S|S)z�Remove a suffix from a string.

    Replace this with str.removesuffix() from stdlib when minimum Python
    version is 3.9.
    N)�endswithr()r3r4r	r	r�
_removesuffixrsr6N)
�
__future__r�collections.abcr�pathlibr�dictrr2r6r	r	r	r�<module>s
U