XWIKI-10214: Wiki macros executed before the content is evaluated breaks request-level sheets and the edit mode document sandboxing
Fixed

(cherry picked from commit 61db7911c1ba3168e370068a613ffa65219318b8)