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:
Sami Turcotte 2015-04-20 00:42:50 -04:00
parent 0e3aaac58c
commit 639d4a6dec

View file

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