Process main docblock separately from trigger block to work around bug

(cherry picked from commit 0fabd4479c92fbb5c6f3c8b268f597dc9ece6100)