§
    Œ†Ž[Ô  ã                   ój   — d dl Z d dlZ G d„ de j        ¦  «        Zedk    r e j        ¦   «          dS dS )é    Nc                   óh   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )ÚTestCommonmarkc                 óf   — t          j        ¦   «         | _        t          j        ¦   «         | _        d S ©N)Ú
commonmarkÚParserÚparserÚReStructuredTextRendererÚrenderer)Úselfs    ú</usr/lib/python3/dist-packages/commonmark/tests/rst_tests.pyÚsetUpzTestCommonmark.setUp   s&   € Ý Ô'Ñ)Ô)ˆŒÝ"Ô;Ñ=Ô=ˆŒˆˆó    c                 ón   — | j                              |¦  «        }| j                             |¦  «        }|S r   )r	   Úparser   Úrender)r   Útest_strÚastÚrsts       r   Ú
render_rstzTestCommonmark.render_rst   s1   € ØŒk×Ò Ñ)Ô)ˆØŒm×"Ò" 3Ñ'Ô'ˆàˆ
r   c                 ó\   — |                       |¦  «        }|                      ||¦  «         d S r   )r   ÚassertEqual)r   Úsrc_markdownÚexpected_rstÚrendered_rsts       r   ÚassertEqualRenderz TestCommonmark.assertEqualRender   s/   € Ø—’ |Ñ4Ô4ˆØ×Ò˜ |Ñ4Ô4Ð4Ð4Ð4r   c                 ó:   — d}d}|                       ||¦  «         d S )NzHello **Strong**z
Hello **Strong**
©r   ©r   r   r   s      r   Útest_strongzTestCommonmark.test_strong   ó(   € Ø)ˆØ-ˆØ×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )NzHello *Emphasis*z
Hello *Emphasis*
r   r   s      r   Útest_emphasiszTestCommonmark.test_emphasis   r!   r   c                 ó:   — d}d}|                       ||¦  «         d S )NzHello paragraphz
Hello paragraph
r   r   s      r   Útest_paragraphzTestCommonmark.test_paragraph   s(   € Ø(ˆØ,ˆØ×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz[Link](http://example.com)z
`Link <http://example.com>`_
r   r   s      r   Ú	test_linkzTestCommonmark.test_link$   s(   € Ø3ˆØ9ˆØ×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz(![Image](http://placekitten.com/100/100)z;
.. image:: http://placekitten.com/100/100
    :alt: Image
r   r   s      r   Ú
test_imagezTestCommonmark.test_image)   s,   € ØAˆðˆð 	×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz!Test `inline code` with backticksz%
Test ``inline code`` with backticks
r   r   s      r   Ú	test_codezTestCommonmark.test_code1   s(   € Ø:ˆØ@ˆØ×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )NzK
```python
# code block
print '3 backticks or'
print 'indent 4 spaces'
```
z[
.. code:: python

    # code block
    print '3 backticks or'
    print 'indent 4 spaces'
r   r   s      r   Útest_code_blockzTestCommonmark.test_code_block6   ó.   € ðˆðˆð 	×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz5
This is a list:
* List item
* List item
* List item
z6
This is a list:

* List item
* List item
* List item
r   r   s      r   Útest_unordered_listz"TestCommonmark.test_unordered_listG   ó.   € ðˆðˆð 	×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz0
This is a ordered list:
1. One
2. Two
3. Three
z1
This is a ordered list:

#. One
#. Two
#. Three
r   r   s      r   Útest_ordered_listz TestCommonmark.test_ordered_listW   r1   r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz@
Before the blockquote:

> The blockquote

After the blockquote
zB
Before the blockquote:

    The blockquote

After the blockquote
r   r   s      r   Útest_block_quotezTestCommonmark.test_block_quoteg   r.   r   c                 ó:   — d}d}|                       ||¦  «         d S )Nz]
# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6
z~
Heading 1
#########

Heading 2
*********

Heading 3
=========

Heading 4
---------

Heading 5
^^^^^^^^^

Heading 6
"""""""""
r   r   s      r   Útest_headingzTestCommonmark.test_headingx   s.   € ðˆðˆð& 	×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   c                 ó:   — d}d}|                       ||¦  «         d S )NzU
Start of first paragraph that
continues on a new line

This is the second paragraph
r   r   s      r   Útest_multiple_paragraphsz'TestCommonmark.test_multiple_paragraphs›   s.   € ðˆðˆð 	×Ò˜|¨\Ñ:Ô:Ð:Ð:Ð:r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r    r#   r%   r'   r)   r+   r-   r0   r3   r5   r7   r9   © r   r   r   r      sö   € € € € € ð>ð >ð >ðð ð ð5ð 5ð 5ð;ð ;ð ;ð
;ð ;ð ;ð
;ð ;ð ;ð
;ð ;ð ;ð
;ð ;ð ;ð;ð ;ð ;ð
;ð ;ð ;ð";ð ;ð ;ð ;ð ;ð ;ð ;ð ;ð ;ð"!;ð !;ð !;ðF;ð ;ð ;ð ;ð ;r   r   Ú__main__)Úunittestr   ÚTestCaser   r:   Úmainr=   r   r   ú<module>rB      sv   ðØ €€€à Ð Ð Ð ðb;ð b;ð b;ð b;ð b;�XÔ&ñ b;ô b;ð b;ðJ ˆzÒÐØ€H„M�O„O€O€O€Oð Ðr   