format_source

Function format_source 

Source
pub fn format_source(source: &str, options: FormatOptions) -> String
Expand description

Format a Styx document from source text.

Parses the source, formats the CST, and returns the formatted output. Returns the original source if parsing fails.