mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-30 22:57:56 +00:00
Add autoplay, preload, and metadata attribute for video block
This commit is contained in:
parent
e7e973d1c6
commit
e0aed2313d
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user