oldcordapp / OldCordV3

rewrite
GNU General Public License v3.0
8 stars 3 forks source link

Ignore mentions inside code blocks #53

Closed nulldg closed 3 weeks ago

nulldg commented 3 weeks ago

when mentions such as @everyone and roles or users <@123456789...> are enclosed in code blocks - like so: `@everyone` - the backend does not check for this and incorrectly registers that as a valid mention.

nulldg commented 3 weeks ago

solving this would likely require a markdown parser which mimics the behavior of discord's, but it will be significantly simpler as there is no need to generate an AST.