mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Try to fix again Mermaid Diagram error: Maximum call stack size exceeded.
Thanks to xet7 ! Fixes #4251
This commit is contained in:
parent
19d980f9fc
commit
0e5f98fd96
1 changed files with 12 additions and 1 deletions
13
packages/markdown/src/template-integration.js
Executable file → Normal file
13
packages/markdown/src/template-integration.js
Executable file → Normal file
|
@ -39,7 +39,18 @@ var emoji = require('markdown-it-emoji');
|
|||
var mathjax = require('markdown-it-mathjax3');
|
||||
Markdown.use(emoji);
|
||||
Markdown.use(mathjax);
|
||||
Markdown.use(markdownItMermaid);
|
||||
|
||||
// Try to fix Mermaid Diagram error: Maximum call stack size exceeded.
|
||||
// Added bigger text size for Diagram.
|
||||
// https://github.com/wekan/wekan/issues/4251
|
||||
// https://stackoverflow.com/questions/66825888/maximum-text-size-in-diagram-exceeded-mermaid-js
|
||||
// https://github.com/mermaid-js/mermaid/blob/74b1219d62dd76d98d60abeeb36d4520f64faceb/src/defaultConfig.js#L39
|
||||
// https://github.com/wekan/cli-table3
|
||||
// https://www.npmjs.com/package/@wekanteam/markdown-it-mermaid
|
||||
// https://github.com/wekan/markdown-it-mermaid
|
||||
Markdown.use(markdownItMermaid,{
|
||||
maxTextSize: 50000,
|
||||
});
|
||||
|
||||
if (Package.ui) {
|
||||
const Template = Package.templating.Template;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue