Reactor.Mermaid.Utils (reactor v0.15.0)

View Source

Utilities for generating Mermaid.

Summary

Functions

Convert the direction atom into a mermaid direction

Escape markdown as needed

Generate a mermaid ID for a term

Generate a name which can be used within a Mermaid node

Functions

direction(atom)

@spec direction(atom()) :: String.t()

Convert the direction atom into a mermaid direction

md_escape(md)

Escape markdown as needed

mermaid_id(name, prefix)

@spec mermaid_id(any(), String.Chars.t()) :: String.t()

Generate a mermaid ID for a term

name(name)

Generate a name which can be used within a Mermaid node