o
    í6Wj²  ã                   @   sd   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d„Zedkr0eƒ  dS dS )é    N)ÚmarkdownifyÚATXÚ
ATX_CLOSEDÚ
UNDERLINEDÚSPACESÚ	BACKSLASHÚASTERISKÚ
UNDERSCOREé   c                 C   s˜  t jddd�}|jddt  d¡tjdd� |jd	d
ddd� |jddddd� |jddddd� |jdddd� |jdttttfdd� |jddddd � |jd!t	t	t
fd"d�f |jd#d$d%d � |jd&d$d'd � |jd(tttfd)d� |jd*d$d+d � |jd,d-dd.d/� |jd0d1dd2d/� |jd3d4g dd5d6� |jd7d8dd9d/� |jd:d;dd<d� |jd=td>d?� |jd@dAdBd � | | ¡}ttdCi t|ƒ¤Žƒ d S )DNr   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.)r   r   r   z--table-infer-headerÚtable_infer_headerzoWhen a table has no header row (as indicated by '<thead>' or '<th>'), use the first body row as the header row.z-wz--wrapz4Wrap all text paragraphs at --wrap-width characters.z--wrap-widthéP   )r   r   z--bs4-optionszhtml.parserz…Specifies the parser that BeautifulSoup should use to parse the HTML markup. Examples include 'html5.parser', 'lxml', and 'html5lib'.© )ÚargparseÚArgumentParserÚadd_argumentÚFileTypeÚsysÚstdinr   r   r   r   r	   r   r   ÚintÚ
parse_argsÚprintr   Úvars)ÚargvÚparserÚargsr   r   ú_/home/esfera/Documents/content_generation/venv/lib/python3.10/site-packages/markdownify/main.pyÚmain
   sŽ   þþ
ÿ
ÿ
ÿÿþ
ÿþÿÿþÿþþýþ
ÿþ
r.   Ú__main__)r    r$   r   r   r   r   r   r   r   r	   r*   r.   Ú__name__r   r   r   r-   Ú<module>   s   (I
ÿ