Skip to content

katex: increase maxExpand setting #27812

Closed
@nschloe

Description

@nschloe

Feature Description

One of Gitea's strengths compared to GitHub is its ability to show lots of math in a page. Unfortunately, the amount of math that can be shown in one equation is limited. Consider

\rho\left(t\right)\!=\!\!\left(\begin{array}{cccc}0&\!0&\!0&\!\!\!0\\
0&\!\left|c_{1}\!\left(t\right)\right|^{2}&\!c_{1}\!\left(t\right)\!c_{2}^{*}\!\left(t\right)&\!\!\!0\\
0&\!c_{2}\!\left(t\right)\!c_{1}^{*}\!\left(t\right)&\!\left|c_{2}\!\left(t\right)\right|^{2}&\!\!\!0\\
0&0&0&\!\!\!1\!-\!\left|c_{1}\!\left(t\right)\right|^{2}\!-\!\left|c_{2}\!\left(t\right)\right|^{2}\end{array}\right),

screenshot_2023-10-27-125929

On GitHub, this renders fine:

$$\rho\left(t\right)\!=\!\!\left(\begin{array}{cccc}0&\!0&\!0&\!\!\!0\\\ 0&\!\left|c_{1}\!\left(t\right)\right|^{2}&\!c_{1}\!\left(t\right)\!c_{2}^{*}\!\left(t\right)&\!\!\!0\\\ 0&\!c_{2}\!\left(t\right)\!c_{1}^{*}\!\left(t\right)&\!\left|c_{2}\!\left(t\right)\right|^{2}&\!\!\!0\\\ 0&0&0&\!\!\!1\!-\!\left|c_{1}\!\left(t\right)\right|^{2}\!-\!\left|c_{2}\!\left(t\right)\right|^{2}\end{array}\right),$$

I'd suggest to increase katex's maxExpand setting, perhaps to its default of 1000.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions