From cba89ee4061bfa16e67790ccc5df5915ef1a513f Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sun, 19 Oct 2025 19:13:47 -0400 Subject: [PATCH] fix(cmd): do not process mentions in fenced codeblock --- cmd/message_input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/message_input.go b/cmd/message_input.go index ea0fb80..035a9de 100644 --- a/cmd/message_input.go +++ b/cmd/message_input.go @@ -210,7 +210,7 @@ func processText(cID discord.ChannelID, src []byte) string { ast.Walk(discordmd.Parse(src), func(node ast.Node, enter bool) (ast.WalkStatus, error) { switch node := node.(type) { - case *ast.CodeBlock: + case *ast.CodeBlock, *ast.FencedCodeBlock: canMention = !enter case *discordmd.Inline: if (node.Attr & discordmd.AttrMonospace) != 0 {