U
    ôDk\`  ã                   @   sT   d Z ddlmZ ddlmZ ddlmZ ddlmZ dZG d	d
„ d
eƒZ	dd„ Z
dS )aœ  
NL2BR Extension
===============

A Python-Markdown extension to treat newlines as hard breaks; like
GitHub-flavored Markdown does.

See <https://Python-Markdown.github.io/extensions/nl2br>
for documentation.

Oringinal code Copyright 2011 [Brian Neal](http://deathofagremmie.com/)

All changes Copyright 2011-2014 The Python Markdown Project

License: [BSD](http://www.opensource.org/licenses/bsd-license.php)

é    )Úabsolute_import)Úunicode_literalsé   )Ú	Extensioné   )ÚSubstituteTagInlineProcessorz\nc                   @   s   e Zd Zdd„ ZdS )ÚNl2BrExtensionc                 C   s   t tdƒ}|j |dd¡ d S )NÚbrÚnlé   )r   ÚBR_REZinlinePatternsÚregister)ÚselfZmdZbr_tag© r   ú;/usr/lib/python3/dist-packages/markdown/extensions/nl2br.pyÚextendMarkdown   s    
zNl2BrExtension.extendMarkdownN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   c                  K   s
   t f | ŽS )N)r   )Úkwargsr   r   r   ÚmakeExtension"   s    r   N)Ú__doc__Z
__future__r   r   Ú r   Zinlinepatternsr   r   r   r   r   r   r   r   Ú<module>   s   