From 4b89af3acac9e43d31bfb286f1536e569c607ed4 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 18 Aug 2025 17:16:32 +0530 Subject: [PATCH 1/4] chore: just something to let autofix run --- cypress/platform/sidv.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cypress/platform/sidv.html b/cypress/platform/sidv.html index b0a1699da..1651b0737 100644 --- a/cypress/platform/sidv.html +++ b/cypress/platform/sidv.html @@ -41,10 +41,6 @@ graph TB const { svg } = await mermaid.render('d22', value); console.log(svg); el.innerHTML = svg; - // mermaid.test1('first_slow', 1200).then((r) => console.info(r)); - // mermaid.test1('second_fast', 200).then((r) => console.info(r)); - // mermaid.test1('third_fast', 200).then((r) => console.info(r)); - // mermaid.test1('forth_slow', 1200).then((r) => console.info(r)); From 8c7da5af56818446b686cd27fc792b781141d6f2 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:52:01 +0000 Subject: [PATCH 2/4] [autofix.ci] apply automated fixes --- docs/syntax/pie.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/syntax/pie.md b/docs/syntax/pie.md index 6a2eefb27..fd5ec1db0 100644 --- a/docs/syntax/pie.md +++ b/docs/syntax/pie.md @@ -39,7 +39,7 @@ Drawing a pie chart is really simple in mermaid. **Note:** -> Pie chart values must be **positive numbers greater than zero**.\ +> Pie chart values must be **positive numbers greater than zero**. > **Negative values are not allowed** and will result in an error. \[pie] \[showData] (OPTIONAL) From fc2c32603d9118944e92a4aee8286a4ac55c4a8c Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 18 Aug 2025 17:25:32 +0530 Subject: [PATCH 3/4] fix: Config handling Co-authored-by: Saurabh Gore --- packages/mermaid/src/rendering-util/createText.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mermaid/src/rendering-util/createText.ts b/packages/mermaid/src/rendering-util/createText.ts index 47f8bb98b..759330390 100644 --- a/packages/mermaid/src/rendering-util/createText.ts +++ b/packages/mermaid/src/rendering-util/createText.ts @@ -11,6 +11,7 @@ import { decodeEntities } from '../utils.js'; import { getIconSVG, isIconAvailable } from './icons.js'; import { splitLineToFitWidth } from './splitText.js'; import type { MarkdownLine, MarkdownWord } from './types.js'; +import { getConfig } from '../config.js'; function applyStyle(dom, styleFn) { if (styleFn) { @@ -25,7 +26,7 @@ async function addHtmlSpan( classes, addBackground = false, // TODO: Make config mandatory - config: MermaidConfig = {} + config: MermaidConfig = getConfig() ) { const fo = element.append('foreignObject'); // This is not the final width but used in order to make sure the foreign From cad144734dc2618f4dd2c3c5538bb4d5c85304ee Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 18 Aug 2025 17:55:32 +0530 Subject: [PATCH 4/4] chore: ignore redmine.org in linkchecker --- .github/lychee.toml | 1 + docs/ecosystem/integrations-community.md | 2 +- packages/mermaid/src/docs/ecosystem/integrations-community.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/lychee.toml b/.github/lychee.toml index fbe7a71a2..06b3aa707 100644 --- a/.github/lychee.toml +++ b/.github/lychee.toml @@ -59,6 +59,7 @@ exclude = [ "https://huehive.co", "https://foswiki.org", "https://www.gnu.org", +"https://redmine.org", "https://mermaid-preview.com" ] diff --git a/docs/ecosystem/integrations-community.md b/docs/ecosystem/integrations-community.md index c2887c43e..6bc16e3e2 100644 --- a/docs/ecosystem/integrations-community.md +++ b/docs/ecosystem/integrations-community.md @@ -73,7 +73,7 @@ To add an integration to this list, see the [Integrations - create page](./integ - [Obsidian](https://help.obsidian.md/Editing+and+formatting/Advanced+formatting+syntax#Diagram) ✅ - [Outline](https://docs.getoutline.com/s/guide/doc/diagrams-KQiKoT4wzK) ✅ - [Redmine](https://redmine.org) - - [Mermaid Macro](https://www.redmine.org/plugins/redmine_mermaid_macro) + - [Mermaid Macro](https://redmine.org/plugins/redmine_mermaid_macro) - [Markdown for mermaid plugin](https://github.com/jamieh-mongolian/markdown-for-mermaid-plugin) - [redmine-mermaid](https://github.com/styz/redmine_mermaid) - Visual Studio Code [Polyglot Interactive Notebooks](https://github.com/dotnet/interactive#net-interactive) diff --git a/packages/mermaid/src/docs/ecosystem/integrations-community.md b/packages/mermaid/src/docs/ecosystem/integrations-community.md index 931dc1429..a4a68e6ab 100644 --- a/packages/mermaid/src/docs/ecosystem/integrations-community.md +++ b/packages/mermaid/src/docs/ecosystem/integrations-community.md @@ -68,7 +68,7 @@ To add an integration to this list, see the [Integrations - create page](./integ - [Obsidian](https://help.obsidian.md/Editing+and+formatting/Advanced+formatting+syntax#Diagram) ✅ - [Outline](https://docs.getoutline.com/s/guide/doc/diagrams-KQiKoT4wzK) ✅ - [Redmine](https://redmine.org) - - [Mermaid Macro](https://www.redmine.org/plugins/redmine_mermaid_macro) + - [Mermaid Macro](https://redmine.org/plugins/redmine_mermaid_macro) - [Markdown for mermaid plugin](https://github.com/jamieh-mongolian/markdown-for-mermaid-plugin) - [redmine-mermaid](https://github.com/styz/redmine_mermaid) - Visual Studio Code [Polyglot Interactive Notebooks](https://github.com/dotnet/interactive#net-interactive)