]> source.dussan.org Git - gitea.git/commit
Make Mermaid.js limit configurable (#16519)
authorzeripath <art27@cantab.net>
Sat, 24 Jul 2021 04:21:51 +0000 (05:21 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 04:21:51 +0000 (00:21 -0400)
commitf135a818f53d82a61f3d99d80e2a2384f00c51d2
treeb335f68ee5308bf7ad4b9246c0feb3d4948cb304
parent342f338bda2f728a869349e271a8b11ebc76372a
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>
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
modules/setting/markup.go
modules/templates/helper.go
templates/base/head.tmpl
web_src/js/markup/mermaid.js