mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
chat-block-processor: init block and attribute handling
This commit is contained in:
parent
136878bb27
commit
e3231fb0b2
@ -10,5 +10,12 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor
|
||||
|
||||
# TODO: Create the output.
|
||||
def process(parent, reader, attrs)
|
||||
block = create_block parent, :pass, nil, attrs, content_model: :compound
|
||||
block.add_role('dialogblock')
|
||||
|
||||
attrs['name'] ||= attrs['avatar']
|
||||
attrs['avatarsdir'] ||= './avatars'
|
||||
|
||||
block
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user