
    yj                         d dl Z d dlZd dlmZmZmZmZmZmZmZm	Z	 ej
        dd         fdZedk    r e             dS dS )    N)markdownifyATX
ATX_CLOSED
UNDERLINEDSPACES	BACKSLASHASTERISK
UNDERSCORE   c           	         t          j        dd          }|                    ddt          j        d          t          j        d           |                    d	d
dd           |                    dddd           |                    dddd           |                    ddd           |                    dt          t          t          t          fd           |                    dddd            |                    d!t          t          t          fd"          f |                    d#d$d%            |                    d&d$d'            |                    d(t          t          t          fd)           |                    d*d$d+            |                    d,d-dd./           |                    d0d1dd2/           |                    d3d4dd5           |                    d6d7dd8           |                    d9t          d:;           |                    |           }t          t!          d<i t#          |                     d S )=Nr   zConverts html to markdown.)progdescriptionhtml?rz<The html file to convert. Defaults to STDIN if not provided.)nargstypedefaulthelpz-sz--strip*zMA list of tags to strip. This option can't be used with the --convert option.)r   r   z-cz	--convertzMA list of tags to convert. This option can't be used with the --strip option.z-az--autolinks
store_truezpA boolean indicating whether the 'automatic link' style should be used when a 'a' tag's contents match its href.)actionr   z--default-titlestore_falsezRA boolean to enable setting the title of a link to its href, if no title is given.z--heading-stylez)Defines how headings should be converted.)r   choicesr   z-bz	--bulletsz*+-zSA string of bullet styles to use; the bullet will alternate based on nesting level.)r   r   z--strong-em-symbolz-Use * or _ to convert strong and italics textz--sub-symbol z'Define the chars that surround '<sub>'.z--sup-symbolz'Define the chars that surround '<sup>'.z--newline-stylezhDefines the style of <br> conversions: two spaces or backslash at the and of the line thet should break.z--code-languagezEDefines the language that should be assumed for all '<pre>' sections.z--no-escape-asterisksescape_asterisksz"Do not escape '*' to '\*' in text.)destr   r   z--no-escape-underscoresescape_underscoresz"Do not escape '_' to '\_' in text.z-iz--keep-inline-images-ina
  Images are converted to their alt-text when the images are located inside headlines or table cells. If some inline images should be converted to markdown images instead, this option can be set to a list of parent tags that should be allowed to contain inline images.z-wz--wrapz4Wrap all text paragraphs at --wrap-width characters.z--wrap-widthP   )r   r    )argparseArgumentParseradd_argumentFileTypesysstdinr   r   r   r	   r
   r   r   int
parse_argsprintr   vars)argvparserargss      `/lsinfo/ai/hellotax_ai/data_center/backend/venv/lib/python3.11/site-packages/markdownify/main.pymainr/   
   sN   $0  F
 c0A#0F0F #	$  % % % is0  1 1 1 k.  / / / mLS  T T T )-6  7 7 7 ):!$j* =H  J J J k5<  = = = ,h!): 6L  N N O O F  H H H
F  H H H
)6!' 3Q  R R R )2,  - - - /6H,B  D D D 18L,B  D D D 7s1  2 2 2 h|S  U U U
S"===T""D	+
#
#T


#
#$$$$$    __main__)r!   r%   r   r   r   r   r   r   r	   r
   r+   r/   __name__r    r0   r.   <module>r3      s     



, , , , , , , , , , , , , , , , , , , , hqrrl ;% ;% ;% ;%| zDFFFFF r0   