Fixed Mermaid Diagram error: Maximum call stack size exceeded.

Thanks to xet7 !

Fixes #4251
This commit is contained in:
Lauri Ojansivu 2021-12-22 05:04:11 +02:00
parent f144f8c90a
commit 443b40cff3
4 changed files with 5740 additions and 202 deletions

View file

@ -18,11 +18,11 @@ and adds the following new features:
- [New admin report to list boards](https://github.com/wekan/wekan/pull/4252).
Thanks to jrsupplee.
and removes the following features:
and fixes the following bugs:
- Temporarily remove Mermaid Diagram because even after updating to newest Mermaid it still has bug at https://github.com/wekan/wekan/issues/4251.
- Fixed Mermaid Diagram error: Maximum call stack size exceeded.
[Part 1](https://github.com/wekan/wekan/commit/23a403644c7db44392d4b0498ee0fc85c504d974),
[Part 2](https://github.com/wekan/wekan/commit/998d2f5b445b6bf2bc6cd16beac7231a0cf94fc3).
[Part 2](https://github.com/wekan/wekan/commit/998d2f5b445b6bf2bc6cd16beac7231a0cf94fc3),
Thanks to xet7.
Thanks to above GitHub users for their contributions and translators for their translations.

5907
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -15,19 +15,21 @@
"devDependencies": {
"babel-plugin-istanbul": "^6.1.1",
"chai": "^4.3.4",
"flatted": "^3.2.4",
"puppeteer": "^13.0.0",
"sinon": "^12.0.1"
"flatted": "^3.2.2",
"puppeteer": "^10.2.0",
"sinon": "^11.1.2"
},
"dependencies": {
"@babel/core": "^7.15.0",
"@babel/runtime": "^7.15.3",
"ajv": "^8.8.2",
"@wekanteam/markdown-it-mermaid": "^0.5.1",
"ajv": "^6.12.6",
"babel-runtime": "^6.26.0",
"bcryptjs": "^2.4.3",
"bson": "^4.6.0",
"bson": "^4.4.1",
"bunyan": "^1.8.15",
"core-js": "^3.20.0",
"dompurify": "^2.3.4",
"core-js": "^2.6.12",
"dompurify": "^2.3.0",
"es6-promise": "^4.2.4",
"exceljs": "^4.2.1",
"fibers": "^5.0.0",
@ -37,15 +39,15 @@
"jquery-ui-touch-punch": "^0.2.3",
"jszip": "^3.7.1",
"ldapjs": "^2.3.1",
"markdown-it": "^12.3.0",
"markdown-it": "^12.2.0",
"markdown-it-emoji": "^2.0.0",
"meteor-node-stubs": "^1.1.0",
"mongodb": "^3.6.11",
"os": "^0.1.2",
"page": "^1.11.6",
"page": "^1.11.5",
"papaparse": "^5.3.1",
"qs": "^6.10.2",
"source-map-support": "^0.5.21"
"qs": "^6.10.1",
"source-map-support": "^0.5.19"
},
"meteor": {
"testModule": "tests/main.js"

View file

@ -7,8 +7,7 @@ var Markdown = require('markdown-it')({
breaks: true,
});
// How to fix Mermaid bug so it would work? https://github.com/wekan/wekan/issues/4251
//import markdownItMermaid from "@wekanteam/markdown-it-mermaid";
import markdownItMermaid from "@wekanteam/markdown-it-mermaid";
// Static URL Scheme Listing
var urlschemes = [
@ -38,7 +37,7 @@ for(var i=0; i<urlschemes.length;i++){
var emoji = require('markdown-it-emoji');
Markdown.use(emoji);
//Markdown.use(markdownItMermaid);
Markdown.use(markdownItMermaid);
if (Package.ui) {
const Template = Package.templating.Template;