limit emoji/image replacement to rendered markdown