Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

katex: increase maxExpand setting #27812

Closed
nschloe opened this issue Oct 27, 2023 · 0 comments · Fixed by #27823
Closed

katex: increase maxExpand setting #27812

nschloe opened this issue Oct 27, 2023 · 0 comments · Fixed by #27823
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@nschloe
Copy link

nschloe commented Oct 27, 2023

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

@nschloe nschloe added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Oct 27, 2023
This was referenced Oct 27, 2023
lunny pushed a commit that referenced this issue Oct 29, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Nov 1, 2023
KN4CK3R added a commit that referenced this issue Nov 1, 2023
Backport #27823 by @KN4CK3R

Fixes #27812

Use higher defaults again but limit the input size.


![grafik](https://github.com/go-gitea/gitea/assets/1666336/23cdf572-de30-4799-b9cf-ef386b1623b9)

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2023
fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this issue Jan 17, 2024
silverwind pushed a commit to silverwind/gitea that referenced this issue Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant