+
    iA                       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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   "5lib/python3.14/site-packages/markdown_it/cli/parse.py__annotate__r      s      # s     c                    \        V 4      pVP                  '       d   \        VP                  4       ^ # \        4        ^ # )    )
parse_args	filenamesconvertinteractive)r
   	namespaces   & r   mainr      s5    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    strr   r   r   )r   s   "r   r   r   "   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)	z6
Parse a Markdown file and dump the output to stdout.
utf8ignore)encodingerrors endNzCannot open file "z".
)
openr   renderreadprintOSErrorsysstderrwriteexit)r    finrendereds   &  r   r   r   "   s    (VH==!|**388:6H(# >===  

-hZt<=s/   A+ 5AA+ A(	"A+ (A+ +AB32B3c                   V ^8  d   QhRR/# 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>~LFOOE&MD01 	$,,TYYx-@AAr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   D   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                  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)actionrH   r   *z,specify an optional list of files to convert)nargshelp)argparseArgumentParserr   RawDescriptionHelpFormatteradd_argumentversion_strr   )r
   parsers   & r   r   r   D   s    $$4 '- (	& !<<1F4 k)[Q
3%S   T""r   c                   V ^8  d   QhRR/# r7   r   )r   s   "r   r   r   g   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.   rQ   r   r   r   r:   r:   g   s    	[M
()	
=>r   __main__:   NNr   )__doc__
__future__r   rM   collections.abcr   r   r0   markdown_itr   markdown_it.mainr   rQ   r   r   r   r   r   r:   __name__argv	exit_coder3   r   r   r   <module>r_      sx    #  . 
 # '(Q7

* #F?
 zSXXb\"IHHY r   