mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
Change div wrapper to a figure wrapper
The reasoning is that the translation of Markdown into HTML should be as concise as possible. The semantics of the figure element seem to fit the embedded nature of OEmbed content moreso than the div element which is quite generic.
This commit is contained in:
parent
0e3aaac58c
commit
639d4a6dec
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class OEmbedLinkPattern(Pattern):
|
|||
if html is None:
|
||||
return None
|
||||
else:
|
||||
html = "<div class=\"oembed\">%s</div>" % html
|
||||
html = "<figure class=\"oembed\">%s</figure>" % html
|
||||
placeholder = self.markdown.htmlStash.store(html, True)
|
||||
return placeholder
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue