Fixed Parsing of @ usernames inside [CODE] block

digitalpoint

Well-known member
If your site has a user named "media" and you post the following CSS in a code block:
Code:
@media (max-width:480px) {
    * {
        somecss: here;
    }
}

It gets parsed and ends up looking like this:

upload_2013-10-21_19-30-32.webp

Since CODE blocks never link the user (rather show the BBCode directly), wouldn't it make sense to just not auto-parse the @Username's in the CODE block?
 
Technically the full workaround to this is pretty significantly complex - it involves full on BB code parsing. I have done a general workaround for this though.
 
Top Bottom