Autoreplace link text

I have stylized links for downloading files, with file size mentioned:

<a href="" class="download">.zip; 1.2 MB</a>

I’d like to stylize file size by putting it inside tag. Is it possible to do it with removing semicolon? Like this:

<a href="" class="download">.zip <span class="size">1.2 MB</span></a>

I know I can do it manually for every link or create a shortcode for my theme, but probably there’s one more way somebody knows.

how are you showing that information, with a Shortcode in Hugo and using .Page.Resources?