
    ^hz                        % S r SSKJrJrJrJrJrJrJrJ	r	  SSK
Jr  SSKJrJrJr  SSKJr  SSKJr  SSKJrJrJr  SS	KJr  SS
KJrJrJrJr  \\	S   \4   r    SS\ S\ S\\   S\\\      S\4
S jjr!\!" S/ SQS9r"\\#S'   0 r$\\\ \\   \\\      4   \4   \#S'      SS\%S\ S\\   S\\\      S\\%\\\%\4      4   4
S jjr/ SQr&Sr'Sr(g)z
mistune
~~~~~~~

A fast yet powerful Python Markdown parser with renderers and
plugins, compatible with sane CommonMark rules.

Documentation: https://mistune.lepture.com/
    )AnyDictIterableListOptionalTupleUnionLiteral   )BlockParser)BaseRenderer
BlockStateInlineState)InlineParser)Markdown)Plugin	PluginRefimport_plugin)HTMLRenderer)escape
escape_urlsafe_entityunikey)htmlastFr   Nr   	hard_wraprendererpluginsreturnc                     US:X  a  SnOUS:X  a	  [        U S9n[        US9nSnUb  U Vs/ s H  n[        U5      PM     nn[        X$US9$ s  snf )a  Create a Markdown instance based on the given condition.

:param escape: Boolean. If using html renderer, escape html.
:param hard_wrap: Boolean. Break every new line into ``<br>``.
:param renderer: renderer instance, default is HTMLRenderer.
:param plugins: List of plugins.

This method is used when you want to re-use a Markdown instance::

    markdown = create_markdown(
        escape=False,
        hard_wrap=True,
    )
    # re-use markdown function
    markdown('.... your text ...')
r   Nr   )r   )r   )r   inliner   )r   r   r   r   )r   r   r   r   r!   real_pluginsns          J/home/james-whalen/.local/lib/python3.13/site-packages/mistune/__init__.pycreate_markdownr%      sc    , 5	V	v.I.F/3L29:'Qa(':XlKK ;s   A)strikethrough	footnotestablespeedup)r   r   __cached_parserstextc                     US:X  a  S nXU4nU[         ;   a  [         U   " U 5      $ [        XUS9nU[         U'   U" U 5      $ )Nr   )r   r   r   )r*   r%   )r+   r   r   r   keymds         r$   markdownr/   @   sT     5W
%C
$T**	7	KBSd8O    )r   r   r   r   r   r   r   r   r   r   r   r   r%   r/   z3.1.4zhttps://mistune.lepture.com/)TFr   N)Tr   N))__doc__typingr   r   r   r   r   r   r	   r
   block_parserr   corer   r   r   inline_parserr   r/   r   r   r   r   r   renderers.htmlr   utilr   r   r   r   RendererRefboolr%   r   __annotations__r*   str__all____version____homepage__ r0   r$   <module>r@      s]   N M M % 7 7 '  5 5 ( 9 9GM*L89 &,-1	 L L L {# L hy)*	 L
  LF !7ijh j ac $uT8K#8(8C=:QQRT\\] b
 &,'+	
 {# hsm$	
 3T#s(^$$%&" -r0   