Supporting Gitea in a onebox

Not sure if this is the right category here but is it possible to support Gitea in a onebox the same behaviour github is showing code?

I’ve switched over to my own git but I love the code preview for github which isn’t there for gitea.

Not quite sure how discourse extracts the code from github but gitea has a public API, the same way github does. To add the API usage to this

Link to API documentation on my Gitea Instance