Templ formats templ source, returning the formatted output, whether it changed, and an error if any.
The fileName is used for Go import processing, use an empty name if the source is not from a file.
Config configures formatting. ghtmx has no external formatter dependencies
(the upstream templ Prettier integration was removed); the struct is kept so
that a future option does not change the Templ signature.