From 639d4a6dec412c7313067950aca6c860d917f30b Mon Sep 17 00:00:00 2001 From: Sami Turcotte Date: Mon, 20 Apr 2015 00:42:50 -0400 Subject: [PATCH] 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. --- mdx_oembed/inlinepatterns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdx_oembed/inlinepatterns.py b/mdx_oembed/inlinepatterns.py index 1fbb09d..8c59ea1 100644 --- a/mdx_oembed/inlinepatterns.py +++ b/mdx_oembed/inlinepatterns.py @@ -22,7 +22,7 @@ class OEmbedLinkPattern(Pattern): if html is None: return None else: - html = "
%s
" % html + html = "
%s
" % html placeholder = self.markdown.htmlStash.store(html, True) return placeholder