summaryrefslogtreecommitdiffstats
path: root/docs/content/doc
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-07-24 05:21:51 +0100
committerGitHub <noreply@github.com>2021-07-24 00:21:51 -0400
commitf135a818f53d82a61f3d99d80e2a2384f00c51d2 (patch)
treeb335f68ee5308bf7ad4b9246c0feb3d4948cb304 /docs/content/doc
parent342f338bda2f728a869349e271a8b11ebc76372a (diff)
downloadgitea-f135a818f53d82a61f3d99d80e2a2384f00c51d2.tar.gz
gitea-f135a818f53d82a61f3d99d80e2a2384f00c51d2.zip
Make Mermaid.js limit configurable (#16519)
* Make Mermaid.js limit configurable Add `MERMAID_MAX_SOURCE_CHARACTERS` to `[markup]` settings to make the maximum size of a mermaid render configurable. Fix #16513 Signed-off-by: Andrew Thornton <art27@cantab.net> * fixup! Make Mermaid.js limit configurable * Update custom/conf/app.example.ini Co-authored-by: silverwind <me@silverwind.io> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'docs/content/doc')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.en-us.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
index a800094552..41dd0b702e 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
@@ -882,6 +882,8 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
## Markup (`markup`)
+- `MERMAID_MAX_SOURCE_CHARACTERS`: **5000**: Set the maximum size of a Mermaid source. (Set to -1 to disable)
+
Gitea can support Markup using external tools. The example below will add a markup named `asciidoc`.
```ini