From 136878bb27fffbe80b3e39242c17104be5daa09e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 3 Apr 2023 21:55:33 +0800 Subject: [PATCH] chat-block-processor: init skeleton version --- .../custom_extensions/chat_block_processor.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/asciidoctor/custom_extensions/chat_block_processor.rb 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