Okay I figured out the style-breaking bug in 1.2.0. What happens is that when the post is first parsed (so when you click Update Counters or Post Preview) the post will display correctly, because the bb-code parser will be run. Afterwards, however, if the post was cached, it will not run the bbcode parser and will skip an important regex. This will result in broken tables and a Javascript hang.
The Javascript breaks if the post is cached because the onload triggers aren't set. So the fix would be disabling post caching for posts with images. At this point, the mod would mean slowing things down a little bit... for me it doesn't make a difference because I had to disable post caching for other reasons, but I will upload both 1.2.1 and the old 1.1.0 (thanks to xandizitxu) so users can choose.
|