Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatKeyPath ¶ added in v0.9.0
FormatKeyPath formats the scalar values in a as a canonical key path, like Format(d2ast.MakeKeyPathString(a)), without building a temporary key path AST. Quoting in the input nodes is intentionally ignored, just as in MakeKeyPathString.
func FormatMarkdown ¶ added in v0.10.0
FormatMarkdown formats the D2 fenced code blocks in source. Other Markdown content, including both fence markers, is preserved. Errors are positioned in the Markdown document, and no output is returned if a block cannot be formatted.
Types ¶
This section is empty.