§
    É$gÅ  ã                   óh   — d Z ddlZddlmZ ddlmZ  G d„ de¦  «        Z G d„ de¦  «        Zd	„ ZdS )
zù
Sane headers.

Allow for a header implementation that requires `#` headers to have a space
after the `#` portion. This allows for things like Magiclink issues to work
at the beginning of lines, and potentially other things like tag extensions
etc.
é    N)Ú	Extension)ÚHashHeaderProcessorc                   ó2   — e Zd ZdZ ej        d¦  «        ZdS )ÚSaneHeadersProcessorzProcess hash headers syntax.zE(?:^|\n)(?P<level>#{1,6})(?=[ ])(?P<header>(?:\\.|[^\\])*?)#*(?:\n|$)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚreÚcompileÚRE© ó    úT/var/www/html/netbox-4.1.3/venv/lib/python3.11/site-packages/pymdownx/saneheaders.pyr   r      s&   € € € € € Ø&Ð&à	ˆŒÐ\Ñ	]Ô	]€B€B€Br   r   c                   ó   — e Zd ZdZd„ ZdS )ÚSaneHeadersExtensionz Adds the sane headers extension.c                 ó–   — |j         j                             t          |j         ¦  «        dd¦  «         |                     | ¦  «         dS )z.Extend the inline and block processor objects.Ú
hashheaderéF   N)ÚparserÚblockprocessorsÚregisterr   ÚregisterExtension)ÚselfÚmds     r   ÚextendMarkdownz#SaneHeadersExtension.extendMarkdown   sG   € ð 	Œ	Ô!×*Ò*Õ+?ÀÄ	Ñ+JÔ+JÈLÐZ\Ñ]Ô]Ð]Ø
×Ò˜TÑ"Ô"Ð"Ð"Ð"r   N)r   r   r	   r
   r   r   r   r   r   r      s)   € € € € € Ø*Ð*ð#ð #ð #ð #ð #r   r   c                  ó   — t          | i |¤ŽS )zReturn extension.)r   )ÚargsÚkwargss     r   ÚmakeExtensionr       s   € õ   Ð0¨Ð0Ð0Ð0r   )	r
   r   Úmarkdownr   Úmarkdown.blockprocessorsr   r   r   r    r   r   r   ú<module>r#      s´   ððð ð 
€	€	€	Ø Ð Ð Ð Ð Ð Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8ð^ð ^ð ^ð ^ð ^Ð.ñ ^ô ^ð ^ð#ð #ð #ð #ð #˜9ñ #ô #ð #ð1ð 1ð 1ð 1ð 1r   