You can extend AbstractBaselineAssertion to implement your own format.
Compare JsonBaselineAssertion
(!) This internal API is considered unstable.
You can extend from AbstractBaselineAssertion
First implement AbstractBaselineAssertion::getAdapter(BaselineContext).
Compare JsonBaselineAssertion for an example.
The adapter is used to decouple operations from the test strategy used. Effectively, atm we just implement the adapter on the assertion itself and don't use more complex context. This is likely to change in the future, when more complex strategies are required.
Usually, you want to implement at least
usingYourFormatComparator(...)yourFormatSatisfies(...)