Try to fix Mermaid Diagram error: Maximum call stack size exceeded.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2022-10-04 12:58:22 +03:00
parent 7c0251cef5
commit aeac6e605b
3 changed files with 5 additions and 5 deletions

6
package-lock.json generated
View file

@ -428,9 +428,9 @@
}
},
"@wekanteam/markdown-it-mermaid": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/@wekanteam/markdown-it-mermaid/-/markdown-it-mermaid-0.5.6.tgz",
"integrity": "sha512-jwwaecvkwYLSc1kQJtA7F3giBPu9ShiBd05SNl6mlufO+NtEz+82BxNph7qMdh7zlNbon5PArabcK1e89hB3qQ==",
"version": "0.5.8",
"resolved": "https://registry.npmjs.org/@wekanteam/markdown-it-mermaid/-/markdown-it-mermaid-0.5.8.tgz",
"integrity": "sha512-9Sf/L1hZruZBGZdVp0kCW910MqaI5CVy6dARD3vrax6bH5UnlVhTzW6GJgQj0HEMBPfoENnTp6n97XXz4i8gRA==",
"requires": {
"@wekanteam/cli-table3": "^0.7.7",
"mermaid": "^9.1.7"

View file

@ -24,7 +24,7 @@
"@babel/core": "^7.15.5",
"@babel/runtime": "^7.15.4",
"@mapbox/node-pre-gyp": "^1.0.8",
"@wekanteam/markdown-it-mermaid": "^0.5.6",
"@wekanteam/markdown-it-mermaid": "^0.5.8",
"ajv": "^6.12.6",
"babel-runtime": "^6.26.0",
"bcryptjs": "^2.4.3",

View file

@ -49,7 +49,7 @@ Markdown.use(mathjax);
// https://www.npmjs.com/package/@wekanteam/markdown-it-mermaid
// https://github.com/wekan/markdown-it-mermaid
Markdown.use(markdownItMermaid,{
maxTextSize: 50000,
maxTextSize: 100000,
});
if (Package.ui) {