Enable HTML labels in Mermaid diagram rendering #152
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#152
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Mermaid diagrams rendered in the dashboard don't support HTML/Markdown in labels, causing formatting issues. For example, when a diagram uses line breaks and italics in node labels like:
The
<br/>and<i>tags are rendered literally instead of being interpreted as HTML, resulting in labels likeDocumentMatrixTableEnhancedmodifiedinstead of:GitLab renders these correctly because it runs Mermaid in "Markdown-compatible" mode with HTML labels enabled.
Solution
Update the Mermaid configuration to enable HTML labels:
This will allow:
<br/>for line breaks in labels<i>,<b>, etc. for text formatting_italic_in labels (depending on Mermaid version)Security Consideration
Enabling
htmlLabels: trueallows HTML in diagram labels. Since we control the content being rendered (review artifacts, analysis documents), this should be safe. However, if user-provided content is ever rendered, sanitization would be needed.References
Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-152/analysis.md on branch IW-152
Implement: needs-human
Reason: batch-implement exit 1 — the kanon plugin command did not compile against the iw-cli core of this branch, so no phase ran
ForgeCatchUp.scalain the kanon plugin expectsfetchPullRequestForBranchto returnEither[String, …]. iw-climainreturnsEither[TrackerError, …]since #778. The cause is in the plugin, not in this issue: the branch is current withmain, and nobatch-implement.logwas written. Every iw-cli issue fails the same way until the plugin is updated. When the plugin compiles, release this issue toagent-readyagain.Release: the implement loop failed this issue for a reason outside it. The kanon plugin did not compile against iw-cli main, because the tracker port now returns TrackerError (iw-cli #778). The plugin fix is dev-docs #484, and iw-cli 0.22.1 carries the core change. The issue goes back to the implement loop.