Пример #1
0
def test_markdown_converts_newline_to_br():
  assert '<br>' not in markdown.convert('a b')
  assert '<br>' in markdown.convert('a\nb')
Пример #2
0
def test_markdown_converts_multiline_highlights():
  assert 'color' in markdown.convert('<<a\nb>>')
Пример #3
0
def test_markdown_converts_within_span():
  assert 'strong' in markdown.convert('<span>**a**</span>')
Пример #4
0
def test_markdown_converts_highlights():
  assert 'color' in markdown.convert('<<a>>')
  assert 'color' not in markdown.convert('<a>')
Пример #5
0
def test_markdown_converts_inline_within_highlights():
  assert 'strong' not in markdown.convert('<<b>>')
  assert 'strong' in markdown.convert('<<**b**>>')
Пример #6
0
def test_markdown_converts_newline_to_br():
    assert '<br>' not in markdown.convert('a b')
    assert '<br>' in markdown.convert('a\nb')
Пример #7
0
def test_markdown_converts_vertical_pipes_to_table_without_header():
  assert '<table>' in markdown.convert('a|b')
  assert '<table>' in markdown.convert('#Hi\na|b')
  assert '<thead>' not in markdown.convert('a|b')
Пример #8
0
def test_markdown_converts_within_span():
    assert 'strong' in markdown.convert('<span>**a**</span>')
Пример #9
0
def test_markdown_converts_multiline_highlights():
    assert 'color' in markdown.convert('<<a\nb>>')
Пример #10
0
def test_markdown_converts_inline_within_highlights():
    assert 'strong' not in markdown.convert('<<b>>')
    assert 'strong' in markdown.convert('<<**b**>>')
Пример #11
0
def test_markdown_converts_highlights():
    assert 'color' in markdown.convert('<<a>>')
    assert 'color' not in markdown.convert('<a>')
Пример #12
0
def test_markdown_converts_vertical_pipes_to_table_without_header():
    assert '<table>' in markdown.convert('a|b')
    assert '<table>' in markdown.convert('#Hi\na|b')
    assert '<thead>' not in markdown.convert('a|b')