Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Wraps the iframe in a div
Browse files Browse the repository at this point in the history
  • Loading branch information
Geraldo Ribeiro committed Feb 3, 2022
1 parent ccfcdde commit 371c415
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mkdocs_video/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ def create_repl_tag(self, src):
["{}: {}".format(str(atr), str(style[atr])) for atr in style]
)

return "<iframe "\
return "<div class=\"video-container\">"\
"<iframe "\
"src=\"{}\" "\
"style=\"{}\" "\
"frameborder=\"0\" "\
"allowfullscreen>"\
"</iframe>".format(src, style)
"</iframe>"\
"</div>".format(src, style)


def find_marked_tags(self, content):
Expand Down

0 comments on commit 371c415

Please sign in to comment.