@@ -244,12 +244,6 @@ class MarkdownConverter(object):
|
||||
|
||||
convert_em = abstract_inline_conversion(lambda self: self.options['strong_em_symbol'])
|
||||
|
||||
def convert_figcaption(self, el, text, convert_as_inline):
|
||||
return "<figcaption>%s</figcaption>" % text
|
||||
|
||||
def convert_figure(self, el, text, convert_as_inline):
|
||||
return "<figure>%s</figure>" % text
|
||||
|
||||
convert_kbd = convert_code
|
||||
|
||||
def convert_hn(self, n, el, text, convert_as_inline):
|
||||
|
||||
@@ -39,10 +39,6 @@ def test_a_no_autolinks():
|
||||
assert md('<a href="https://google.com">https://google.com</a>', autolinks=False) == '[https://google.com](https://google.com)'
|
||||
|
||||
|
||||
def test_a_containing_images():
|
||||
assert md('<a href="#"><img src="/path/to/img.jpg"></a>') == '[](#)'
|
||||
|
||||
|
||||
def test_b():
|
||||
assert md('<b>Hello</b>') == '**Hello**'
|
||||
|
||||
@@ -89,10 +85,6 @@ def test_em():
|
||||
inline_tests('em', '*')
|
||||
|
||||
|
||||
def test_figure():
|
||||
assert md('<figure><img src="#"><figcaption>A</figcaption></figure>') == '<figure><figcaption>A</figcaption></figure>'
|
||||
|
||||
|
||||
def test_h1():
|
||||
assert md('<h1>Hello</h1>') == 'Hello\n=====\n\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user