Math render limit on wikis

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

In #333514 (closed) it was decided that markdown rendering of math symbols should not be limited in wikis and git repository files, however, it seems this restriction was not removed in 15.1 as expected.

As shown in https://gitlab.com/calebcooper/4121-latex-render/-/wikis/home, wiki articles are still limited to 50 symbols in the current version.

Steps to reproduce

Create a wiki and insert:

$`a01`$ $`a02`$ $`a03`$ $`a04`$ $`a05`$ $`a06`$ $`a07`$ $`a08`$ $`a09`$ $`a10`$
$`a11`$ $`a12`$ $`a13`$ $`a14`$ $`a15`$ $`a16`$ $`a17`$ $`a18`$ $`a19`$ $`a20`$
$`a21`$ $`a22`$ $`a23`$ $`a24`$ $`a25`$ $`a26`$ $`a27`$ $`a28`$ $`a29`$ $`a30`$
$`a31`$ $`a32`$ $`a33`$ $`a34`$ $`a35`$ $`a36`$ $`a37`$ $`a38`$ $`a39`$ $`a40`$
$`a41`$ $`a42`$ $`a43`$ $`a44`$ $`a45`$ $`a46`$ $`a47`$ $`a48`$ $`a49`$ $`a50`$
$`a51`$ $`a52`$

Save and see that it does not render the last two.

Example Project

https://gitlab.com/calebcooper/4121-latex-render/-/wikis/home

What is the current bug behavior?

The editor stops rendering past 50 math symbols.

What is the expected correct behavior?

There should be no limit to the number of symbols rendered.

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by 🤖 GitLab Bot 🤖