Revert "add figure/figcaption"

This reverts commit 828e116530.
This commit is contained in:
AlexVonB
2021-07-11 13:12:16 +02:00
parent 4aa6cf2a24
commit 16d8a0e1f7
2 changed files with 0 additions and 14 deletions

View File

@@ -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):

View File

@@ -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>') == '[![](/path/to/img.jpg)](#)'
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'