Home / Function/ mermaidEscape() — graph2md Function Reference

mermaidEscape() — graph2md Function Reference

Architecture documentation for the mermaidEscape() function in main.go from the graph2md codebase.

Entity Profile

Dependency Diagram

graph TD
  a7002604_472f_7a08_bbb6_5b07d8d3213b["mermaidEscape()"]
  19d7285e_2dbf_69a0_6ada_b2031521fd4e["main.go"]
  a7002604_472f_7a08_bbb6_5b07d8d3213b -->|defined in| 19d7285e_2dbf_69a0_6ada_b2031521fd4e
  style a7002604_472f_7a08_bbb6_5b07d8d3213b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

main.go lines 1640–1646

func mermaidEscape(s string) string {
	// Escape special chars for Mermaid node labels
	s = strings.ReplaceAll(s, `"`, "#quot;")
	s = strings.ReplaceAll(s, `<`, "#lt;")
	s = strings.ReplaceAll(s, `>`, "#gt;")
	return s
}

Subdomains

Defined In

Frequently Asked Questions

What does mermaidEscape() do?
mermaidEscape() is a function in the graph2md codebase, defined in main.go.
Where is mermaidEscape() defined?
mermaidEscape() is defined in main.go at line 1640.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free