GitLab停止在50年发生后渲染文本乳胶乳胶。

发布于 2025-01-31 09:29:49 字数 766 浏览 5 评论 0 原文

我一直在Markdown中使用Gitlab的乳胶渲染功能,并非常享受它。话虽这么说,我发现文本乳胶乳胶的数量有上限。

在一页上完全发生50次发生后,渲染将停止,格式从此(期望的行为)发生变化(所需的行为)

... where<在此处假设正确的乳胶>最大化...

...

...其中$ \ delta \ rho^\ prime $最大化...

(不正确的行为)。这是可重现的,带有最小示例

我已经搜索了任何相关信息,但无法找到有关此限制的任何信息,尽管我发现 这个Gitlab问题 似乎是相关的,但不能解决问题。

有谁知道是否有一种禁用/绕过此限制的方法,还是向Gitlab开发人员提交票?

谢谢!

I have been using GitLab's LaTeX rendering feature in Markdown, and enjoy it tremendously. That being said, I have found that there is an upper limit to the number of in-text latex references.

After exactly 50 occurrences on one page, rendering will stop, with formatting changing from this (desired behavior)

... where <ASSUME CORRECT LATEX HERE> is maximized ...

to this

... where $\Delta \rho^\prime$ is maximized ...

(incorrect behavior). This is reproducible, with a minimal example uploaded to my gitlab here.

I have searched for any relevant information and have been unable to find any information on this limit, though I have found this gitlab issue which seems to be related, but does not solve the problem.

Does anyone know if there is a way to disable/bypass this limit, or else submit a ticket to the GitLab developers?

Thanks either way!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

后eg是否自 2025-02-07 09:29:49

这可能与问题333514

当前对数学渲染的限制是每个页面的总字符或2000毫秒的运行时,以首先发生的,有助于防止在我们可以渲染GFM的所有页面上进行DOS攻击。

这是Wikis等页面的非理想之选

  • 没有用户生成的内容。
  • 数学图可以快速增加2000毫秒的运行时或1000个字符。

可以在

“

This could be related to issue 333514

Current limitations on Math rendering is 1000 total characters per page OR 2000ms of runtime, whichever happens first, helps in preventing a DoS attack on all pages where we can render GFM.

This is non-ideal for pages like Wikis where

  • There is no user-generated content.
  • The math diagrams can quickly rack up 2000ms of runtime or 1000 chars.

A possible workaround can be found in j7168908jx/gitlab merge_requests 1

https://gitlab.com/j7168908jx/gitlab/uploads/d888dec18b9c468e1c475b71f9b6fa26/image.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文