Separate content by fency line

I love to use the separation line " — ".
Is there a method to insert some text in the center of it, just like

— some text comes here —

could result the following

---------------------------- some text comes here ----------------------------

Fulike

We strongly recommend you to search the forum with possible keywords before making a new feature request. If your request is very similar to an existing one, consider liking it and/or making a comment rather than making a new one. Once you’ve searched and determined that this is a new request, delete this line.

Use case or problem

Proposed solution

Current workaround (optional)

Related feature requests (optional)