From 3c20e8e869901e66476a0af4919c34214209a91e Mon Sep 17 00:00:00 2001 From: Marian Palkus Date: Tue, 29 Oct 2024 08:40:20 +0100 Subject: [PATCH 1/2] #256 Fix flowchart rendering issues "unsupported markdown: list" Updated the steps in the workflow flowchart to use non-breaking spaces to prevent recognition of markdown numbered lists which is not supported by mermaid. --- hugo/content/docs/learn/workflow/_index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hugo/content/docs/learn/workflow/_index.md b/hugo/content/docs/learn/workflow/_index.md index ddec04f2..47699eb5 100644 --- a/hugo/content/docs/learn/workflow/_index.md +++ b/hugo/content/docs/learn/workflow/_index.md @@ -11,13 +11,13 @@ Be aware of the fact that the possibilities go beyond this simple workflow. For {{}} flowchart TD - A(["1. Install Yeoman"]); - B(["2. Scaffold a Langium project"]); - C(["3. Write the grammar"]); - D(["4. Generate the AST"]); - E(["5. Resolve cross-references"]); - F(["6. Create validations"]); - G(["7. Generate artifacts"]); + A(["1. Install Yeoman"]); + B(["2. Scaffold a Langium project"]); + C(["3. Write the grammar"]); + D(["4. Generate the AST"]); + E(["5. Resolve cross-references"]); + F(["6. Create validations"]); + G(["7. Generate artifacts"]); H(["Find advanced topics"]); A --> B --> C --> D --> E --> F --> G ~~~ H; G -- for each additional\ngrammar change --> C; From 1d86966eb05a76f17e6510da27fe0ae926b23837 Mon Sep 17 00:00:00 2001 From: Marian Palkus Date: Tue, 29 Oct 2024 08:41:48 +0100 Subject: [PATCH 2/2] Fix line break formatting in workflow index chart Replaced `\n` with `
` in the mermaid flowchart diagram to ensure proper line breaks in the rendered HTML. --- hugo/content/docs/learn/workflow/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo/content/docs/learn/workflow/_index.md b/hugo/content/docs/learn/workflow/_index.md index 47699eb5..c317ae89 100644 --- a/hugo/content/docs/learn/workflow/_index.md +++ b/hugo/content/docs/learn/workflow/_index.md @@ -20,7 +20,7 @@ flowchart TD G(["7. Generate artifacts"]); H(["Find advanced topics"]); A --> B --> C --> D --> E --> F --> G ~~~ H; - G -- for each additional\ngrammar change --> C; + G -- for each additional
grammar change --> C; click A "/docs/learn/workflow/install" click B "/docs/learn/workflow/scaffold"