+
    iU                    $   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P                  ]	4      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   "7/usr/lib/python3/dist-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                n    \        V R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.
r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    (C&BBc!|**388:6H(# CBBB  

-hZt<=s/   A, 5AA, A)	#A, )A, ,AB43B4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   C   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   C   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   f   s     ? ?t ?r   c                 X    \        R P                  \        4      4       \        R4       R# )z{} (interactive)z1Type Ctrl-D to complete input, or Ctrl-C to exit.N)r.   r   rQ   r   r   r   r:   r:   f   s    	

#
#K
01	
=>r   __main__:   NNr   )__doc__
__future__r   rM   collections.abcr   r   r0   markdown_itr   markdown_it.mainr   r   rQ   r   r   r   r   r   r:   __name__argv	exit_coder3   r   r   r   <module>r_      sz   
 #  . 
 # '+22;?

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