diff --git a/lib/asciidoctor/custom_extensions/chat_block_processor.rb b/lib/asciidoctor/custom_extensions/chat_block_processor.rb index de02b90..f4f566c 100644 --- a/lib/asciidoctor/custom_extensions/chat_block_processor.rb +++ b/lib/asciidoctor/custom_extensions/chat_block_processor.rb @@ -8,7 +8,6 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor name_positional_attributes 'avatar', 'state' default_attributes 'state' => 'default', 'avatarstype' => 'webp' - # TODO: Create the output. def process(parent, reader, attrs) block = create_block parent, :pass, nil, attrs, content_model: :compound block.add_role('dialogblock') @@ -16,6 +15,17 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor attrs['name'] ||= attrs['avatar'] attrs['avatarsdir'] ||= './avatars' + block << (create_block block, :pass, %( +
+
+ # Image +
+
+ # Content +
+
+ ), nil) + block end end