+
    '(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   "J/home/ubuntu/cf-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[    <&&syy~~'78hB 

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    (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   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   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F4 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SXXb\"IHHY r   