From e0aed2313dacd81988ef2c3b40003a686ecb8589 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 24 Nov 2023 20:28:52 +0800 Subject: [PATCH] Add autoplay, preload, and metadata attribute for video block --- lib/asciidoctor/foodogsquared/converters/html5-extended.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asciidoctor/foodogsquared/converters/html5-extended.rb b/lib/asciidoctor/foodogsquared/converters/html5-extended.rb index 57e7cf3..5e6a4d6 100644 --- a/lib/asciidoctor/foodogsquared/converters/html5-extended.rb +++ b/lib/asciidoctor/foodogsquared/converters/html5-extended.rb @@ -136,8 +136,8 @@ module Asciidoctor::Foodogsquared::Converters video = figure.first_element_child add_common_attributes node, figure - add_boolean_attribute node, video, %w[loop controls muted] - add_attributes_from_node node, video, %w[width height] + add_boolean_attribute node, video, %w[autoplay loop controls muted] + add_attributes_from_node node, video, %w[width height poster preload] if node.attr? 'sources' _, sources = add_sources_elem node, video, 'video'