So for those that are interested in a solution, I did this by creating my own DxaRichText HTML helper extension and doing the change there.
Code looks something like this
public static MvcHtmlString MyDxaRichText(this HtmlHelper htmlHelper, RichText richText)
{
if (richText == null)
{
return MvcHtmlString.Empty;
}
StringBuilder htmlBuilder = new StringBuilder();
foreach (IRichTextFragment richTextFragment in richText.Fragments)
{
EntityModel entityModel = richTextFragment as EntityModel;
string htmlFragment = (entityModel == null) ? richTextFragment.ToHtml() : htmlHelper.DxaEntity(entityModel).ToString();
.....
and so on. You get the point.
/index.html
suffixes from resolved links?