Bug with [code]anything[/code] on a single line by itself

It means you are going to need to apply some sort of processor on the old imported code if you want multiline bbcode to be converted from:

some text [code]

test
[/code] test

to:

some text 

[code]

test
[/code] 

test

It is quite a fiddly transform and I did not want it included in core.

If I were to attack this on an old imported corpus I would apply a transform to the posts raw column that inserts the missing newlines and then run a full rebake.

3 Likes