var FullToShortLanguageAliases map[string]string
TODO add more, e.g. C, bash
var ShortToFullLanguageAliases = map[string]string{ "md": "markdown", "tex": "latex", "js": "javascript", "go": "golang", "py": "python", "rb": "ruby", "ts": "typescript", }
func Compile(p string, r io.Reader, opts *CompileOptions) (*d2graph.Graph, *d2target.Config, error)
type CompileOptions struct { UTF16Pos bool // FS is the file system used for resolving imports in the d2 text. // It should correspond to the root path. FS fs.FS }