Math Plugin/WYSIWYG Editor Interaction

AI-generated summary

Carleas reports a low-severity bug affecting the WYSIWYG editor’s interaction with the math plugin on desktop Chromebook and Pop!_OS across Chrome and Firefox. The issue arises when the WYSIWYG editor automatically inserts a backslash (\) before square brackets, transforming [text] into \[text\]. Since the math plugin is configured by default to interpret \[ and \] as LaTeX block delimiters, the intended text is incorrectly rendered as a LaTeX block displaying text instead of the expected bracketed content. The bug is reproducible by typing [text] in the WYSIWYG mode and then switching to the Markdown editor.

Priority/Severity: Low

Platform: Desktop; confirmed on Chromebook and Pop!_OS, Chrome and Firefox.

Description: Under certain circumstances, the WYSIWYG editor adds the escape character \ before [ and ]. But by default, the math plugin is set to interpret \[ and \] as defining a LaTeX block. So instead of the expected [text], the post displays a LaTeX block that says text.

Reproducible steps:

  1. Type [text] in the WYSIWYG editor
  2. Switch to Markdown editor