custom compilation filter hook only formats the new text added to the buffer during each call