A FormatterInterface instance should be given as argument of the Parser constructor.
Check if the formatter has a registered handler for the extension of the content file.
Better checking of the multiple thrown InvalidArgumentExceptions.
Body and excerpt is formatted before it is set.
Only one handler can be registered for each extension.
The Symfony YAML component is a dependency.
Created a basic example using the file provider.