Automattic / Automattic/jetpack

Beautiful Math: Equations with matrices not displaying properly in Block Editor

Open
#11,728 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Beautiful Math [Focus] Blocks [Pri] Low [Status] Stale Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

We've received a report that an equation does not display properly in the Block Editor. However, the same equation displays properly in the Classic Editor.

The equation that surfaced this issue is as follows:
```
$latex displaystyle M=left[ {begin{array}{*{20}{c}} 1 & 2 & 3 & 4 \ 5 & 6 & 7 &
8 \ 9 & {10} & {11} & {12} \ {13} & {14} & {15} & {16} end{array}}
right]frac{{-bpm sqrt{{{{b}^{2}}-4ac}}}}{{2a}}$
```

This issue seems to apply to any equation that includes matrices. @aheckler reproduced this issue as well, as seen in this screenshot with the Classic Block on top and the Text Block on the bottom:

3687

Contributor guide

Open the contributing guide

Research direction

Reproduce the supplied matrix equation in the Block Editor and Classic Editor, using the screenshot as the expected comparison. Trace how Beautiful Math renders equations containing matrices in each editor, then verify that the matrix equation displays properly in the Block Editor as it does in the Classic Editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
wordpress
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.