Registering new formats

Hi,

I have tried to register a new format without any luck. I have the following below. Could anyone point to the right of how to register a new format? Thank you in advance.

editor.js

roots.register.formats(‘@scripts/formats’)

scripts/formats/test.format.js

export default {
name: bud-project/example-format,
title: Example format,
tagName: ‘span’,
className: ‘example-format’,
}

Here’s an example from the bud repo: