fix(cmd): do not process mentions in fenced codeblock
This commit is contained in:
parent
6b0174c8dc
commit
cba89ee406
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue