class YouTubeBlockMacro
Public Instance Methods
process(parent, target, attrs)
click to toggle source
# File lib/asciidoctor-youtube.rb, line 9 def process parent, target, attrs html = %(<div style="position: relative; padding-bottom: 56.25%;"> <iframe src="https://www.youtube.com/embed/#{target}" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="border-width: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe> </div>) create_pass_block parent, html, attrs, subs: nil end