diff --git a/lib/asciidoctor/custom_extensions/chat_block_processor.rb b/lib/asciidoctor/custom_extensions/chat_block_processor.rb new file mode 100644 index 0000000..558be81 --- /dev/null +++ b/lib/asciidoctor/custom_extensions/chat_block_processor.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class ChatBlock < Asciidoctor::Extensions::BlockProcessor + use_dsl + + named :chat + on_context :example + name_positional_attributes 'avatar', 'state' + default_attributes 'state' => 'default', 'avatarstype' => 'webp' + + # TODO: Create the output. + def process(parent, reader, attrs) + end +end