mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 04:58:07 +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
|
video = figure.first_element_child
|
||||||
|
|
||||||
add_common_attributes node, figure
|
add_common_attributes node, figure
|
||||||
add_boolean_attribute node, video, %w[loop controls muted]
|
add_boolean_attribute node, video, %w[autoplay loop controls muted]
|
||||||
add_attributes_from_node node, video, %w[width height]
|
add_attributes_from_node node, video, %w[width height poster preload]
|
||||||
|
|
||||||
if node.attr? 'sources'
|
if node.attr? 'sources'
|
||||||
_, sources = add_sources_elem node, video, 'video'
|
_, sources = add_sources_elem node, video, 'video'
|
||||||
|
Loading…
Reference in New Issue
Block a user