Add autoplay, preload, and metadata attribute for video block

This commit is contained in:
Gabriel Arazas 2023-11-24 20:28:52 +08:00
parent e7e973d1c6
commit e0aed2313d
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

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