I threw src/XF/Html/Renderer/BbCode.php along with descriptions, samples, and screenshots of the errors at Gemini 2.5 Pro and it offered its own suggested changes below. I have modified the two functions and tables appear to be working now. Formatting like color, bold, and italics are preserved...