pub fn format_source(source: &str, options: FormatOptions) -> StringExpand 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.
pub fn format_source(source: &str, options: FormatOptions) -> StringFormat a Styx document from source text.
Parses the source, formats the CST, and returns the formatted output. Returns the original source if parsing fails.