Replace code blocks with preformatted
1 files changed, 1 insertions(+), 0 deletions(-)

M googlechat.groovy
M googlechat.groovy +1 -0
@@ 182,6 182,7 @@ class SimpleChatMessage implements ChatM
 		if (event.comment) {
 			def formattedComment = event.comment?.body?.
 				replaceAll(~"\\{noformat\\}\\r?", '```')?.
+				replaceAll(~"\\{code(?::[a-z]+)?\\}\\r?", '```')?.
 				replaceAll(~"\\{color[#:0-9a-f]*\\}", "")?.
 				replaceAll(~"h[1-6]\\. (.*)", '*$1*')?.
 				replaceAll(~'[\n\r]{4}', "\n")?.