mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 04:58:07 +00:00
Prefer AVIF to WebP encoding
This commit is contained in:
parent
a3f9cd1aef
commit
144d9fe56f
@ -6,7 +6,7 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor
|
|||||||
named :chat
|
named :chat
|
||||||
on_context :example
|
on_context :example
|
||||||
name_positional_attributes 'avatar', 'state'
|
name_positional_attributes 'avatar', 'state'
|
||||||
default_attributes 'state' => 'default', 'avatarstype' => 'webp'
|
default_attributes 'state' => 'default', 'avatarstype' => 'avif'
|
||||||
|
|
||||||
def process(parent, reader, attrs)
|
def process(parent, reader, attrs)
|
||||||
block = create_block parent, :pass, nil, attrs, content_model: :compound
|
block = create_block parent, :pass, nil, attrs, content_model: :compound
|
||||||
|
Loading…
Reference in New Issue
Block a user