Prefer AVIF to WebP encoding

This commit is contained in:
Gabriel Arazas 2023-05-15 13:25:45 +08:00
parent a3f9cd1aef
commit 144d9fe56f

View File

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