Skip to content

Commit

Permalink
Fix rendering issue in "Langium's workflow" flowchart (#258)
Browse files Browse the repository at this point in the history
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.

Replaced `\n` with `<br/>` in the mermaid flowchart diagram
to ensure proper line breaks in the rendered HTML.
  • Loading branch information
MarianPalkus authored Oct 29, 2024
1 parent a0ce655 commit 3a01e1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hugo/content/docs/learn/workflow/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ Be aware of the fact that the possibilities go beyond this simple workflow. For

{{<mermaid>}}
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.&nbsp;Install Yeoman"]);
B(["2.&nbsp;Scaffold a Langium project"]);
C(["3.&nbsp;Write the grammar"]);
D(["4.&nbsp;Generate the AST"]);
E(["5.&nbsp;Resolve cross-references"]);
F(["6.&nbsp;Create validations"]);
G(["7.&nbsp;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<br/>grammar change --> C;

click A "/docs/learn/workflow/install"
click B "/docs/learn/workflow/scaffold"
Expand Down

0 comments on commit 3a01e1e

Please sign in to comment.