add figure/figcaption

for #46
This commit is contained in:
AlexVonB
2021-06-30 13:02:36 +02:00
parent 62e9f0de02
commit 828e116530
2 changed files with 14 additions and 0 deletions

View File

@@ -240,6 +240,12 @@ 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):