gpt4 book ai didi

GitLab 在出现 50 次后停止为 Markdown 文件呈现文本内 LaTeX

转载 作者:行者123 更新时间:2023-12-05 02:29:10 24 4
gpt4 key购买 nike

我一直在 Markdown 中使用 GitLab 的 LaTeX 渲染功能,并且非常喜欢它。话虽这么说,但我发现文本内 latex 引用的数量存在上限。

在一个页面上恰好出现 50 次后,渲染将停止,格式也会随之改变(期望的行为)

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

对此

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

(不正确的行为)。这是可重现的,有一个最小的例子 uploaded to my gitlab here .

我已经搜索了任何相关信息,但找不到有关此限制的任何信息,尽管我找到了 this gitlab issue这似乎是相关的,但并没有解决问题。

有谁知道是否有办法禁用/绕过此限制,或者向 GitLab 开发人员提交票证?

谢谢!

最佳答案

这可能与 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.

可以在 j7168908jx/gitlab merge_requests 1 中找到可能的解决方法

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

关于GitLab 在出现 50 次后停止为 Markdown 文件呈现文本内 LaTeX,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72354511/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com