§
    Ó¼Ñbó	  ã                   óŒ   — d Z ddlZddlmZmZ ddlmZ  ej        d¦  «        Z G d„ de¦  «        Z	 G d„ d	e¦  «        Z
d
„ ZdS )aN  
Python Markdown

A Python implementation of John Gruber's Markdown.

Documentation: https://python-markdown.github.io/
GitHub: https://github.com/Python-Markdown/markdown/
PyPI: https://pypi.org/project/Markdown/

Started by Manfred Stienstra (http://www.dwerg.net/).
Maintained for a few years by Yuri Takhteyev (http://www.freewisdom.org).
Currently maintained by Waylan Limberg (https://github.com/waylan),
Dmitry Shachnev (https://github.com/mitya57) and Isaac Muse (https://github.com/facelessuser).

Copyright 2007-2018 The Python Markdown Project (v. 1.7 and later)
Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b)
Copyright 2004 Manfred Stienstra (the original version)

License: BSD (see LICENSE.md for details).

Legacy Attributes Extension
===========================

An extension to Python Markdown which implements legacy attributes.

Prior to Python-Markdown version 3.0, the Markdown class had an `enable_attributes`
keyword which was on by default and provided for attributes to be defined for elements
using the format `{@key=value}`. This extension is provided as a replacement for
backward compatibility. New documents should be authored using attr_lists. However,
numerious documents exist which have been using the old attribute format for many
years. This extension can be used to continue to render those documents correctly.
é    N)ÚTreeprocessorÚisString)Ú	Extensionz\{@([^\}]*)=([^\}]*)}c                   ó   — e Zd Zd„ Zd„ ZdS )ÚLegacyAttrsc                 ó¤  — |                      ¦   «         D ]º}|                     dd¦  «        }|�*|                     d|                      ||¦  «        ¦  «         |j        r4t          |j        ¦  «        r |                      ||j        ¦  «        |_        |j        r4t          |j        ¦  «        r |                      ||j        ¦  «        |_        Œ»dS )z2Find and set values of attributes ({@key=value}). ÚaltN)ÚiterÚgetÚsetÚhandleAttributesÚtextr   Útail)ÚselfÚdocÚelr	   s       úB/usr/lib/python3/dist-packages/markdown/extensions/legacy_attrs.pyÚrunzLegacyAttrs.run+   sÈ   € à—(’(‘*”*ð 	=ð 	=ˆBØ—&’&˜ Ñ%Ô%ˆCØˆØ—’�u˜d×3Ò3°B¸Ñ<Ô<Ñ=Ô=Ð=ØŒwð =�8 B¤GÑ,Ô,ð =Ø×/Ò/°°B´GÑ<Ô<�”ØŒwð =�8 B¤GÑ,Ô,ð =Ø×/Ò/°°B´GÑ<Ô<�”øð	=ð 	=ó    c                 óD   ‡— ˆfd„}t                                ||¦  «        S )z5 Set attributes and return text without definitions. c                 ó¨   •— ‰                      |                      d¦  «        |                      d¦  «                             dd¦  «        ¦  «         d S )Né   é   ú
ú )r   ÚgroupÚreplace)Úmatchr   s    €r   ÚattributeCallbackz7LegacyAttrs.handleAttributes.<locals>.attributeCallback8   sA   ø€ Ø�FŠF�5—;’;˜q‘>”> 5§;¢;¨q¡>¤>×#9Ò#9¸$ÀÑ#DÔ#DÑEÔEÐEÐEÐEr   )ÚATTR_REÚsub)r   r   Útxtr   s    `  r   r   zLegacyAttrs.handleAttributes6   s6   ø€ ð	Fð 	Fð 	Fð 	Fð 	Få�{Š{Ð,¨cÑ2Ô2Ð2r   N)Ú__name__Ú
__module__Ú__qualname__r   r   © r   r   r   r   *   s2   € € € € € ð	=ð 	=ð 	=ð3ð 3ð 3ð 3ð 3r   r   c                   ó   — e Zd Zd„ ZdS )ÚLegacyAttrExtensionc                 óX   — |j                              t          |¦  «        dd¦  «         d S )NÚlegacyattrsé   )ÚtreeprocessorsÚregisterr   )r   Úmds     r   ÚextendMarkdownz"LegacyAttrExtension.extendMarkdown>   s)   € Ø
Ô×"Ò"¥;¨r¡?¤?°MÀ2ÑFÔFÐFÐFÐFr   N)r#   r$   r%   r/   r&   r   r   r(   r(   =   s(   € € € € € ðGð Gð Gð Gð Gr   r(   c                  ó   — t          di | ¤ŽS )Nr&   )r(   )Úkwargss    r   ÚmakeExtensionr2   B   s   € ÝÐ(Ð( Ð(Ð(Ð(r   )Ú__doc__ÚreÚmarkdown.treeprocessorsr   r   Úmarkdown.extensionsr   Úcompiler    r   r(   r2   r&   r   r   ú<module>r8      sÎ   ððð ðB 
€	€	€	Ø ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø )Ð )Ð )Ð )Ð )Ð )ð ˆ"Œ*Ð-Ñ
.Ô
.€ð3ð 3ð 3ð 3ð 3�-ñ 3ô 3ð 3ð&Gð Gð Gð Gð G˜)ñ Gô Gð Gð
)ð )ð )ð )ð )r   