Duplicate Backticks turn into [icode] inside [code] block

Affected version
2.1.3
I am using XF 2.1.3 and I've turned off all addons, yet backticks take precedence over [code].
What's interesting is that here on this forum it doesn't happen. I had to specifically add those [ICODE] below to demonstrate.
I'm not sure if that's a different version of XF or different settings.

BB Code:

[code=sql]INSERT INTO bans (
`type`,
value,
expires,
added,
admin_id,
comment
)...[/code]


Expected rendering:
SQL:
INSERT INTO bans (
    `type`,
    value,
    expires,
    added,
    admin_id,
    comment
)...

Actual rendering:
SQL:
INSERT INTO bans (
    [ICODE]type[/ICODE],
    value,
    expires,
    added,
    admin_id,
    comment
)...
 
Only workaround I can advise currently is to switch markdown processing off if it is problematic.
 
Back
Top Bottom