def test_hrule(self):
     assert notify_markdown('a\n\n***\n\nb') == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">a</p>'
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">b</p>'
     )
     assert notify_markdown('a\n\n---\n\nb') == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">a</p>'
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">b</p>'
     )
def test_add_spaces_after_single_newlines_so_markdown_converts_them():
    converted = prepare_newlines_for_markdown(
        'Paragraph one\n'
        '\n'
        'Paragraph two has linebreaks\n'
        'This is the second line\n'
        'The third has 2 spaces after it  \n'
        'And this is the fourth\n'
        '\n'
        'Next paragraph'
    )
    assert converted == (
        'Paragraph one\n'
        '\n'
        'Paragraph two has linebreaks  \n'
        'This is the second line  \n'
        'The third has 2 spaces after it  \n'
        'And this is the fourth\n'
        '\n'
        'Next paragraph'
    )
    assert notify_markdown(converted) == (
        '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">'
        'Paragraph one'
        '</p>'
        '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">'
        'Paragraph two has linebreaks<br/>'
        'This is the second line<br/>'
        'The third has 2 spaces after it<br/>'
        'And this is the fourth'
        '</p>'
        '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">'
        'Next paragraph'
        '</p>'
    )
 def test_link(self):
     assert notify_markdown(
         '[Example](http://example.com)'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; '
         'color: #0B0C0C;">Example: http://example.com</p>'
     )
 def test_codespan(self):
     assert notify_markdown(
         'variable called `thing`'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; '
         'color: #0B0C0C;">variable called thing</p>'
     )
 def test_level_1_header(self):
     assert notify_markdown('# heading') == (
         '<h2 style="Margin: 0 0 20px 0; padding: 0; font-size: 27px; '
         'line-height: 35px; font-weight: bold; color: #0B0C0C;">'
         'heading'
         '</h2>'
     )
 def test_table(self):
     assert notify_markdown(
         'col | col\n'
         '----|----\n'
         'val | val\n'
     ) == (
         ''
     )
 def test_block_quote(self):
     assert notify_markdown('^ inset text') == (
         '<blockquote '
         'style="Margin: 0 0 20px 0; border-left: 10px solid #BFC1C3;'
         'padding: 15px 0 0.1px 15px; font-size: 19px; line-height: 25px;'
         '">'
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">inset text</p>'
         '</blockquote>'
     )
 def test_paragraphs(self):
     assert notify_markdown(
         'line one\n'
         'line two\n'
         '\n'
         'new paragraph'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">line one\n'
         'line two</p>'
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">new paragraph</p>'
     )
 def test_unordered_list(self):
     assert notify_markdown(
         '* one\n'
         '* two\n'
         '* three\n'
     ) == (
         '<ul style="Margin: 0 0 20px 0; padding: 0; list-style-type: disc;">'
         '<li style="Margin: 5px 0 5px 20px; padding: 0; display: list-item; font-size: 19px; '
         'line-height: 25px; color: #0B0C0C;">one</li>'
         '<li style="Margin: 5px 0 5px 20px; padding: 0; display: list-item; font-size: 19px; '
         'line-height: 25px; color: #0B0C0C;">two</li>'
         '<li style="Margin: 5px 0 5px 20px; padding: 0; display: list-item; font-size: 19px; '
         'line-height: 25px; color: #0B0C0C;">three</li>'
         '</ul>'
     )
 def test_strikethrough(self):
     assert notify_markdown(
         '~~Strike~~'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">Strike</p>'
     )
 def test_image(self):
     assert notify_markdown(
         '![alt text](http://example.com/image.png)'
     ) == (
         ''
     )
 def test_emphasis(self):
     assert notify_markdown(
         'something *important*'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">something important</p>'
     )
 def test_autolink(self):
     assert notify_markdown(
         'http://example.com'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">http://example.com</p>'
     )
 def test_level_2_header(self):
     assert notify_markdown(
         '## inset text'
     ) == (
         '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">inset text</p>'
     )
 def test_block_code(self):
     assert notify_markdown('```\nprint("hello")\n```') == 'print("hello")'