$34 GRAYBYTE WORDPRESS FILE MANAGER $48

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 93.127.173.73 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python311/lib/python3.11/site-packages/markdown_it/cli/__pycache__/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/markdown_it/cli/__pycache__//parse.cpython-311.pyc
�

��;fU��
�dZddlmZddlZddlmZmZddlZddlm	Z	ddl
mZd�e	��Z
ddd�Zdd�Zdd�Zdd�Zdd�Zdd�Zedkr*eejdd���Zeje��dSdS) zo
CLI interface to markdown-it-py

Parse one or more markdown files, convert each to HTML, and print to stdout.
�)�annotationsN)�Iterable�Sequence)�__version__)�
MarkdownItzmarkdown-it-py [version {}]�args�Sequence[str] | None�return�intc�x�t|��}|jrt|j��nt��dS)Nr)�
parse_args�	filenames�convert�interactive)r�	namespaces  �H/opt/alt/python311/lib/python3.11/site-packages/markdown_it/cli/parse.py�mainrs<���4� � �I�����	�#�$�$�$�$��
�
�
��1�r�
Iterable[str]�Nonec�.�|D]}t|���dS�N)�convert_file)r�filenames  rrrs,�������X������rr�strc�x�	t|ddd���5}t���|�����}t	|d���ddd��dS#1swxYwYdS#t
$r;tj�d|�d	���t
j	d
��YdSwxYw)z>
    Parse a Markdown file and dump the output to stdout.
    �r�utf8�ignore)�encoding�errors���endNzCannot open file "z".
�)
�openr�render�read�print�OSError�sys�stderr�write�exit)r�fin�rendereds   rrr!s���
�(�C�&��
B�
B�
B�	$�c�!�|�|�*�*�3�8�8�:�:�6�6�H��(��#�#�#�#�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$����	$�	$�	$�	$�	$�	$�������
���<�h�<�<�<�=�=�=�������������s6�A4�AA'�A4�'A+�+A4�.A+�/A4�4AB9�8B9c	�t�t��g}d}		|rdnd\}}|�t|��dz��nu#t$rMt	dt���d�|����zd���d}g}Ynt$rt	d��Yd	SwxYw��)
zT
    Parse user input, dump to stdout, rinse and repeat.
    Python REPL style.
    FT)z... T)z>>> T�
r"r#z	
Exiting.N)	�
print_heading�append�input�EOFErrorr)rr'�join�KeyboardInterrupt)�contents�more�prompts   rrr.s���
�O�O�O��H��D�
�		�-1�E�>�>�~�L�F�D��O�O�E�&�M�M�D�0�1�1�1�1���	�	�	��$����,�,�T�Y�Y�x�-@�-@�A�A�A�r�J�J�J�J��D��H�H�H� �	�	�	��,�����E�E�	����
s�.A�AB6�B6�5B6�argparse.Namespacec���tjddt�d�tj���}|�dddt
���|�d	d
d���|�|��S)
zParse input CLI arguments.zKParse one or more markdown files, convert each to HTML, and print to stdoutz9
Interactive:

  $ markdown-it
  markdown-it-py [version a] (interactive)
  Type Ctrl-D to complete input, or Ctrl-C to exit.
  >>> # Example
  ... > markdown *input*
  ...
  <h1>Example</h1>
  <blockquote>
  <p>markdown <em>input</em></p>
  </blockquote>

Batch:

  $ markdown-it README.md README.footer.md > index.html
)�description�epilog�formatter_classz-vz	--version�version)�actionrAr�*z,specify an optional list of files to convert)�nargs�help)�argparse�ArgumentParserr�RawDescriptionHelpFormatter�add_argument�version_strr
)r�parsers  rr
r
Cs���
�
$�4�
�'�	
�
�
�&!�<�1���F�4����k�)�[��Q�Q�Q�
����3�%S��������T�"�"�"rc�r�td�t����td��dS)Nz{} (interactive)z1Type Ctrl-D to complete input, or Ctrl-C to exit.)r)�formatrJ�rrr3r3fs4��	�
�
#�
#�K�
0�
0�1�1�1�	�
=�>�>�>�>�>r�__main__r%r)rr	r
r)rrr
r)rrr
r)r
r)rr	r
r<)�__doc__�
__future__rrF�collections.abcrrr+�markdown_itr�markdown_it.mainrrMrJrrrrr
r3�__name__�argv�	exit_coder.rNrr�<module>rXsH����
#�"�"�"�"�"�����.�.�.�.�.�.�.�.�
�
�
�
�#�#�#�#�#�#�'�'�'�'�'�'�+�2�2�;�?�?��
�
�
�
�
�����

�
�
�
�����* #� #� #� #�F?�?�?�?�
�z�����S�X�a�b�b�\�"�"�I��C�H�Y�������r

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 May 2024 6.33 PM
root / root
0755
__init__.cpython-311.pyc
0.18 KB
8 May 2024 6.33 PM
root / root
0644
parse.cpython-311.pyc
5.111 KB
8 May 2024 6.33 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF