Skip to main content

format_vue

Function format_vue 

Source
pub fn format_vue(input: &str) -> String
Expand description

Formats Vue Single-File Components (.vue) including embedded <script> and <style> blocks matching VS Code Prettier 3.7.4.

§Arguments

  • &str - Raw Vue SFC source text.

§Returns

  • String - Formatted Vue SFC text, or unchanged input if syntax errors occur.