From 1b73d6ec832b22c272cdeff1b7182eabb2abd4bc Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 17 Apr 2023 16:22:03 +0800 Subject: [PATCH] Add name and update styling to chat block extension --- lib/asciidoctor/chat-block-processor/extension.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/asciidoctor/chat-block-processor/extension.rb b/lib/asciidoctor/chat-block-processor/extension.rb index 52ec823..cfa3f4f 100644 --- a/lib/asciidoctor/chat-block-processor/extension.rb +++ b/lib/asciidoctor/chat-block-processor/extension.rb @@ -18,7 +18,7 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor attrs['name'] ||= attrs['avatar'] block << (create_html_fragment block, %( -
+
)) @@ -35,6 +35,7 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor block << (create_html_fragment block, %(
+ #{attrs['name']} )) parse_content block, reader