With the way attachments work now, this should be done within the text editor itself. When you attach anything within the text editor they show up as links. Those links can be formatted however you’d like. If you do no formatting the links will show up as so:
But you are able to format those links however you wish as you would any text in the text editor:
Hope that helps. Let me know if you have any questions about it.