Bloomreach Page Model API extension of rewriteLinks

I have looked but didn’t found any way to request or provide improvements.

So is it possible to improve the rewriteLinks functionality with a callback.
This way how the links are being processed is outside of the bloomreach code.
This results that for instance a path to a document can also be rewritten.
My proposal would be;
/**

  • Rewrite links to pages and resources in the HTML content.
  • @param content The HTML content to rewrite links.
  • @param type The content type.
    */
    rewrite(content: string, { type?: string, postProcess: (el: Element, link: Link) ): string;

Regards,

Jeroen.