Skip to content

fix: clarify Mermaid line breaks in flowchart labels: \n => <br/>#20

Open
iqdoctor wants to merge 1 commit intonicobailon:mainfrom
iqdoctor:fix/mermaid-line-break-labels
Open

fix: clarify Mermaid line breaks in flowchart labels: \n => <br/>#20
iqdoctor wants to merge 1 commit intonicobailon:mainfrom
iqdoctor:fix/mermaid-line-break-labels

Conversation

@iqdoctor
Copy link

@iqdoctor iqdoctor commented Mar 1, 2026

Summary

  • add explicit rule in SKILL.md to use <br/> for multi-line flowchart node labels
  • document why escaped \n should be avoided (it renders as literal text in HTML output)
  • add wrong/right example in references/libraries.md

Why

Generated diagrams occasionally contained literal \n in node text. This happened because the skill docs discussed <br/> support, but did not explicitly forbid \n in flowchart labels.

Scope

Docs-only change. No runtime code changes.

@iqdoctor
Copy link
Author

iqdoctor commented Mar 1, 2026

befoure
изображение

after
изображение

@iqdoctor iqdoctor changed the title docs: clarify Mermaid line breaks in flowchart labels fix: clarify Mermaid line breaks in flowchart labels Mar 1, 2026
@iqdoctor iqdoctor changed the title fix: clarify Mermaid line breaks in flowchart labels fix: clarify Mermaid line breaks in flowchart labels: \n => <br/> Mar 1, 2026
@iqdoctor iqdoctor changed the title fix: clarify Mermaid line breaks in flowchart labels: \n => <br/> fix: clarify Mermaid line breaks in flowchart labels: \n => <br/> Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant