+
    NV-j"  ã                  ó  € R t ^ RIHt ^ RIt^ RIHtHt ^ RIt^ RIH	t	 ^ RI
Ht R]	 R2tRR R	 lltR
 R ltR R ltR R ltR R ltR R ltR R lt]R8X  d.   ]! ]P*                  R,          4      t]P.                  ! ]4       R# R# )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__)Ú
MarkdownItzmarkdown-it-py [version Ú]c               ó    € V ^8„  d   QhRRRR/# )é   ÚargsúSequence[str] | NoneÚreturnÚint© )Úformats   "Úf/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/markdown_it/cli/parse.pyÚ__annotate__r      s   € ÷ ñ Ð#ð ¨sñ ó    c                ó¾   € \        V 4      pVP                  '       d   \        VP                  4       ^ # VP                  '       d   \	        4        ^ # \        4        ^ # )é    )Ú
parse_argsÚ	filenamesÚconvertÚstdinÚconvert_stdinÚinteractive)r
   Ú	namespaces   & r   Úmainr      sJ   € Ü˜4Ó €IØ××ÐÜ�	×#Ñ#Ô$ñ
 ð	 
��ˆÜŒñ ô 	ŒÙr   c               ó    € V ^8„  d   QhRRRR/# )r	   r   zIterable[str]r   ÚNoner   )r   s   "r   r   r      s   € ÷ ñ �}ð ¨ñ r   c                ó.   € V  F  p\        V4       K  	  R # ©N)Úconvert_file)r   Úfilenames   & r   r   r      s   € ÛˆÜ�XÖó r   c               ó   € V ^8„  d   QhRR/# ©r	   r   r   r   )r   s   "r   r   r   $   s   € ÷ 	ñ 	�tñ 	r   c                 ó  €  \        4       P                  \        P                  P	                  4       4      p \        V RR7       R#   \         d:    \        P                  P                  R4       \        P                  ! ^4        R# i ; i)ú6
Parse a Markdown file and dump the output to stdout.
Ú ©Úendz/Cannot parse Markdown from the standard input.
N)
r   ÚrenderÚsysr   ÚreadÚprintÚOSErrorÚstderrÚwriteÚexit)Úrendereds    r   r   r   $   s[   € ðÜ“<×&Ñ&¤s§y¡y§~¡~Ó'7Ó8ˆÜˆh˜B×øÜô Ü�
‰
×ÑÐKÔLÜ�Š��ðús   ‚AA ÁA B
Â	B
c               ó    € V ^8„  d   QhRRRR/# )r	   r"   Ústrr   r   r   )r   s   "r   r   r   0   s   € ÷ 
ñ 
˜3ð 
 4ñ 
r   c                ól  €  \        V RRR7      ;_uu_ 4       p\        4       P                  VP                  4       4      p\	        VRR7       RRR4       R#   + '       g   i     R# ; i  \
         d>    \        P                  P                  RT  R24       \        P                  ! ^4        R# i ; i)	r&   Úutf8Úignore)ÚencodingÚerrorsr'   r(   NzCannot open file "z".
)
Úopenr   r*   r,   r-   r.   r+   r/   r0   r1   )r"   Úfinr2   s   &  r   r!   r!   0   s€   € ðÜ�( V°H×=Õ=ÀÜ!“|×*Ñ*¨3¯8©8«:Ó6ˆHÜ�( Õ#÷ >×=×=Ò=ûô ô Ü�
‰
×ÑÐ-¨h¨Z°tÐ<Ô=Ü�Š��ðús/   ‚A+ ˜5AÁA+ ÁA(	Á"A+ Á(A+ Á+AB3Â2B3c               ó   € V ^8„  d   QhRR/# r$   r   )r   s   "r   r   r   =   s   € ÷ ñ �Tñ r   c            	     óT  € \        4        . p Rp  V'       d   RMRw  r!V P                  \        V4      R,           4       K3    \         dC    \	        R\        4       P                  RP                  T 4      4      ,           RR7       Rp. p  K  \         d    \	        R4        R# i ; i)	zH
Parse user input, dump to stdout, rinse and repeat.
Python REPL style.
FÚ
r'   r(   z	
Exiting.N)z... T)z>>> T)	Úprint_headingÚappendÚinputÚEOFErrorr-   r   r*   ÚjoinÚKeyboardInterrupt)ÚcontentsÚmoreÚprompts      r   r   r   =   sŒ   € ô
 „OØ€HØ€DØ
ð		ß-1™>°~‰LˆFØ�O‰OœE &›M¨DÕ0Ö1øÜô 	Ü�$œ›×,Ñ,¨T¯Y©Y°xÓ-@ÓAÕAÀrÕJØˆDØ‹HÜ ô 	Ü�,ÔÚð	ús#   ‘A ™'A ÁA	B'ÂB'ÂB'Â&B'c               ó    € V ^8„  d   QhRRRR/# )r	   r
   r   r   zargparse.Namespacer   )r   s   "r   r   r   R   s   € ÷ ##ñ ##Ð)ð ##Ð.@ñ ##r   c                ó  € \         P                  ! RR\         R2\         P                  R7      pVP	                  RRR\
        R7       VP	                  R	R
RR7       VP	                  RRRR7       VP                  V 4      # )zParse 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)ÚactionrM   z--stdinÚ
store_truez!read Markdown from standard input)rN   Úhelpr   Ú*z,specify an optional list of files to convert)ÚnargsrP   )ÚargparseÚArgumentParserr   ÚRawDescriptionHelpFormatterÚadd_argumentÚversion_strr   )r
   Úparsers   & r   r   r   R   sœ   € ä×$Ò$ð4ðô '˜-ð (ð	ô& !×<Ñ<ô1€Fð4 ×Ñ˜˜k°)Ä[ÐÔQØ
×ÑØ˜,Ð-Pð ô ð ×ÑØ˜3Ð%Sð ô ð ×Ñ˜TÓ"Ð"r   c               ó   € V ^8„  d   QhRR/# r$   r   )r   s   "r   r   r   x   s   € ÷ ?ñ ?�tñ ?r   c                 ó@   € \        \         R 24       \        R4       R# )z (interactive)z1Type Ctrl-D to complete input, or Ctrl-C to exit.N)r-   rW   r   r   r   r?   r?   x   s   € Ü	Œ[ˆM˜Ð
(Ô)Ü	Ð
=Ö>r   Ú__main__:é   NNr    )Ú__doc__Ú
__future__r   rS   Úcollections.abcr   r   r+   Úmarkdown_itr   Úmarkdown_it.mainr   rW   r   r   r   r!   r   r   r?   Ú__name__ÚargvÚ	exit_coder1   r   r   r   Ú<module>re      s}   ðñõ #ã ß .Û 
å #Ý 'à(¨¨°QÐ7€÷õõ
	õ
õõ*##õL?ð
 ˆzÔÙ�S—X‘X˜b•\Ó"€IØ‡H‚HˆYÖñ r   