User Ethsim2 reported a persistent bug in Discourse v2026.2.0-latest where the table editor throws a Cannot read properties of null (reading 'length') error when saving, even in Safe Mode. The issue affects tables containing LaTeX formatting, such as this example involving dielectric constants. While sam initially could not reproduce the issue with a standard table, Ethsim2 provided the specific markdown causing the failure.
The root cause was identified as a reliance on regex for table detection, which failed with complex formatting. This was addressed in PR #37658, which switches to more robust markdown parsing sam. However, Ethsim2 noted that their instance (commit 8125ffa60a) predates this fix and the issue persists until the latest version is updated past the merge Ethsim2.