Given that BlockNote doesn't support inline images (XWIKI-23858), we need to output a macro call. Fortunately, we have the displayIcon macro https://www.xwiki.org/xwiki/bin/view/documentation/xs/user/icons/displayicon-macro/ for this.