mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +00:00
chat-block-processor: init skeleton version
This commit is contained in:
parent
0656dcdfb0
commit
136878bb27
14
lib/asciidoctor/custom_extensions/chat_block_processor.rb
Normal file
14
lib/asciidoctor/custom_extensions/chat_block_processor.rb
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user