mermaidID() — graph2md Function Reference
Architecture documentation for the mermaidID() function in main.go from the graph2md codebase.
Entity Profile
Dependency Diagram
graph TD 76dc89d2_ceaf_17f1_7f1b_0ab1c7a85446["mermaidID()"] 80fa005d_7e3e_f056_f8f8_f520be5cd3e1["main.go"] 76dc89d2_ceaf_17f1_7f1b_0ab1c7a85446 -->|defined in| 80fa005d_7e3e_f056_f8f8_f520be5cd3e1 style 76dc89d2_ceaf_17f1_7f1b_0ab1c7a85446 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
main.go lines 1648–1660
func mermaidID(nodeID string) string {
// Create valid Mermaid node ID from arbitrary string
id := strings.Map(func(r rune) rune {
if (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= '0' && r <= '9') || r == '_' {
return r
}
return '_'
}, nodeID)
if id == "" {
id = "node"
}
return id
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does mermaidID() do?
mermaidID() is a function in the graph2md codebase, defined in main.go.
Where is mermaidID() defined?
mermaidID() is defined in main.go at line 1648.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free