[color] bbcode no longer works on my site unless on its own line


(Tobias Eigen) #1

I just noticed that [color=white]this should be white[/color] stopped working on my site unless it is on its own line. Is this related the upgrade to commonmark, @sam?

I use it to hide admin info at the bottom of welcome PMs triggered via wordpress, and now it’s appearing so I guess I need to update my template. See screenshots.

Working - bbcode on its own line

Not working - bbcode not on its own line


#2

This code is from Formatting toolbar plugin? Perhaps you should rather ask @Steven?


(Tobias Eigen) #3

actually, no - this is the official bbcode color plugin:


(Rafael dos Santos Silva) #4

On the new engine all bbcodes must be explicitly inline and/or block.

This bbcode was configured to be inline only intentionally. Since it compiles into span I believe it makes sense.


(Tobias Eigen) #5

Thanks, Rafael! Though I’m not sure I understand your explanation, to be honest… :exploding_head:

From my own testing it seems to be related to mixing HTML and bbcode on the same line. Is that not allowed with the new engine? Since this is something that likely will come up again (e.g. with html appearing in emailed in replies) can it not be made to work?

This works:

This is a line with some [color=white]white text[/color]. 

but this does not work:

<p>This is a line with some [color=white]white text[/color].

(Sam Saffron) #6

Mixing html and bbcode does indeed confuse stuff quite a lot. Especially if you start the line with HTML.